3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array_a = new ArrayIterator(array('a', 'b', 'c')); $array_b = new ArrayIterator(array('d', 'e', 'f')); $iterator = new AppendIterator; $iterator->append($array_a); $iterator2 = new AppendIterator; $iterator2->append($iterator); $iterator2->append($array_b); foreach ($iterator2 as $current) { echo $current; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 24, Position 2 = 27
Branch analysis from position: 24
2 jumps found. (Code = 78) Position 1 = 25, Position 2 = 27
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
filename:       /in/egvFW
function name:  (null)
number of ops:  29
compiled vars:  !0 = $array_a, !1 = $array_b, !2 = $iterator, !3 = $iterator2, !4 = $current
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   NEW                                                  $5      'ArrayIterator'
          1        SEND_VAL_EX                                                  <array>
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $5
    4     4        NEW                                                  $8      'ArrayIterator'
          5        SEND_VAL_EX                                                  <array>
          6        DO_FCALL                                          0          
          7        ASSIGN                                                       !1, $8
    6     8        NEW                                                  $11     'AppendIterator'
          9        DO_FCALL                                          0          
         10        ASSIGN                                                       !2, $11
    7    11        INIT_METHOD_CALL                                             !2, 'append'
         12        SEND_VAR_EX                                                  !0
         13        DO_FCALL                                          0          
    9    14        NEW                                                  $15     'AppendIterator'
         15        DO_FCALL                                          0          
         16        ASSIGN                                                       !3, $15
   10    17        INIT_METHOD_CALL                                             !3, 'append'
         18        SEND_VAR_EX                                                  !2
         19        DO_FCALL                                          0          
   11    20        INIT_METHOD_CALL                                             !3, 'append'
         21        SEND_VAR_EX                                                  !1
         22        DO_FCALL                                          0          
   13    23      > FE_RESET_R                                           $20     !3, ->27
         24    > > FE_FETCH_R                                                   $20, !4, ->27
   14    25    >   ECHO                                                         !4
   13    26      > JMP                                                          ->24
         27    >   FE_FREE                                                      $20
   15    28      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
223.34 ms | 2529 KiB | 13 Q