3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.54 ms | 1400 KiB | 15 Q