3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sweet = array('a' => 'apple', 'b' => 'banana'); $fruits = array('sweet' => $sweet, 'sour' => 'lemon'); $stuff = new RecursiveIteratorIterator(new RecursiveArrayIterator($fruits), RecursiveIteratorIterator::LEAVES_ONLY); foreach ($stuff as $fruit) { echo $fruit; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 16
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/J2j6D
function name:  (null)
number of ops:  18
compiled vars:  !0 = $sweet, !1 = $fruits, !2 = $stuff, !3 = $fruit
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_ARRAY                                       ~5      !0, 'sweet'
          2        ADD_ARRAY_ELEMENT                                ~5      'lemon', 'sour'
          3        ASSIGN                                                   !1, ~5
    4     4        NEW                                              $7      'RecursiveIteratorIterator'
          5        NEW                                              $8      'RecursiveArrayIterator'
          6        SEND_VAR_EX                                              !1
          7        DO_FCALL                                      0          
          8        SEND_VAR_NO_REF_EX                                       $8
          9        SEND_VAL_EX                                              0
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !2, $7
    5    12      > FE_RESET_R                                       $12     !2, ->16
         13    > > FE_FETCH_R                                               $12, !3, ->16
    6    14    >   ECHO                                                     !3
    5    15      > JMP                                                      ->13
         16    >   FE_FREE                                                  $12
    7    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.47 ms | 1394 KiB | 13 Q