3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo() { public function __toString() { return '5.7'; } } $d = new Foo(); var_dump(version_compare($d, '5.7'));
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.0 - 5.4.29
Parse error: syntax error, unexpected '(', expecting '{' in /in/b8Nb1 on line 2
Process exited with code 255.