3v4l.org

run code in 300+ PHP versions simultaneously
<?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 Tnmm1 on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.29

preferences:
171.47 ms | 1395 KiB | 48 Q