After this question was asked, Facebook launched HipHop for PHP which is probably the best-tested PHP compiler to date (seeing as it ran one of the world’s 10 biggest websites). However, Facebook discontinued it in favour of HHVM, which is a virtual machine, not a compiler.
Beyond that, googling PHP compiler
turns up a number of 3rd party solutions.
- PeachPie GitHub
- compiles PHP to .NET and .NET Core
- can be compiled into self-contained binary file
- runs on Mac, Linux, Windows, Windows Core, ARM, …
- GitHub (download), Wikipedia
- compiles to .NET (CIL) looks discontinued from July 2017 and doesn’t seem to support PHP 7.
- compiles to native binaries
- not very active now (February 2014) – last version in 2011, last change in summer 2013
- GitHub, GitHub of a rewrite
- free, open source implementation of PHP with compiler
- compiles to native binaries (Windows, Linux)
- discontinued since 2010 till contributors found – website down, stays on GitHub where last change is from early 2012
- PECL extension of PHP
- experimental
- compiles to PHP bytecode, but can wrap it in Windows binary that loads PHP interpreter (see
bcompiler_write_exe_footer()
manual) - looks discontinued now (February 2014) – last change in 2011
- Wikipedia, IBM
- incubator of changes for WebSphere sMash
- supported by IBM
- compiles to Java bytecode
- looks discontinued now (February 2014) – website down, looks like big hype in 2008 and 2009
- compiles to stand-alone Windows binaries
- the binaries contain bytecode and a launcher
- looks discontinued now (February 2014) – last change in 2006
- compiles to C++
- looks discontinued now (February 2014) – last change in 2003