3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface Base { function base(); } interface Derived extends Base { function derived(); } interface Derp extends Base { function derp(); } class ThisIsValid implements Base, Derived { public function base() {} public function derived() {} } class IsThisValid implements Derp, Derived { public function base() {} public function derived() {} }
based on 2sdhW
Output for 7.0.0 - 7.2.0
Fatal error: Class IsThisValid contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Derp::derp) in /in/tSb3f on line 22
Process exited with code 255.
Output for 5.3.21 - 5.6.28
Fatal error: Class IsThisValid contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Derp::derp) in /in/tSb3f on line 25
Process exited with code 255.