3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.99 ms | 1394 KiB | 15 Q