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); foreach($xml as $item) { echo $item; }
Output for 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
7/9/2013 10:01:29 AM7/9/2013 10:01:29 AM 7/9/2013 10:01:29 AM7/9/2013 10:01:30 AM
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: simplexml_load_string() in /in/vD492 on line 33
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: simplexml_load_string() in /in/vD492 on line 33
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: simplexml_load_string() in /in/vD492 on line 33