3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?hh class Baz { } interface Foo { public function foo(String $foo) : Baz; } class Bar implements Foo { public function foo(String $foo) { return new Baz; } } $b = new Bar; var_dump($b->foo("test"));
Output for 5.3.0 - 5.4.32
<?hh class Baz { } interface Foo { public function foo(String $foo) : Baz; } class Bar implements Foo { public function foo(String $foo) { return new Baz; } } $b = new Bar; var_dump($b->foo("test"));