3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.31 ms | 1394 KiB | 17 Q