3v4l.org

run code in 300+ PHP versions simultaneously
<?php $iterator = new LimitIterator( new InfiniteIterator(new ArrayIterator(range(1, 3))), 0, 9 ); foreach ($iterator as $value) { var_dump($value); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 17, Position 2 = 22
Branch analysis from position: 17
2 jumps found. (Code = 78) Position 1 = 18, Position 2 = 22
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/J73Xu
function name:  (null)
number of ops:  24
compiled vars:  !0 = $iterator, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'LimitIterator'
    4     1        NEW                                              $3      'InfiniteIterator'
          2        NEW                                              $4      'ArrayIterator'
          3        INIT_FCALL                                               'range'
          4        SEND_VAL                                                 1
          5        SEND_VAL                                                 3
          6        DO_ICALL                                         $5      
          7        SEND_VAR_NO_REF_EX                                       $5
          8        DO_FCALL                                      0          
          9        SEND_VAR_NO_REF_EX                                       $4
         10        DO_FCALL                                      0          
         11        SEND_VAR_NO_REF_EX                                       $3
    5    12        SEND_VAL_EX                                              0
    6    13        SEND_VAL_EX                                              9
         14        DO_FCALL                                      0          
    3    15        ASSIGN                                                   !0, $2
    9    16      > FE_RESET_R                                       $10     !0, ->22
         17    > > FE_FETCH_R                                               $10, !1, ->22
   10    18    >   INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !1
         20        DO_ICALL                                                 
    9    21      > JMP                                                      ->17
         22    >   FE_FREE                                                  $10
   11    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.41 ms | 1395 KiB | 17 Q