3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A implements I { public function test(A $yolo) { } } interface I { public function test($yolo); }
Output for 7.0.28 - 7.3.0rc3
Fatal error: Declaration of A::test(A $yolo) must be compatible with I::test($yolo) in /in/ZVUWk on line 3
Process exited with code 255.
Output for 5.6.38
Fatal error: Declaration of A::test() must be compatible with I::test($yolo) in /in/ZVUWk on line 3
Process exited with code 255.