3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( 20 => array( 'width' => 20, 'height' => 20, ), 60 => array( 'width' => 60, 'height' => 40, ), 150 => array( 'width' => 150, 'height' => 300, ) ); $it = new RecursiveArrayIterator( $arr ); while( $it->valid() ) { var_dump($it->current()); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 6
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 6
Branch analysis from position: 14
Branch analysis from position: 6
filename:       /in/50rPQ
function name:  (null)
number of ops:  15
compiled vars:  !0 = $arr, !1 = $it
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   17     1        NEW                                              $3      'RecursiveArrayIterator'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $3
   18     5      > JMP                                                      ->11
   19     6    >   INIT_FCALL                                               'var_dump'
          7        INIT_METHOD_CALL                                         !1, 'current'
          8        DO_FCALL                                      0  $6      
          9        SEND_VAR                                                 $6
         10        DO_ICALL                                                 
   18    11    >   INIT_METHOD_CALL                                         !1, 'valid'
         12        DO_FCALL                                      0  $8      
         13      > JMPNZ                                                    $8, ->6
   21    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.91 ms | 1386 KiB | 15 Q