Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6385129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:51:38+00:00 2026-05-25T02:51:38+00:00

I just upgraded to php 5.3.8 using dotdeb.org’s apt source. The test result of

  • 0

I just upgraded to php 5.3.8 using dotdeb.org’s apt source.

The test result of php performance is very bad.

I test with this script, before and after install php5.3.8. It seems to run the same code will take 10 times time in php5.3.8 than in php5.3.7.

Test php script:

<?php
//test float
function test_float() {
    $t = pi();
    $timeStart = gettimeofday();

    for($i = 0; $i < 3000000; $i++) {
        sqrt($t);
    }

    $timeEnd = gettimeofday();
    $time = ($timeEnd["usec"]-$timeStart["usec"])/1000000+$timeEnd["sec"]-$timeStart["sec"];
    $time = round($time, 3)."s";
    return $time;
}

echo "php version:" , phpversion(), "\n";
echo "call sqrt()  3,000,000 times will cost ", test_float(), "\n";

?>

Test result:

php version:5.3.3-7+squeeze3
call sqrt()  3,000,000 times will cost 1.369s
php version:5.3.3-7+squeeze3
call sqrt()  3,000,000 times will cost 1.095s
php version:5.3.3-7+squeeze3
call sqrt()  3,000,000 times will cost 1.072s
php version:5.3.8-1~dotdeb.2
call sqrt()  3,000,000 times will cost 10.644s
php version:5.3.8-1~dotdeb.2
call sqrt()  3,000,000 times will cost 10.567s
php version:5.3.8-1~dotdeb.2
call sqrt()  3,000,000 times will cost 10.343s
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T02:51:39+00:00Added an answer on May 25, 2026 at 2:51 am

    The 5.3.8 version may have been compiled with debug options, or without compiler optimisations.

    Or you may have added some slow extension in PHP 5.3.8 that’s not enabled in PHP 5.3.7, like xdebug or suhosin.

    I would bet for the second solution.

    • Compare the output of php -m. (List of loaded modules.)
    • Try running the benchmark with php -n (runs PHP without loading any ini settings file)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just upgraded from php 5.1 to 5.3 and had previously been using
I just upgraded to Xcode 3.2 and am using the Build and Analyze feature
I just upgraded my PHP version from v5.3.1 to v5.3.9 . Suddenly class constructors
I've just upgraded to PHP 5.3 and started supporting an old website for a
I just upgraded to php5.3 and when I execute: php myfile.php I see the
I just upgraded phpunit via the PEAR package installer and this is the error
I just upgraded a VS 2005 project to VS 2008 and was examining the
I just upgraded a hosted control to .NET 2.0 and I had to enable
I just upgraded my browser to Safari 4 and find that our website is
I just upgraded my Leopard system to Snow. I had a Rails application with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.