3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class C{} class D extends C{} interface iA{ public function iAm(C $obj); } class A implements iA{ public function iAm(C $obj) { $b =2; } public function AiAm(C $obj){ $a = 1; } } class B implements iA{ public function BiAm(D $obj) { $a = 1; } }
Output for 7.0.0 - 7.2.0
Fatal error: Class B contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (iA::iAm) in /in/MALQl on line 19
Process exited with code 255.
Output for 5.3.18 - 5.6.28
Fatal error: Class B contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (iA::iAm) in /in/MALQl on line 23
Process exited with code 255.