3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [["4|1","4|3","4|6"],[["4|1|2","4|1|8"],["4|3|4","4|3|9"],["4|6|5","4|6|12"]]]; $it = new RecursiveIteratorIterator(new RecursiveArrayIterator($arr)); $result = []; foreach($it as $v) { $result[] = $v; } print_r($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/UjKJE
function name:  (null)
number of ops:  19
compiled vars:  !0 = $arr, !1 = $it, !2 = $result, !3 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        NEW                                              $5      'RecursiveIteratorIterator'
          2        NEW                                              $6      'RecursiveArrayIterator'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0          
          5        SEND_VAR_NO_REF_EX                                       $6
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $5
    4     8        ASSIGN                                                   !2, <array>
    5     9      > FE_RESET_R                                       $11     !1, ->14
         10    > > FE_FETCH_R                                               $11, !3, ->14
    6    11    >   ASSIGN_DIM                                               !2
         12        OP_DATA                                                  !3
    5    13      > JMP                                                      ->10
         14    >   FE_FREE                                                  $11
    8    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.22 ms | 1001 KiB | 14 Q