3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ['SC1MTTCS6J1WK'], ['SC1MTTCSHJ1WK'] ]; $it = new RecursiveIteratorIterator(new RecursiveArrayIterator($array)); $flat = []; foreach($it as $value) { $flat[] = $value; } echo implode(', ', $flat);
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/kDU2O
function name:  (null)
number of ops:  21
compiled vars:  !0 = $array, !1 = $it, !2 = $flat, !3 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    7     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
    8     8        ASSIGN                                                   !2, <array>
    9     9      > FE_RESET_R                                       $11     !1, ->14
         10    > > FE_FETCH_R                                               $11, !3, ->14
   10    11    >   ASSIGN_DIM                                               !2
         12        OP_DATA                                                  !3
    9    13      > JMP                                                      ->10
         14    >   FE_FREE                                                  $11
   13    15        INIT_FCALL                                               'implode'
         16        SEND_VAL                                                 '%2C+'
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                         $13     
         19        ECHO                                                     $13
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.68 ms | 1010 KiB | 14 Q