3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [ 'key_one' => 1, 'key_two' => 2, 'nested_array' => [ 'key_three' => 3, 'key_four' => 4, ], ]; var_export( iterator_to_array( new RecursiveIteratorIterator(new RecursiveArrayIterator($array)) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lJuMd
function name:  (null)
number of ops:  14
compiled vars:  !0 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   12     1        INIT_FCALL                                                   'var_export'
   13     2        INIT_FCALL                                                   'iterator_to_array'
   14     3        NEW                                                  $2      'RecursiveIteratorIterator'
          4        NEW                                                  $3      'RecursiveArrayIterator'
          5        SEND_VAR_EX                                                  !0
          6        DO_FCALL                                          0          
          7        SEND_VAR_NO_REF_EX                                           $3
          8        DO_FCALL                                          0          
          9        SEND_VAR                                                     $2
   13    10        DO_ICALL                                             $6      
   14    11        SEND_VAR                                                     $6
   12    12        DO_ICALL                                                     
   16    13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.23 ms | 1609 KiB | 15 Q