phc logo



The latest phc version is phc- (gzip compressed) or phc- (bzip2 compressed). Check the Installation Instructions for system requirements. For a history of the changes, see ChangeLog. Older versions can be found in the archive, though they are unsupported.


Please see Documentation for documentation downloads.


While we do not provide any binaries or packages of phc, several people have contributed packages for their OSes.

Dries Verachtert has RPMs for phc in DAG RPM repositories. x86_64, i386 and source RPMs are all supported.

Conor McDermottroe has created a port for the FreeBSD ports collection.

If your OS isn't here, you might be interested in more information on how to port and package phc.

SVN Repository

Our latest work is available in our SVN repository. Follow the instructions on the front page to do an anonymous checkout. It is also possible to browse the repository online. To build phc, follow the installation instructions.


phc is an open source project, but we intend for it to be freely used in any project (including commercial projects). Please contact us if licencing issues prevent your use of phc.

phc is released under the BSD license. It makes use of the Zend Engine, which is freely available from and comes with its own license. More detailed information on licensing issues, see the directory license/ in the source distribution.

Projects using phc


Written by Daniel Barreiro, PHT embeds HTML/XML into PHP to ensure that the XML or HTML output by PHP scripts is well-formed and (although this has not yet been implemented) valid. Details and source can be found at


Plumhead is written by Bernhard Schmalhofer and attempts to implement PHP on Parrot by taking the XML output from phc and transforming it (using XSLT) to the Parrot internal representation. See for more information.


Rose is source-to-source compiler infrastructure supporting C, C++, Fortran, and now, PHP. phc parses PHP source code into an AST, which is then folded into the Rose AST. It is intended that standard Rose static analyses can then be applied to PHP. Rose was developed by Dan Quinlan at Lawrence Livermore National Laboratories, and phc was integrated with it by Ryan Stutsman. It is available from (see "Enabling PHP Support" in the Rose User Manual for instructions).