3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?hh interface IFoo { public function boo(); } trait TFoo { public function boo() { print "Hello World"; } } class Foo implements IFoo { use TFoo; } $f = new Foo(); $f->boo();
Output for 5.3.0 - 5.4.32
<?hh interface IFoo { public function boo(); } trait TFoo { public function boo() { print "Hello World"; } } class Foo implements IFoo { use TFoo; } $f = new Foo(); $f->boo();