3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface x { function z($a){} } class y implements x { function z(array $a){var_dump($a);} } $y = new y; $y->z([]);
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.28
Fatal error: Interface function x::z() cannot contain body in /in/XrraH on line 5
Process exited with code 255.

preferences:
198.78 ms | 1395 KiB | 65 Q