3v4l.org

run code in 300+ PHP versions simultaneously
<?php $iterator = new \SimpleXmlIterator('<xml><fotoshow><image>http://bild.gottes-platz-an-der-sonne.himmel.1/avater.png</image><image/><image/></fotoshow></xml>'); $images = $iterator->images->image; foreach ($iterator as $value) { var_dump($value); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/2XXjB
function name:  (null)
number of ops:  15
compiled vars:  !0 = $iterator, !1 = $images, !2 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $3      'SimpleXmlIterator'
          1        SEND_VAL_EX                                              '%3Cxml%3E%3Cfotoshow%3E%3Cimage%3Ehttp%3A%2F%2Fbild.gottes-platz-an-der-sonne.himmel.1%2Favater.png%3C%2Fimage%3E%3Cimage%2F%3E%3Cimage%2F%3E%3C%2Ffotoshow%3E%3C%2Fxml%3E'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    3     4        FETCH_OBJ_R                                      ~6      !0, 'images'
          5        FETCH_OBJ_R                                      ~7      ~6, 'image'
          6        ASSIGN                                                   !1, ~7
    4     7      > FE_RESET_R                                       $9      !0, ->13
          8    > > FE_FETCH_R                                               $9, !2, ->13
    5     9    >   INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
    4    12      > JMP                                                      ->8
         13    >   FE_FREE                                                  $9
    6    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.95 ms | 1386 KiB | 15 Q