Last Updated: February 25, 2016
·
5.699K
· martinsadovy

Zend Optimalizer+ for php 5.4 and Windows

The Zend OPcache provides faster PHP execution through opcode caching and optimization. It improves PHP performance by storing precompiled script bytecode in the shared memory. This eliminates the stages of reading code from the disk and compiling it on future access. In addition, it applies a few bytecode optimization patterns that make code execution faster.
- github.com/zend-dev

Real tests are on HosipLan's github with Nette and Composer. TL;DR:

  • Composer clean / 36.994 ms
  • Composer with Zend OPcache v7.0.1 / 4.780 ms
  • Minified Nette clean / 27.935 ms
  • Minified Nette with Zend OPcache v7.0.1 / 2.189 ms

or official tests.

Download this php extension for Windows and append to php.ini:

zend_extension = "ext/php_opcache.dll" ; or replace with real path

[opcache]
opcache.enable = 1
opcache.memory_consumption = 300
opcache.interned_strings_buffer = 8
opcache.max_accelerated_files = 8000
opcache.fast_shutdown = 1
opcache.enable_cli = 1
opcache.use_cwd = 1

and other directives. I recommend rlerdorf/opcache-status.