3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{} class B extends A{} interface I{ public function z(A $var){} } class M implements I{ public function z(A $var){} }
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.23, 5.5.0 - 5.5.7
Fatal error: Interface function I::z() cannot contain body in /in/GJQAP on line 6
Process exited with code 255.

preferences:
173.55 ms | 1399 KiB | 68 Q