3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.26 ms | 1394 KiB | 17 Q