Zend Optimizer Tutorial
Table of Contents
After PHP 5.3 Zend Optimizer is included in the standard PHP distribution and there are no additional installations needed for it to work.
Zend Guard Compatibility:
The encoded files must be compiled with a compatible version of Zend Guard. When you are not sure about the Zend Guard version, always use the latest version of Zend Optimizer. If the versions of Zend Guard and Zend Optimizer are incompatible, the Optimizer will fail to run the encoded files and will display an error message.
To ensure that Zend Optimizer is properly running, create a phpinfo file and open it with your browser. The part associated with Zend Optimizer will look like this:
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
The Zend Optimizer is capable of performing around 20 different optimizations, some of which are quite complex. One of the optimizations Zend Optimizer does is to change post-incrementing to pre-incrementing, where possible since pre-incrementing is the faster operation of the two. You can adjust your Zend Optimizer to perform only the desired optimizations. Each optimization can be turned on or off by setting the corresponding option.