Skip to content

Running PHP programs with HHVM

ptarjan edited this page Sep 25, 2014 · 12 revisions

Hello World

First, create hello.php:

<?php echo 'Hello from Hiphop'; ?>

Here's how to run a PHP program at the command line:

hhvm hello.php

Configuring HHVM

If you need to change any of HHVM's default settings (which you probably will), you'll want to create a config.ini file. See the documentation for possible options. When you run HHVM, you can point it at your config file like so:

hphp/hhvm/hhvm -c config.ini <additional arguments>
Clone this wiki locally