3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list[1-9]; $total = 0; for ($i=0; $i<= 9; $i++) { $total = $total + $list[i]; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 5
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 5
Branch analysis from position: 12
Branch analysis from position: 5
filename:       /in/WePu7
function name:  (null)
number of ops:  13
compiled vars:  !0 = $list, !1 = $total, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_DIM_R                                      ~3      !0, -8
          1        FREE                                                     ~3
    3     2        ASSIGN                                                   !1, 0
    4     3        ASSIGN                                                   !2, 0
          4      > JMP                                                      ->10
    5     5    >   FETCH_CONSTANT                                   ~6      'i'
          6        FETCH_DIM_R                                      ~7      !0, ~6
          7        ADD                                              ~8      !1, ~7
          8        ASSIGN                                                   !1, ~8
    4     9        PRE_INC                                                  !2
         10    >   IS_SMALLER_OR_EQUAL                                      !2, 9
         11      > JMPNZ                                                    ~11, ->5
    7    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.41 ms | 1393 KiB | 13 Q