3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?hh function foo<T>(T $a): T { var_dump($a instanceof T); } foo(new stdClass());
Output for hhvm-3.12.0
bool(false)
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.4.0 - 5.4.32
<?hh function foo<T>(T $a): T { var_dump($a instanceof T); } foo(new stdClass());