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 $d) { echo "oo"; } }
Output for 7.0.0 - 7.2.0
Fatal error: Declaration of C::loadUser(D $d) must be compatible with A::loadUser(B $b) in /in/kSmhs 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/kSmhs 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/kSmhs on line 11
Process exited with code 255.