-
Notifications
You must be signed in to change notification settings - Fork 3k
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)
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
If you want to set a port number, add -p option as below.
sudo hhvm -m server -p 8000 ./