8. ManoMano confidential
List of PHP Accelerators
● APC: bytecode cache (💀 since PHP 5.5) and user cache (split to
✨APCu✨)
● eAccelerator: 💀 since PHP 5.5, forked from Turck MMCache, 💀
since PHP 5.2
● ionCube: still alive, closed source, must pay 💰, main feature is
encryption
● XCache: 💀 since PHP 5.6
● Nusphere phpexpress: 💀 since PHP 5.4
● 👉 Zend OPCache: ✨alive and kicking✨
● Zend Platform: 💀 since PHP 5.2
● Windows Cache: 👽 works I suppose, but who cares?
16. ManoMano confidential
With preloading, this happens once, when starting
php-fpm
Only classes without unresolved parent, interfaces,
traits and constant values may be preloaded.
17. ManoMano confidential
With preloading, this happens once, when starting
php-fpm
PHP Warning: Can't preload unlinked class B: Class B cannot extend final class A in
/tmp/B.php on line 9
💥
To play with preloading in the CLI:
● opcache.preload=/tmp/preload.php
● opcache.enable_cli=On