3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php abstract class AbstractFoo { abstract public function __construct(); } class Foo extends AbstractFoo { public function __construct($param) { } } $foo = new Foo('param');
Output for 5.4.0 - 5.4.10
Fatal error: Declaration of Foo::__construct() must be compatible with AbstractFoo::__construct() in /in/uImge on line 13
Process exited with code 255.
Output for 5.3.0 - 5.3.29