3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo { } abstract class AbstractBase { abstract public function derp(Foo $bar); } class ExtendedFromAbstractBase extends AbstractBase { public function derp($bar) { // but not here } }
Output for 5.4.0 - 5.4.29
Fatal error: Declaration of ExtendedFromAbstractBase::derp() must be compatible with AbstractBase::derp(Foo $bar) in /in/FAi8c on line 14
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Fatal error: Declaration of ExtendedFromAbstractBase::derp() must be compatible with that of AbstractBase::derp() in /in/FAi8c on line 14
Process exited with code 255.