3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL); abstract class Foo { abstract public function __construct(); } class Foo_Bar extends Foo { public function __construct($foo,$bar = null){} } $fooBar = new Foo_Bar('foo');
Output for 5.4.0 - 5.4.10
Fatal error: Declaration of Foo_Bar::__construct() must be compatible with Foo::__construct() in /in/9VP8W on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.29