3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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.4.0 - 5.4.4
Parse error: syntax error, unexpected 'funcion' (T_STRING), expecting variable (T_VARIABLE) in /in/fcsb9 on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.14
Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE in /in/fcsb9 on line 10
Process exited with code 255.