PHP code encryption and PHPOpcode cache summary. 1. zendOptimizerv3.x. xv2.x. x is used in PHP versions earlier than PHP-5.2.x to improve the execution speed of PHP applications by optimizing code, theoretically 40%-100% faster than using ZO. Implement 1. Zend Optimizer v3.x. x v2.x. x
Used in PHP versions earlier than PHP-5.2.x to speed up execution of PHP applications by optimizing code, theoretically 40%-100% faster than not using ZO. The principle of implementation is to optimize the code generated by the Run-Time Compiler before it is finally executed. (From Wikipedia) and before PHP-5.2.x, only official Zend Optimizer can run PHP code encrypted and obfuscated by Zend Guard.
2. Zend Guard Loader
The PHP version after PHP-5.3.x is used to enhance the protection of commercial PHP code and improve the execution performance of PHP, its predecessor is Zend Optimizer.
3. OPcache
Pre-compiled PHP scripts can be stored in the shared memory to improve the execution performance of PHP, so that PHP scripts do not need to be loaded and parsed every request. After the PHP-5.5, it has been bundled and released together with PHP.
4. APC
Alternative PHP Cache (APC) is an open and free PHP opcode Cache. It aims to provide a free, open, and sound framework for caching and optimizing PHP intermediate code. You can cache the opcode of the PHP file or user data (a small amount ).
5. eAccelerator
EAccelerator is a free and open-source PHP acceleration, optimization, compilation, and dynamic cache project. it can improve the performance of PHP scripts by caching PHP code compiled results, the eAccelerator caches compiled PHP code to the shared memory and calls the code directly during user access to accelerate the process efficiently. although it is a good project, but it has not been updated for a few years, the latest version supports php-5.4, of course, officially said.
6. PHP code encryption and OPcode caching
Compiling PHP code directly into opcode code is actually a mechanism for encrypting PHP code, because you only need to further serialize or confuse the opcode code, after the Zend virtual machine is executed, decompress the opcode. However, the purpose of encryption is to avoid the possibility of source code analysis, and opcode is to improve the program running speed.
Summary: If you want to choose OPcode, you can directly use the OPcache officially recommended by PHP, if you are a commercial PHP code, select Zend Optimizer before PHP-5.2.x, but the version of PHP-5.3 + requires Zend Guard Loader. It is worth noting that an Opcode cache can be selected after PHP encryption and optimization.
Http://www.bkjia.com/PHPjc/739146.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/739146.htmlTechArticle1.Zend Optimizer v3.x. x v2.x. x is used in PHP versions earlier than PHP-5.2.x to improve the execution speed of PHP applications by optimizing code, theoretically 40%-100% faster than using ZO. Real...