Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Initial commit.

latest commit 2e14a2a89c
HipHop PHP authored
Failed to load latest commit information. Initial commit.
datafetch.php Initial commit.
generators-data.php Initial commit.
generators-prime.php Initial commit.
utils.php Initial commit.
xhp-classes.php Initial commit.
xhp-html.php Initial commit.
xhp-points.php Initial commit.


This provides some examples of HipHop-specific extensions, especially XHP and generators. To enable it, pass -v Eval.EnableHipHopSyntax=true to hphpi or hhvm.

xhp-html.php: An example of an HTML-like use of XHP. xhp-points.php: XHP in a different domain: 2d geometry.

generators-prime.php: Demonstrating generators over an infinite collection. generators-data.php: A more realistic use of generators to make non-blocking I/O more readable.

datafetch.php: utilities for generators-data.php xhp-classes.php: the html micro-library xhp-html.php uses. utils.php: a couple other utility functions.

Something went wrong with that request. Please try again.