3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('a', 'b', array('c'), array('d', array('e','f'))); $iterator = new \RecursiveIteratorIterator(new \RecursiveArrayIterator($arr)); var_dump(iterator_to_array($iterator));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eaYfN
function name:  (null)
number of ops:  15
compiled vars:  !0 = $arr, !1 = $iterator
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        NEW                                              $3      'RecursiveIteratorIterator'
          2        NEW                                              $4      'RecursiveArrayIterator'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0          
          5        SEND_VAR_NO_REF_EX                                       $4
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $3
    5     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'iterator_to_array'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $8      
         12        SEND_VAR                                                 $8
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.01 ms | 1394 KiB | 17 Q