3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $xml = " <URL>https://pdt.multimediarepository.testing.amadeus.com/cmr/retrieve/hotel/0404104C5B6E42CCAFE3E7F3083F6666/A</URL><URL>https://pdt.multimediarepository.testing.amadeus.com/cmr/retrieve/hotel/0404104C5B6E42CCAFE3E7F3083F6666/B</URL>"; $xml = simplexml_load_string( $xml); foreach( $xml->xpath( './/URL') as $child) { echo $child . "\n"; }
Output for 7.0.0 - 7.1.0
Warning: simplexml_load_string(): Entity: line 2: parser error : Extra content at the end of the document in /in/fXHun on line 5 Warning: simplexml_load_string(): .testing.amadeus.com/cmr/retrieve/hotel/0404104C5B6E42CCAFE3E7F3083F6666/A</URL> in /in/fXHun on line 5 Warning: simplexml_load_string(): ^ in /in/fXHun on line 5 Fatal error: Uncaught Error: Call to a member function xpath() on boolean in /in/fXHun:7 Stack trace: #0 {main} thrown in /in/fXHun on line 7
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Fatal error: Uncaught exception 'BadMethodCallException' with message 'Call to a member function xpath() on a non-object (boolean)' in /in/fXHun:7 Stack trace: #0 {main} Entity: line 2: parser error : Extra content at the end of the document .testing.amadeus.com/cmr/retrieve/hotel/0404104C5B6E42CCAFE3E7F3083F6666/A</URL> ^
Process exited with code 255.
Output for 5.6.0 - 5.6.28
Warning: simplexml_load_string(): Entity: line 2: parser error : Extra content at the end of the document in /in/fXHun on line 5 Warning: simplexml_load_string(): .testing.amadeus.com/cmr/retrieve/hotel/0404104C5B6E42CCAFE3E7F3083F6666/A</URL> in /in/fXHun on line 5 Warning: simplexml_load_string(): ^ in /in/fXHun on line 5 Fatal error: Call to a member function xpath() on boolean in /in/fXHun on line 7
Process exited with code 255.
Output for 5.1.0 - 5.5.38
Warning: simplexml_load_string(): Entity: line 2: parser error : Extra content at the end of the document in /in/fXHun on line 5 Warning: simplexml_load_string(): .testing.amadeus.com/cmr/retrieve/hotel/0404104C5B6E42CCAFE3E7F3083F6666/A</URL> in /in/fXHun on line 5 Warning: simplexml_load_string(): ^ in /in/fXHun on line 5 Fatal error: Call to a member function xpath() on a non-object in /in/fXHun on line 7
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Warning: Entity: line 2: parser error : Extra content at the end of the document in /in/fXHun on line 5 Warning: .testing.amadeus.com/cmr/retrieve/hotel/0404104C5B6E42CCAFE3E7F3083F6666/A</URL> in /in/fXHun on line 5 Warning: ^ in /in/fXHun on line 5 Fatal error: Call to a member function xpath() on a non-object in /in/fXHun on line 7
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: simplexml_load_string() in /in/fXHun on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: simplexml_load_string() in /in/fXHun on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: simplexml_load_string() in /in/fXHun on line 5