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