List of PHP accelerators

From Wikipedia, the free encyclopedia
  (Redirected from Alternative PHP Cache)
Jump to: navigation, search

This is a list of PHP accelerators.

Alternative PHP Cache (APC)[edit]

Alternative PHP Cache is a free, open source (PHP license) framework that caches the output of the PHP bytecode compiler in shared memory, thus reducing parsing and disk I/O overhead for later requests; and a shared memory cache for user data. For an application consisting of a large source code base such as Drupal, a 3x increase in page generation speed is possible as a result.[1]

It has been used at Facebook and has a mature codebase thanks to numerous contributors, including Facebook itself.[2]

APC was originally scheduled for inclusion into the PHP core no later than PHP 6.[3] While multiple accelerator projects were considered desirable,[4] the focus has since moved to Optimizer Plus[5][6] which is included in the core distribution as of PHP 5.5. Since March 2013 a beta version of APCu is available where all opcode caching abilities have been removed, to support user caches in shared memory using the familiar APC API.[7]

  • Website: http://pecl.php.net/package/APC
  • PHP version: works with all PHP versions up to PHP 5.4 (3.1.13 - beta release)
  • Latest beta version: 3.1.13 (2012-09-03)
  • Latest stable version: 3.1.9 (2011-05-14)
  • Status: Actively maintained (different releases stable/beta)
  • Download link: http://pecl.php.net/package/APC (source code, required for up-to-date compilation)
  • Official installation help: http://php.net/apc.setup and http://php.net/apc.installation (extension must be compiled against the sources of the PHP version it is to be used with; includes instructions for building on Windows)
  • Pre-built Windows binaries (USE AT YOUR OWN RISK, OUTDATED AND MAY BE INCOMPATIBLE): It is always best to compile the extension yourself, but some people provide pre-built versions as a courtesy. The problem is that these versions quickly go out of date. Version 3.1.13-beta (2012-09-03) pre-compiled binaries for Windows (for PHP x86 v5.4.4, 5.4.6, 5.4.7 or 5.4.8): http://www.dragffy.com/posts/php-apc-windows. Version 3.1.10-beta (2012-04-11) pre-compiled binaries for Windows (for PHP x86? v5.3 or 5.4 threaded & non-threaded builds): http://downloads.php.net/pierre/ (also provides some other PECL extensions previously available on pecl4win)

eAccelerator[edit]

eAccelerator was born in December 2004 as a fork of the Turck MMCache project. Turck MMCache was created by Dmitry Stogov and much of the eAccelerator code is still based on his work. eAccelerator also contained a PHP encoder and loader, but the development staff discontinued the encoder and removed this feature after December 2006.

ionCube PHP Accelerator[edit]

Launched in 2001, ionCube PHP Accelerator (PHPA) was the first freely available PHP accelerator to compete with the commercial Zend Cache product. Created before ionCube Ltd. was founded and at a time when the performance of PHP was regarded as lackluster when compared to other popular web programming languages,[citation needed] PHPA showed that PHP can compete with other languages performance-wise.[citation needed] Although the author of PHPA chose to keep the project closed source in response to early concerns raised by Zeev Suraski of Zend Technologies about the effect that an open source rival might have on their commercial alternative, the availability of PHPA on a wide variety of platforms led to its extensive adoption worldwide from small sites to Yahoo!.[citation needed] It also inspired the redevelopment of APC to use the shared memory execution techniques that PHPA and Zend Cache had adopted instead of deserialization on each request that incurred performance penalties.[citation needed]

PHPA is now discontinued and the development of a more advanced replacement has been announced.[citation needed]

Only supports PHP 4. No new versions on the download page since Jan. 2003.

Turck MMCache[edit]

Turck MMCache is now discontinued.[citation needed] eAccelerator is a fork of Turck MMCache.

XCache[edit]

XCache is a fast, stable PHP opcode cacher that has been tested and is now running on production servers under high load. It is tested on Linux and FreeBSD and supported under Windows, for thread-safe and non-thread-safe versions of PHP. This relatively new opcode caching software has been developed by mOo, one of the developers of Lighttpd, to overcome some of the limitations of the existing solutions at that time; such as being able to use it with new PHP versions as they arrive.

Nusphere PhpExpress[edit]

PhpExpress is a free PHP opcode cache that loads both Nu-Coder (commercial) encoded and plain PHP files directly into the PHP engine, saving loading time and boosting performance of PHP applications. It's available on Windows, Linux, FreeBSD, NetBSD, Mac OS X, and Solaris.

Zend Opcache (ex. Zend Optimizer+)[edit]

Zend Opcache[8] is an open source[9] 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.[10]

Zend Platform[edit]

Zend Platform (formerly Zend Cache and then Zend Accelerator) is a commercial Web Application Server product. It has a complete set of performance capabilities that includes more than a simple PHP accelerator. Features include code caching/acceleration, data caching, content (html output) caching, download optimization and off-line (asynchronous) processing capabilities that can result in significant performance improvements for most PHP applications. It also includes detailed PHP monitoring and root cause analysis support to help in tuning and debugging, session fail-over support for HA (High Availability) needs and other integration capabilities including Java integration.

