PHP 7 has just been officially released on December 3. The web development framework Zend Company immediately published a performance comparison report of the old and new versions of PHP. In addition to PHP 7 and PHP 5.6, HHVM version 3.7 was also included in the comparison.
Zend Company selected several sets of well-known software and frameworks for comparison, including the e-commerce platform Magento, the open source CRM software SugarCRM, CMS systems Drupal and WordPress, development frameworks Laravel and Zend Framework, and even used the same set of fractals The algorithm is compared with other popular dynamic languages such as Ruby, Python, and Perl.
Comparing the execution performance of Drupal and WordPress in different environments based on the number of requests that can be processed per second, it can be seen that Drupal 7 has the largest performance improvement, and just switching from PHP 5.6 to PHP 7 can increase performance by almost 70%. Druapl 8 itself has good performance optimization results, so the impact on the old and new versions of PHP is relatively small. After the WordPress execution environment is changed from 5.6 to the new version of PHP 7, the performance can obviously be doubled. In addition, regardless of which version of Drupal or WordPress, PHP 7 also beats HHVM 3.7 with slight differences.
PHP 7 has improved the performance of the open source CRM software SugarCRM by more than 100%, and even greatly outperformed the performance of the HHVM 3.7 environment. E-commerce platform Magento can also use the new version to improve performance.
Zend's own PHP development framework Zend Framework and the popular PHP front-end framework Laravel can achieve considerable performance improvements, and PHP 7's acceleration effect on these two frameworks is also significantly better than HHVM 3.7 .
The last big car comparison is the comparison with other languages. Zend uses PHP 7, Ruby 2.1, Python 2.7.8 and Perl 5.18.4 to execute the same fractal algorithm. The shorter the calculation time, the faster it is. The actual measurement result is that PHP 7 wins.
The above introduces the actual performance measurement of the new version of PHP 7: Drupal 7 is 70% faster, and fractal computing beats Ruby and Python, including Magent content. I hope it will be helpful to friends who are interested in PHP tutorials.