3v4l.org

run code in 300+ PHP versions simultaneously
<?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.3.27, 5.4.0 - 5.4.17
Fatal error: Non-abstract method Foo::bar() must contain body in /in/BFJNj on line 5
Process exited with code 255.

preferences:
175.95 ms | 1399 KiB | 53 Q