3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Hui { } abstract class Pidr { abstract function playWith(Hui $item); } class Igor extends Pidr { public function playWith(stdClass $item) { } }
based on qYf7t
Output for 7.0.0 - 7.1.7
Fatal error: Declaration of Igor::playWith(stdClass $item) must be compatible with Pidr::playWith(Hui $item) in /in/pS92J on line 15
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: Declaration of Igor::playWith() must be compatible with that of Pidr::playWith() in /in/pS92J:11 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Fatal error: Declaration of Igor::playWith() must be compatible with Pidr::playWith(Hui $item) in /in/pS92J on line 15
Process exited with code 255.