3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?hh function foo<T>(T $a): void { var_dump($a instanceof T); } foo(new stdClass());
based on 3NHjT
Output for 5.4.0 - 5.4.32
<?hh function foo<T>(T $a): void { var_dump($a instanceof T); } foo(new stdClass());