3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.72 ms | 940 KiB | 16 Q