3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php interface CommandInterface() {} abstract class AbstractCommand implements CommandInterface {} interface PrefixableCommandInterface {} abstract class PrefixableCommand extends AbstractCommand implements PrefixableCommandInterface { } class StringSet extends PrefixableCommand {} class Tester { public function executeCommand(CommandInterface $command) {} } $t = new Tester(); $t->executeCommand(new StringSet);
Output for 5.3.0 - 5.5.4
Parse error: syntax error, unexpected '(', expecting '{' in /in/YDJQH on line 2
Process exited with code 255.