Benchmarks Of PHP 7.2 Beta: PHP Is Still Getting Faster

Written by Michael Larabel in Free Software on 22 July 2017 at 09:56 AM EDT. 2 Comments
FREE SOFTWARE
PHP 7.2 Beta 1 was released yesterday as the next step towards this next refinement to PHP7 that is expected to be officially released in November. I couldn't help but to run some initial benchmarks.

PHP 7.2 Beta 1 presents the Sodium extension for modern and easy-to-use cryptography, opcache improvements, better JSON decoding of invalid UTF-8 data, and many bug fixes among other improvements since PHP 7.1. The latest release and more details can be found via PHP.net.
PHP 7.2 Beta Benchmark

I've been testing out PHP 7.2 Beta 1 and haven't encountered any regressions yet with my codes. I also couldn't help but to run some performance benchmarks of PHP 7.2 Beta 1 compared to previous releases. PHP 7.2 Beta 1's performance was compared to PHP 7.1.7, 7.0.21, and 5.6.31.
PHP 7.2 Beta Benchmark

There's obviously the biggest boost in performance for PHPBench when going from PHP 5.6 to PHP 7.0... That shouldn't surprise any one. But it was also exciting to see the performance boost with PHP 7.2 Beta 1 and was a bit unexpected. PHP 7.2 is currently running around 13% faster with PHPBench over PHP 7.1, or 20% over PHP 7.0. Or PHP 7.2 compared to PHP 5.6 is a 2.6x difference.
PHP 7.2 Beta Benchmark

With the Phoronix Test Suite's own self-test, PHP 7.2 shows it's getting faster too. Using PHP 7.2 Beta 1 trimmed off the test time by 4 seconds albeit still a fraction of the savings compared to the PHP 5.6 to 7.0 transition.
PHP 7.2 Beta Benchmark

The render test of generating SVG graphs with lots of PHP math, DOM object usage, and more, is slightly faster on PHP 7.2.
PHP 7.2 Beta Benchmark

PHP 7 continues moving in the right direction. Overall, PHP 7.2 is looking bright for release later this year as besides these modest performance boosts is the Sodium extension and other improvements.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week