3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface ParametersInterface {} class Parameters implements ParametersInterface {} class AbstractPidor { public function play(ParametersInterface $p) {} } class Pidor extends AbstractPidor { public function play(Parameters $p) {} }
based on C6Lno
Output for 7.0.0 - 7.3.0rc3
Warning: Declaration of Pidor::play(Parameters $p) should be compatible with AbstractPidor::play(ParametersInterface $p) in /in/rm6P1 on line 13
Output for hhvm-3.15.4
Output for 5.6.0 - 5.6.30
Strict Standards: Declaration of Pidor::play() should be compatible with AbstractPidor::play(ParametersInterface $p) in /in/rm6P1 on line 13