PHP7 OPcache improvements

After enabling OPcache for PHP7 in FPM/FastCGI mode, this tool is rather nice for monitoring the results:

(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 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.

2 thoughts on “PHP7 OPcache improvements

Leave a Reply

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

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

Google photo

You are commenting using your Google 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 )

Connecting to %s