3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.73 ms | 1393 KiB | 13 Q