3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array('a' => 'val1', 'b' => array('c' => 68)); foreach (new RecursiveIteratorIterator(new RecursiveArrayIterator(new ArrayIterator($array))) as $k => $v) { echo $k, ' => ', $v, PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 18
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 18
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/ePDHH
function name:  (null)
number of ops:  20
compiled vars:  !0 = $array, !1 = $v, !2 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        NEW                                              $4      'RecursiveIteratorIterator'
          2        NEW                                              $5      'RecursiveArrayIterator'
          3        NEW                                              $6      'ArrayIterator'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0          
          6        SEND_VAR_NO_REF_EX                                       $6
          7        DO_FCALL                                      0          
          8        SEND_VAR_NO_REF_EX                                       $5
          9        DO_FCALL                                      0          
         10      > FE_RESET_R                                       $10     $4, ->18
         11    > > FE_FETCH_R                                       ~11     $10, !1, ->18
         12    >   ASSIGN                                                   !2, ~11
    5    13        ECHO                                                     !2
         14        ECHO                                                     '+%3D%3E+'
         15        ECHO                                                     !1
         16        ECHO                                                     '%0A'
    4    17      > JMP                                                      ->11
         18    >   FE_FREE                                                  $10
    6    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.72 ms | 1393 KiB | 13 Q