3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $xml = <<<xml <?xml version="1.0" encoding="utf-8"?> <RESPONSE> <s> </s> <z>s</z> </RESPONSE> xml; $response = simplexml_load_string($xml); print_r($response);
based on t2gYP
Output for 5.3.18 - 5.3.29, 5.5.27 - 5.5.35, 5.6.11 - 7.2.0
SimpleXMLElement Object ( [s] => SimpleXMLElement Object ( [0] => ) [z] => s )
Output for 5.4.2 - 5.5.26, 5.6.7 - 5.6.10
SimpleXMLElement Object ( [s] => SimpleXMLElement Object ( ) [z] => s )