Zend Platform and Zend Core are now in 'end of life' status <http://www.zend.com/en/products/platform/end-of-life> and are replaced with Zend Server.[11]

Windows Cache Extension for PHP[edit]

A free, open source (New BSD License), PHP accelerator developed by Microsoft for PHP under Windows. The extension includes PHP opcode cache, file cache, resolve file path cache, object/session cache, file change notifications and lock/unlock API's. Combination of all these caches results in significant performance improvements for PHP applications hosted on Windows. The extension is primarily used with Internet Information Services and non-thread-safe build of PHP via FastCGI protocol.

Comparison of features[edit]

Name Availability Opcode cache File cache Resolve file path cache Object/session cache Optimization Cache in memory Acceleration Low/Med/High Source encoding
APC Maintained Yes Yes N/A Yes Yes Yes High No
eAccelerator Discontinued Yes N/A N/A N/A N/A Yes N/A N/A
PHP Accelerator (PHPA) Discontinued Yes Yes N/A No Yes Yes High No
Turck MMCache Discontinued N/A N/A N/A N/A N/A N/A N/A N/A
XCache Maintained Yes N/A N/A Yes Yes Yes High N/A
Nusphere PhpExpress Maintained Yes N/A N/A N/A N/A N/A N/A N/A
Zend Opcache (ex. Zend Optimizer+) Maintained Yes N/A N/A No Yes Yes High No
Zend Platform N/A N/A N/A N/A N/A N/A N/A N/A N/A
Windows Cache N/A Yes Yes Yes Yes N/A Yes N/A N/A

Compatibility chart[edit]

PHP accelerators Availability OS Web servers PHP version
Windows Linux FreeBSD Mac OS X NetBSD Solaris IIS 6.0 IIS 7.0 IIS 7.5 IIS 8.0 Apache 2.0 Apache 2.2 Apache 2.4 Nginx 5.2 5.3 5.4 5.5
APC Maintained Yes Yes Yes Yes N/A Yes N/A N/A N/A N/A N/A Yes Yes Yes Yes Yes Yes No
eAccelerator Discontinued N/A Yes Yes N/A N/A Yes N/A N/A N/A N/A N/A N/A N/A N/A Yes Yes Yes N/A
ionCube Maintained Yes Yes N/A N/A N/A Yes N/A N/A N/A N/A N/A Yes N/A N/A Yes Yes Yes N/A
Turck MMCache Discontinued N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A Yes No No No
XCache Maintained Yes Yes Yes Yes N/A N/A N/A N/A N/A N/A N/A Yes Yes Yes Yes Yes Yes Yes
Nusphere PhpExpress Maintained Yes Yes Yes Yes Yes Yes N/A N/A N/A N/A N/A N/A N/A N/A Yes Yes Yes N/A
Zend Opcache (ex. Zend Optimizer+) Maintained Yes Yes N/A N/A N/A No N/A N/A N/A N/A N/A Yes Yes Yes Yes Yes Yes Yes
Zend Platform N/A N/A N/A N/A N/A N/A No N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A
Windows Cache N/A Yes N/A N/A N/A N/A N/A Yes Yes Yes Yes N/A N/A N/A N/A Yes Yes Yes Yes

Other products[edit]

Zend Guard Loader, formerly known as Zend Optimizer, is a free PHP extension by Zend Technologies that loads files encoded and obfuscated by Zend Guard.[12] It does not optimize or cache PHP's byte code.

See also[edit]

References[edit]

  1. ^ "Benchmarking Drupal with PHP op-code caches: APC, eAccelerator and XCache compared | 2bits.com, Inc. - Drupal Performance Optimization, Development, Managed Hosting, Customization and Consulting". 2bits.com. Retrieved 2014-02-14. 
  2. ^ "PHP and Facebook". Blog.facebook.com. Retrieved 2014-02-14. 
  3. ^ "'[PHP-DEV] APC in trunk' thread - MARC". Marc.info. Retrieved 2014-02-14. 
  4. ^ "'Re: [PHP-DEV] APC in trunk' - MARC". Marc.info. Retrieved 2014-02-14. 
  5. ^ "PHP: rfc:optimizerplus". Wiki.php.net. Retrieved 2014-02-14. 
  6. ^ "PHP :: Bug #64625 :: Segfault on PHP 5.4.13 and APC 3.1.13". Bugs.php.net. Retrieved 2014-02-14. 
  7. ^ "PECL :: Package :: APCu". Pecl.php.net. Retrieved 2014-02-14. 
  8. ^ "Zend Optimizer+". Zend Technologies. Retrieved 2011-03-09. 
  9. ^ "ZendOptimizerPlus - GitHub". Retrieved 2013-02-13. 
  10. ^ "[VOTE] Integrating Zend Optimizer+ into the PHP distribution". PHP.net. Retrieved 2013-03-08. 
  11. ^ "Zend Server - PHP Web Application Server". Zend.com. Retrieved 2014-02-14. 
  12. ^ "Zend Optimizer and Zend Guard Loader". Retrieved June 22, 2011.