3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Testable { public function test() {} } class window implements Testable { public funcion test() { echo 'window.test'; } } class home { public static function add(Testable $item) { $item->test(); } } $window = new window(); home::add($window)
Output for 5.3.0 - 5.3.14, 5.4.0 - 5.4.4
Fatal error: Interface function Testable::test() cannot contain body in /in/rgjAe on line 4
Process exited with code 255.

preferences:
160.85 ms | 1399 KiB | 27 Q