3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface TestInterface {} interface FooInterface { public function bar(TestInterface $variable); } class Foo uses FooInterface { public function bar($variable) {} } $foo = new Foo; $foo->bar('test');
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.15
Parse error: syntax error, unexpected 'uses' (T_STRING), expecting '{' in /in/7E7jL on line 13
Process exited with code 255.

preferences:
166.95 ms | 1399 KiB | 22 Q