3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?hh class Foo { public function bar(string $foo) { echo $foo; } } (new Foo())->bar('blah'); (new Foo())->bar(new \stdClass());
Output for 5.3.0 - 5.4.32
<?hh class Foo { public function bar(string $foo) { echo $foo; } } (new Foo())->bar('blah'); (new Foo())->bar(new \stdClass());