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 $it -> key() . ' : ' . $it -> 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/nmmQb
function name:  (null)
number of ops:  18
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                                                      ->14
   19     6    >   INIT_METHOD_CALL                                         !1, 'key'
          7        DO_FCALL                                      0  $6      
          8        CONCAT                                           ~7      $6, '+%3A+'
          9        INIT_METHOD_CALL                                         !1, 'current'
         10        DO_FCALL                                      0  $8      
         11        CONCAT                                           ~9      ~7, $8
         12        CONCAT                                           ~10     ~9, '%0A'
         13        ECHO                                                     ~10
   18    14    >   INIT_METHOD_CALL                                         !1, 'valid'
         15        DO_FCALL                                      0  $11     
         16      > JMPNZ                                                    $11, ->6
   21    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.72 ms | 1389 KiB | 14 Q