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"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 16
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 16
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/DgHHT
function name:  (null)
number of ops:  18
compiled vars:  !0 = $xml, !1 = $child
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'https%3A%2F%2Fapi.eancdn.com%2Fean-services%2Frs%2Fhotel%2Fv3%2Finfo%3Fcid%3D55505%26minorRev%3D99%26apiKey%3Dcbrzfta369qwyrm9t5b8y8kf%26locale%3Din_ID%26currencyCode%3DIDR%26xml%3D%253CHotelInformationRequest%253E%253ChotelId%253E122212%253C%252FhotelId%253E%253Coptions%253E0%253C%252Foptions%253E%253C%252FHotelInformationRequest%253E'
    4     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    6     5        INIT_METHOD_CALL                                         !0, 'xpath'
          6        SEND_VAL_EX                                              '.%2F%2Fchild'
          7        DO_FCALL                                      0  $5      
          8      > FE_RESET_R                                       $6      $5, ->16
          9    > > FE_FETCH_R                                               $6, !1, ->16
    7    10    >   INIT_METHOD_CALL                                         !1, 'attributes'
         11        DO_FCALL                                      0  $7      
         12        FETCH_DIM_R                                      ~8      $7, 'name'
         13        CONCAT                                           ~9      ~8, '%0A'
         14        ECHO                                                     ~9
    6    15      > JMP                                                      ->9
         16    >   FE_FREE                                                  $6
    8    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.87 ms | 1395 KiB | 15 Q