3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if(!class_exists('SimpleXMLElement')) die "Bonkers"; $xml = new SimpleXMLElement('<xml><node></node>'); var_dump(typeof($xml->node)); var_dump(typeof($xml->node->foo)); var_dump(isset($xml->node->foo)); var_dump(is_null($xml->node->foo));
Output for 5.4.0 - 5.4.18
Parse error: syntax error, unexpected '"Bonkers"' (T_CONSTANT_ENCAPSED_STRING) in /in/vPek8 on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /in/vPek8 on line 2
Process exited with code 255.