3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Hui { } abstract class Pidr { abstract function playWith(Hui $item); } class Igor extends Pidr { public function playWith(stdClass $item) { } }
Output for 7.0.0 - 7.0.20, 7.1.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.

preferences:
167.82 ms | 1395 KiB | 36 Q