Skip to content


Subversion checkout URL

You can clone with
Download ZIP
C++ C PHP Other
branch: master

This branch is 39 commits ahead, 334 commits behind huichen:master

Failed to load latest commit information.
CMake build: default build is in debug mode now with -g flag
bin added a script that automatically adds method injection to extension …
doc added ForbiddenFileExtensions
local speed up bind function for Variant
phpt speed up bind function for Variant
refCode Add refCode with copies of ext_tbb.*. These get clobbered by the buil…
src Fix issue with multiple calls to parallel_for
.gitignore Merge commit '95a7e38cbc933fd2465019cee29d3740efdb449f'
LICENSE.PHP Add license files
LICENSE.ZEND Add license files
Makefile.test Indented code in the README so that it displays much better.

HipHop for PHP

HipHop is a source code transformer which transforms PHP source code into highly optimized C++ and then compiles it using g++.

Required Packages

  • cmake 2.6 is the minimum version
  • g++/gcc 4.1 is the minimum version
  • Boost 1.37 is the minimum version
  • flex
  • bison
  • re2c
  • libmysql
  • libxml2
  • libmcrypt
  • libicu 4.2 is the minimum version
  • openssl
  • binutils
  • libcap
  • gd
  • zlib
  • tbb Intel's Thread Building Blocks
  • Oniguruma

The following packages have had slight modifications added to them. Patches are provided and should be made against the current source copies.

  • libcurl
  • src/third_party/libcurl.fb-changes.diff
  • libevent 1.4
  • src/third_party/libevent.fb-changes.diff


You may need to point CMake to the location of your custom libcurl and libevent, or to any other libraries which needed to be installed. The CMAKE_PREFIX_PATH variable is used to hint to the location.

export CMAKE_PREFIX_PATH=/home/user

To build HipHop, use the following:

cd /home/user/dev
git clone git://
cd hiphop-php
git submodule init
git submodule update
export HPHP_HOME=`pwd`
export HPHP_LIB=`pwd`/bin
cmake .

Once this is done you can generate the build file. This will return you to the shell. Finally, to build, run make. If any errors occur, it may be required to remove the CMakeCache.txt directory in the checkout.


Running HipHop

Please see the wiki page

Something went wrong with that request. Please try again.