Skip to content

Running HipHop VM

paroski edited this page Mar 15, 2013 · 17 revisions

Note: These code examples assume the HipHop compiler is fully built in HHVM mode. (USE_HHVM was set when hiphop was built)

getting started with "hello world" program

At first, you create hello.php program.
echo -e "<?php\n echo \"Hello Hiphop-PHP\";\n?>" > hello.php
Next, launch hhvm as below.
sudo hhvm -m server ./
If you build hhvm as the guidance for building, hhvm is in ./hiphop-php/hphp/hhvm/hhvm

set port number

If you want to set a port number, add -p option as below.
sudo hhvm -m server -p 8000 ./

Clone this wiki locally