3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { public function bar() { return 'x'; } public static function bar() { return 'y'; } } var_dump(Foo::bar()); var_dump((new Foo)->bar());
Output for 5.3.0 - 5.4.29
Fatal error: Cannot redeclare Foo::bar() in /in/tIEsd on line 11
Process exited with code 255.