3v4l.org

run code in 200+ 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: Abstract function Bar::baz() cannot contain body in /in/PNYqq on line 18
Process exited with code 255.