3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo { public function __construct($foo) { } public function baz() {} } abstract class Bar extends Foo { public function __construct() { } abstract public function baz(); } class Qux extends Bar { public function baz() {} } $b = new Qux; $b->baz();
Output for 5.3.0 - 5.4.21
Fatal error: Cannot make non abstract method Foo::baz() abstract in class Bar in /in/tZGcW on line 19
Process exited with code 255.