3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump('test' instanceof Exception); var_dump(null instanceof Exception); var_dump(array() instanceof Exception); var_dump(1234 instanceof Exception);
Output for hhvm-3.10.0 - 3.12.0
bool(false) bool(false) bool(false) bool(false)
Output for 5.3.0 - 5.4.30
Fatal error: instanceof expects an object instance, constant given in /in/qnGXr on line 3
Process exited with code 255.