3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php php -r 'class foo { static function bar(){} };function x(callable $x) {}; $a=array("foo","bar"); x($a);' ?>
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.4.0 - 5.4.12
Parse error: syntax error, unexpected ''class foo { static function b' (T_CONSTANT_ENCAPSED_STRING) in /in/BuRBa on line 1
Process exited with code 255.
Output for 5.3.0 - 5.3.22
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /in/BuRBa on line 1
Process exited with code 255.