3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.51 ms | 1395 KiB | 15 Q