3v4l.org

run code in 150+ 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 hhvm-3.10.0 - 3.12.0
bool(false)
Output for 5.4.0 - 5.4.32
<?hh function foo<T>(T $a): void { var_dump($a instanceof T); } foo(new stdClass());