3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $xml = <<<xml <?xml version="1.0" encoding="utf-8"?> <RESPONSE> <SUCCESS>true</SUCCESS> <ERRORMESSAGE> </ERRORMESSAGE> <TIMESTAMP>21/09/2015 03:26:37</TIMESTAMP> </RESPONSE> xml; $response = simplexml_load_string($xml); $response = json_decode(json_encode($response), TRUE); print_r($response);
Output for 5.2.0 - 5.3.29, 5.5.27 - 5.5.38, 5.6.11 - 7.2.0
Array ( [SUCCESS] => true [ERRORMESSAGE] => Array ( [0] => ) [TIMESTAMP] => 21/09/2015 03:26:37 )
Output for 5.4.0 - 5.5.26, 5.6.0 - 5.6.10
Array ( [SUCCESS] => true [ERRORMESSAGE] => Array ( ) [TIMESTAMP] => 21/09/2015 03:26:37 )
Output for 5.0.0 - 5.1.1, 5.1.3 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/t2gYP on line 14
Process exited with code 255.
Output for 5.1.2
Fatal error: Call to undefined function json_decode() in /in/t2gYP on line 15
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: simplexml_load_string() in /in/t2gYP on line 13
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/t2gYP on line 13
Process exited with code 255.
Output for 4.4.2
Fatal error: Call to undefined function: simplexml_load_string() in /in/t2gYP on line 14
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: simplexml_load_string() in /in/t2gYP on line 13