3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = "<root> <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"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/812S0
function name:  (null)
number of ops:  15
compiled vars:  !0 = $xml, !1 = $child
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Croot%3E%0A+++%3CURL%3Ehttps%3A%2F%2Fpdt.multimediarepository.testing.amadeus.com%2Fcmr%2Fretrieve%2Fhotel%2F0404104C5B6E42CCAFE3E7F3083F6666%2FA%3C%2FURL%3E%3CURL%3Ehttps%3A%2F%2Fpdt.multimediarepository.testing.amadeus.com%2Fcmr%2Fretrieve%2Fhotel%2F0404104C5B6E42CCAFE3E7F3083F6666%2FB%3C%2FURL%3E'
    5     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    7     5        INIT_METHOD_CALL                                         !0, 'xpath'
          6        SEND_VAL_EX                                              '.%2F%2FURL'
          7        DO_FCALL                                      0  $5      
          8      > FE_RESET_R                                       $6      $5, ->13
          9    > > FE_FETCH_R                                               $6, !1, ->13
    8    10    >   CONCAT                                           ~7      !1, '%0A'
         11        ECHO                                                     ~7
    7    12      > JMP                                                      ->9
         13    >   FE_FREE                                                  $6
    9    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.43 ms | 1395 KiB | 15 Q