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::CHILD_FIRST); foreach ($stuff as $fruit) { echo is_array($fruit) ? null : $fruit; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 21
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 21
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/I03km
function name:  (null)
number of ops:  23
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                                              2
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !2, $7
    5    12      > FE_RESET_R                                       $12     !2, ->21
         13    > > FE_FETCH_R                                               $12, !3, ->21
    6    14    >   TYPE_CHECK                                  128          !3
         15      > JMPZ                                                     ~13, ->18
         16    >   QM_ASSIGN                                        ~14     null
         17      > JMP                                                      ->19
         18    >   QM_ASSIGN                                        ~14     !3
         19    >   ECHO                                                     ~14
    5    20      > JMP                                                      ->13
         21    >   FE_FREE                                                  $12
    7    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.41 ms | 1394 KiB | 13 Q