It is a bench test. Testing on the testing machine I just installed in the previous post.

Including PHP 5.3.28, PHP 5.4.28, and PHP 5.5.12, installed with fastcgi running on Apache and mod_fcgid.

PHP 5.3 is 6.567 seconds.

--------------------------------------
|        PHP BENCHMARK SCRIPT        |
--------------------------------------
Start : 2014-05-24 16:27:00
Server : web3.example.com@192.168.0.122
PHP version : 5.3.28
Platform : Linux
--------------------------------------
test_math                 : 1.724 sec.
test_stringmanipulation   : 1.741 sec.
test_loops                : 1.852 sec.
test_ifelse               : 1.250 sec.
--------------------------------------
Total time:               : 6.567 sec.

PHP 5.4 is 5.417 seconds.

--------------------------------------
|        PHP BENCHMARK SCRIPT        |
--------------------------------------
Start : 2014-05-24 23:27:23
Server : web2.example.com@192.168.0.122
PHP version : 5.4.28
Platform : Linux
--------------------------------------
test_math                 : 1.556 sec.
test_stringmanipulation   : 1.664 sec.
test_loops                : 1.328 sec.
test_ifelse               : 0.869 sec.
--------------------------------------
Total time:               : 5.417 sec.

 

PHP 5.5 is 5.646 seconds.

--------------------------------------
|        PHP BENCHMARK SCRIPT        |
--------------------------------------
Start : 2014-05-24 23:27:15
Server : web1.example.com@192.168.0.122
PHP version : 5.5.12
Platform : Linux
--------------------------------------
test_math                 : 1.618 sec.
test_stringmanipulation   : 1.723 sec.
test_loops                : 1.363 sec.
test_ifelse               : 0.942 sec.
--------------------------------------
Total time:               : 5.646 sec.

 

I Repeated the test many times and in different order. The results is consistent.

PHP 5.4 is a little bit faster than PHP 5.5. Both PHP 5.5 and PHP 5.4 are almost 1 second faster than PHP 5.3.

David Yin

David is a blogger, geek, and web developer — founder of FreeInOutBoard.com. If you like his post, you can say thank you here

Leave a Reply

Your email address will not be published. Required fields are marked *