3v4l.org

run code in 300+ PHP versions simultaneously
<?php $max = 1000; $min = 1; $list = array(); for($i = $min; $i <= $max; $i++) { if($i % 3 == 0) { $list[] = $i; continue; } if($i % 5 == 0) { $list[] = $i; } } echo array_sum($list);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 5
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 5
Branch analysis from position: 19
Branch analysis from position: 5
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 5
Branch analysis from position: 19
Branch analysis from position: 5
Branch analysis from position: 16
filename:       /in/BeGiN
function name:  (null)
number of ops:  24
compiled vars:  !0 = $max, !1 = $min, !2 = $list, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1000
    3     1        ASSIGN                                                   !1, 1
    4     2        ASSIGN                                                   !2, <array>
    5     3        ASSIGN                                                   !3, !1
          4      > JMP                                                      ->17
    6     5    >   MOD                                              ~8      !3, 3
          6        IS_EQUAL                                                 ~8, 0
          7      > JMPZ                                                     ~9, ->11
          8    >   ASSIGN_DIM                                               !2
          9        OP_DATA                                                  !3
         10      > JMP                                                      ->16
    7    11    >   MOD                                              ~11     !3, 5
         12        IS_EQUAL                                                 ~11, 0
         13      > JMPZ                                                     ~12, ->16
         14    >   ASSIGN_DIM                                               !2
         15        OP_DATA                                                  !3
    5    16    >   PRE_INC                                                  !3
         17    >   IS_SMALLER_OR_EQUAL                                      !3, !0
         18      > JMPNZ                                                    ~15, ->5
    9    19    >   INIT_FCALL                                               'array_sum'
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                         $16     
         22        ECHO                                                     $16
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.81 ms | 1401 KiB | 15 Q