3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = '<ROOT> <StartTime>7/9/2013 10:01:29 AM</StartTime> <EndTime>7/9/2013 10:01:29 AM</EndTime> <ROW_DATA> <AMOUNT_ROOMS>2</AMOUNT_ROOMS> <SUPP_MOVIE_NAME>tiz</SUPP_MOVIE_NAME> <AMOUNT_NIS>3680</AMOUNT_NIS> <PRICE_DOCKET_ID>1233</PRICE_DOCKET_ID> </ROW_DATA> <ROW_DATA> <AMOUNT_ROOMS>1</AMOUNT_ROOMS> <SUPP_MOVIE_NAME>mantiz</SUPP_MOVIE_NAME> <AMOUNT_NIS>3690</AMOUNT_NIS> <PRICE_DOCKET_ID>1234</PRICE_DOCKET_ID> </ROW_DATA> <StartTime>7/9/2013 10:01:29 AM</StartTime> <EndTime>7/9/2013 10:01:30 AM</EndTime> </ROOT>'; $xml = simplexml_load_string($str); print_r($xml);
Output for 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
SimpleXMLElement Object ( [StartTime] => Array ( [0] => 7/9/2013 10:01:29 AM [1] => 7/9/2013 10:01:29 AM ) [EndTime] => Array ( [0] => 7/9/2013 10:01:29 AM [1] => 7/9/2013 10:01:30 AM ) [ROW_DATA] => Array ( [0] => SimpleXMLElement Object ( [AMOUNT_ROOMS] => 2 [SUPP_MOVIE_NAME] => tiz [AMOUNT_NIS] => 3680 [PRICE_DOCKET_ID] => 1233 ) [1] => SimpleXMLElement Object ( [AMOUNT_ROOMS] => 1 [SUPP_MOVIE_NAME] => mantiz [AMOUNT_NIS] => 3690 [PRICE_DOCKET_ID] => 1234 ) ) )
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: simplexml_load_string() in /in/bqZK6 on line 34
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: simplexml_load_string() in /in/bqZK6 on line 34
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: simplexml_load_string() in /in/bqZK6 on line 34