3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo public function Foo() { } } new Foo();
Output for 7.1.7
Parse error: syntax error, unexpected 'public' (T_PUBLIC), expecting '{' in /in/HUq50 on line 6
Process exited with code 255.