3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface B { } interface A { public function loadUser(B $b); } class D implements B{ } class C implements A{ public function loadUser($d) { echo "oo"; } }
based on kSmhs
Output for 7.2.0
Output for 7.0.0 - 7.1.10
Fatal error: Declaration of C::loadUser($d) must be compatible with A::loadUser(B $b) in /in/d7PA2 on line 11
Process exited with code 255.
Output for 5.4.2 - 5.6.28
Fatal error: Declaration of C::loadUser() must be compatible with A::loadUser(B $b) in /in/d7PA2 on line 11
Process exited with code 255.
Output for 5.3.17 - 5.3.29
Fatal error: Declaration of C::loadUser() must be compatible with that of A::loadUser() in /in/d7PA2 on line 11
Process exited with code 255.