PHP7 OPcache improvements

After enabling OPcache for PHP7 in FPM/FastCGI mode, this tool is rather nice for monitoring the results: https://github.com/amnuts/opcache-gui

(100% usage and 100% hit rate is generally good, it means you’ve allocated enough memory to cache the precompiled script bytecode without wasting a lot of memory by overallocating the cache size.)

PHP7 is significantly faster than some of the maligned earlier versions, see this benchmark article extract:

PHP_Performance_Comparison_2017_and_2016_-_PHP_Benchmark_Script_to_Figure_How_Each_PHP_Version_Compare_in_Speed_Improvements_between_PHP_5_vs_PHP_7_0_vs_7_1_with_OpCache_vs_PHP_8_or_PHP_

PHP is not dead, both the platform and infrastructure continue to evolve, and indeed to support a large percentage of the internet.  On the language side a lot has been done to complete the object oriented feature set.  Though with a long history, there’s a lot of PHP code in existing that wouldn’t meet a lot of coding standards.

In this benchmark PHP7 came out 10x faster than PHP5.6  Your Mileage May Vary.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s