Zend Opcache is a Must Have extension of PHP

Zend Opcache is an open source component of Zend Server and Zend Server Community Edition. Zend Opcache speeds up PHP execution by opcode caching and optimization. It stores precompiled script bytecode in shared memory. This eliminates the stages of reading code from the disk and compiling it on future access. For further performance improvements, the stored bytecode is optimized for faster execution. Unlike Zend Optimizer, Zend Opcache doesn’t load files encoded by Zend Guard. Zend provides another component, Zend Guard Loader, in order to load encoded applications with Zend Server and Zend Server Community Edition.

Zend Optimizer+ was renamed to Zend Opcache mid of March 2013.

Starting with PHP 5.5 the Zend Opcache is integrated and shipped with PHP.

Website: http://pecl.php.net/package/ZendOpcache
Sources: https://github.com/zend-dev/ZendOptimizerPlus/
PHP version: full support for PHP 5.2+
Latest stable version: 7.0.2
Status: Actively maintained

This blog hosted on ServerMania now. Powered by PHP5.5.3 with

Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
with Zend OPcache v7.0.3-dev, Copyright (c) 1999-2013, by Zend Technologies

As I tested before, PHP 5.5 is much faster than PHP5.3. Especially when it works with OPcache.

The PHP Bench test result:

--------------------------------------
|        PHP BENCHMARK SCRIPT        |
--------------------------------------
Start : 2013-11-08 10:59:20
Server : www.yinfor.com@192.227.159.55
PHP version : 5.5.3
Platform : Linux
--------------------------------------
test_math                 : 1.795 sec.
test_stringmanipulation   : 1.736 sec.
test_loops                : 0.728 sec.
test_ifelse               : 0.678 sec.
--------------------------------------
Total time:               : 4.937 sec.

That’s why I prefer to use PHP 5.5 and enable OPcache on any web site required PHP.