3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = []; for ($i=0;$i<1000;++$i) { $arr[$i+1] = $i+1; } var_export(array_slice($arr, 299, 10, true));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
Branch analysis from position: 3
filename:       /in/1o8B1
function name:  (null)
number of ops:  20
compiled vars:  !0 = $arr, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->8
    5     3    >   ADD                                              ~4      !1, 1
          4        ADD                                              ~6      !1, 1
          5        ASSIGN_DIM                                               !0, ~4
          6        OP_DATA                                                  ~6
    4     7        PRE_INC                                                  !1
          8    >   IS_SMALLER                                               !1, 1000
          9      > JMPNZ                                                    ~8, ->3
    8    10    >   INIT_FCALL                                               'var_export'
         11        INIT_FCALL                                               'array_slice'
         12        SEND_VAR                                                 !0
         13        SEND_VAL                                                 299
         14        SEND_VAL                                                 10
         15        SEND_VAL                                                 <true>
         16        DO_ICALL                                         $9      
         17        SEND_VAR                                                 $9
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.55 ms | 940 KiB | 18 Q