3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $xml = '<?xml version="1.0" encoding="utf-8"?> <SMS-InsRequest> <CLIENT user="test" pwd="demo" from="5555" /> <INSERTMSG text="Hi &quot;John&quot;. API test1 date: 24.07.2013"></INSERTMSG> </SMS-InsRequest> '; $xml = simplexml_load_string($xml); print_r($xml);
Output for 5.1.2 - 7.1.0
SimpleXMLElement Object ( [CLIENT] => SimpleXMLElement Object ( [@attributes] => Array ( [user] => test [pwd] => demo [from] => 5555 ) ) [INSERTMSG] => SimpleXMLElement Object ( [@attributes] => Array ( [text] => Hi "John". API test1 date: 24.07.2013 ) ) )
Output for 5.0.0 - 5.1.1
SimpleXMLElement Object ( [CLIENT] => SimpleXMLElement Object ( ) [INSERTMSG] => SimpleXMLElement Object ( ) )
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: simplexml_load_string() in /in/6ooYn on line 10
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: simplexml_load_string() in /in/6ooYn on line 10
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: simplexml_load_string() in /in/6ooYn on line 10