3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = range(0, 9); $it = new ArrayIterator($array); $lim = new LimitIterator($array, 3, 4); $lim->seek(3); var_dump(iterator_to_array($lim));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4Ri1S
function name:  (null)
number of ops:  25
compiled vars:  !0 = $array, !1 = $it, !2 = $lim
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 9
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    3     5        NEW                                              $5      'ArrayIterator'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !1, $5
    4     9        NEW                                              $8      'LimitIterator'
         10        SEND_VAR_EX                                              !0
         11        SEND_VAL_EX                                              3
         12        SEND_VAL_EX                                              4
         13        DO_FCALL                                      0          
         14        ASSIGN                                                   !2, $8
    5    15        INIT_METHOD_CALL                                         !2, 'seek'
         16        SEND_VAL_EX                                              3
         17        DO_FCALL                                      0          
    6    18        INIT_FCALL                                               'var_dump'
         19        INIT_FCALL                                               'iterator_to_array'
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                         $12     
         22        SEND_VAR                                                 $12
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.96 ms | 1386 KiB | 19 Q