3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = "https://api.eancdn.com/ean-services/rs/hotel/v3/info?cid=55505&minorRev=99&apiKey=cbrzfta369qwyrm9t5b8y8kf&locale=in_ID&currencyCode=IDR&xml=%3CHotelInformationRequest%3E%3ChotelId%3E122212%3C%2FhotelId%3E%3Coptions%3E0%3C%2Foptions%3E%3C%2FHotelInformationRequest%3E"; $xml = simplexml_load_string( $xml); foreach( $xml->xpath( './/child') as $child) { echo $child->attributes()['name'] . "\n"; }
Output for git.master, git.master_jit
Warning: simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not found in /in/DgHHT on line 4 Warning: simplexml_load_string(): https://api.eancdn.com/ean-services/rs/hotel/v3/info?cid=55505&minorRev=99&apiKe in /in/DgHHT on line 4 Warning: simplexml_load_string(): ^ in /in/DgHHT on line 4 Fatal error: Uncaught Error: Call to a member function xpath() on bool in /in/DgHHT:6 Stack trace: #0 {main} thrown in /in/DgHHT on line 6
Process exited with code 255.
Output for rfc.property-hooks
Warning: simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not found in /in/DgHHT on line 4 Warning: simplexml_load_string(): https://api.eancdn.com/ean-services/rs/hotel/v3/info?cid=55505&minorRev=99&apiKe in /in/DgHHT on line 4 Warning: simplexml_load_string(): ^ in /in/DgHHT on line 4 Fatal error: Uncaught Error: Call to a member function xpath() on false in /in/DgHHT:6 Stack trace: #0 {main} thrown in /in/DgHHT on line 6
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
38.34 ms | 401 KiB | 8 Q