3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { abstract function bar(); } class B extends A { private $f; public function __construct($f) { $this->f = $f; } public function bar() {} } $b = new B('foo'); var_dump($b);
Output for 5.3.0 - 5.4.24
Fatal error: Class A contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (A::bar) in /in/Nq2Wt on line 5
Process exited with code 255.