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); var_dump(empty($value)); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 17
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 17
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/cE0ES
function name:  (null)
number of ops:  19
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, ->17
          8    > > FE_FETCH_R                                               $9, !2, ->17
    5     9    >   INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
    6    12        INIT_FCALL                                               'var_dump'
         13        ISSET_ISEMPTY_CV                                 ~11     !2
         14        SEND_VAL                                                 ~11
         15        DO_ICALL                                                 
    4    16      > JMP                                                      ->8
         17    >   FE_FREE                                                  $9
    7    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.91 ms | 1395 KiB | 15 Q