3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a="foo"; var_dump($a instanceof stdClass); var_dump("foo" instanceof stdClass); if (isset($offset)) { $this->context[$offset] = $value; } else { $this->context[] = $value; } ?>
Output for 5.3.0 - 5.4.29
Fatal error: instanceof expects an object instance, constant given in /in/cPibK on line 4
Process exited with code 255.