3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?hh async function silly() { var_dump('silly start'); HH\Asio\join(silly_inner()); var_dump('silly end'); } async function silly_inner() { await HH\Asio\later(); } async function foo() { var_dump('foo'); } HH\Asio\join(HH\asio\va( silly(), foo() ));
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.4
Parse error: syntax error, unexpected 'async' (T_STRING) in /in/tm3sv on line 3
Process exited with code 255.
Output for hhvm-3.17.3
string(11) "silly start" string(9) "silly end" string(3) "foo"
Output for hhvm-3.12.14 - 3.15.4
Fatal error: Uncaught Error: Call to undefined function HH\asio\va() in /in/tm3sv:20 Stack trace: #0 {main}
Process exited with code 255.