3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?hh //strict interface IFoo { public function boo() :string; } trait TFoo { public function boo() { return 1; } } class Foo implements IFoo { use TFoo; } $f = new Foo(); $f->boo();
Output for hhvm-3.12.0
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.4.34 - 5.4.39
Parse error: syntax error, unexpected 'interface' (T_INTERFACE) in /in/Ap6Ra on line 3
Process exited with code 255.
Output for 5.3.0 - 5.4.32
<?hh //strict interface IFoo { public function boo() :string; } trait TFoo { public function boo() { return 1; } } class Foo implements IFoo { use TFoo; } $f = new Foo(); $f->boo();