3v4l.org

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