3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Everything you enter here will be executed by our servers. Try it! abstract class Foo { public static function bar(); } class Baz extends Foo { public static function bar() { return 1; } } var_dump(Foo::bar());
Output for 5.3.0 - 5.4.17
Fatal error: Non-abstract method Foo::bar() must contain body in /in/NOLL0 on line 5
Process exited with code 255.