3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( array( array( array( 'leaf-0-0-0-0', 'leaf-0-0-0-1' ), 'leaf-0-0-0' ), array( array( 'leaf-0-1-0-0', 'leaf-0-1-0-1' ), 'leaf-0-1-0' ), 'leaf-0-0' ) ); $iterator = new RecursiveIteratorIterator( new RecursiveArrayIterator($array), LEAVES_ONLY ); foreach ($iterator as $key => $leaf) { echo "$key => $leaf", PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 19
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 19
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/AkiSq
function name:  (null)
number of ops:  21
compiled vars:  !0 = $array, !1 = $iterator, !2 = $leaf, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   23     1        NEW                                              $5      'RecursiveIteratorIterator'
   24     2        NEW                                              $6      'RecursiveArrayIterator'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0          
          5        SEND_VAR_NO_REF_EX                                       $6
   25     6        FETCH_CONSTANT                                   ~8      'LEAVES_ONLY'
          7        SEND_VAL_EX                                              ~8
          8        DO_FCALL                                      0          
   23     9        ASSIGN                                                   !1, $5
   27    10      > FE_RESET_R                                       $11     !1, ->19
         11    > > FE_FETCH_R                                       ~12     $11, !2, ->19
         12    >   ASSIGN                                                   !3, ~12
   28    13        ROPE_INIT                                     3  ~15     !3
         14        ROPE_ADD                                      1  ~15     ~15, '+%3D%3E+'
         15        ROPE_END                                      2  ~14     ~15, !2
         16        ECHO                                                     ~14
         17        ECHO                                                     '%0A'
   27    18      > JMP                                                      ->11
         19    >   FE_FREE                                                  $11
   29    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
188.65 ms | 1393 KiB | 13 Q