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 'Hello World'; } } class Foo implements IFoo { use TFoo; } $f = new Foo(); print($f->boo());
Output for hhvm-3.12.0
Hello World
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.0 - 5.4.32
<?hh //strict interface IFoo { public function boo() :string; } trait TFoo { public function boo() { return 'Hello World'; } } class Foo implements IFoo { use TFoo; } $f = new Foo(); print($f->boo());