3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = <<<XML <programme channel="cnn.info" start="20131027060000" stop="20131027061500"> <title>hello CONTENT</title> <premiere/></programme> XML; $xml = simplexml_load_string($string); print_r($xml);
Output for 5.1.2 - 7.1.0
SimpleXMLElement Object ( [@attributes] => Array ( [channel] => cnn.info [start] => 20131027060000 [stop] => 20131027061500 ) [title] => hello CONTENT [premiere] => SimpleXMLElement Object ( ) )
Output for 5.0.0 - 5.1.1
SimpleXMLElement Object ( [title] => hello CONTENT [premiere] => SimpleXMLElement Object ( ) )
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: simplexml_load_string() in /in/qGRjV on line 8
Process exited with code 255.
Output for 4.3.2 - 4.4.1, 4.4.3 - 4.4.4
Fatal error: Call to undefined function: simplexml_load_string() in /in/qGRjV on line 8
Process exited with code 255.
Output for 4.4.2
Fatal error: Call to undefined function: simplexml_load_string() in /in/qGRjV on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: simplexml_load_string() in /in/qGRjV on line 8