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() ) { echo $iterator -> key() . ' : ' . $iterator -> current() .PHP_EOL; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 6
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 6
Branch analysis from position: 17
Branch analysis from position: 6
filename:       /in/mGqXN
function name:  (null)
number of ops:  18
compiled vars:  !0 = $arr, !1 = $it, !2 = $iterator
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   17     1        NEW                                              $4      'RecursiveArrayIterator'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $4
   18     5      > JMP                                                      ->14
   19     6    >   INIT_METHOD_CALL                                         !2, 'key'
          7        DO_FCALL                                      0  $7      
          8        CONCAT                                           ~8      $7, '+%3A+'
          9        INIT_METHOD_CALL                                         !2, 'current'
         10        DO_FCALL                                      0  $9      
         11        CONCAT                                           ~10     ~8, $9
         12        CONCAT                                           ~11     ~10, '%0A'
         13        ECHO                                                     ~11
   18    14    >   INIT_METHOD_CALL                                         !1, 'valid'
         15        DO_FCALL                                      0  $12     
         16      > JMPNZ                                                    $12, ->6
   21    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.25 ms | 1398 KiB | 13 Q