3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface PlayParametersInterface {} class NetaGameParameters implements PlayParametersInterface {} interface ProviderInterface { public function play(PlayParametersInterface $parameters); } class NetaGameProvider implements ProviderInterface { // Вот тут он посылает меня public function play(NetaGameParameters $parameters) {} }
based on 8YmIQ
Output for 7.0.0 - 7.3.0rc3
Fatal error: Declaration of NetaGameProvider::play(NetaGameParameters $parameters) must be compatible with ProviderInterface::play(PlayParametersInterface $parameters) in /in/6qKMl on line 11
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: Declaration of NetaGameProvider::play() must be compatible with that of ProviderInterface::play() in /in/6qKMl:11 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Fatal error: Declaration of NetaGameProvider::play() must be compatible with ProviderInterface::play(PlayParametersInterface $parameters) in /in/6qKMl on line 11
Process exited with code 255.