3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.32 ms | 1385 KiB | 17 Q