The picture below shows the performance test of different versions of PHP, using the bench.php test script (this script has been available since PHP 5.1). The vertical axis is the time to complete the test, so the smaller the number, the better the score.
General steps for testing:
Get the latest code for each version from PHP 5.1 to 5.4
Compile using the most basic default configuration without any extensions
Run bench.php 10 times and collect data
Take the average and use Google Chart to display
The original data is as follows:
So what you can see is that PHP 5.4 has a significant performance improvement compared to the previous version. Why not upgrade?
PHP download address: Please click here
Original link: http://www.oschina.net/news/31221/php-benchmarks
[Editor’s recommendation]
The above introduces the performance comparison of PHP 54, including PHP content. I hope it will be helpful to friends who are interested in PHP tutorials.