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; 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 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 5
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 5
Branch analysis from position: 18
Branch analysis from position: 5
Branch analysis from position: 15
Branch analysis from position: 10
filename:       /in/CUR54
function name:  (null)
number of ops:  23
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                                                      ->16
    6     5    >   MOD                                              ~8      !3, 3
          6        IS_EQUAL                                                 ~8, 0
          7      > JMPZ                                                     ~9, ->10
          8    >   ASSIGN_DIM                                               !2
          9        OP_DATA                                                  !3
    7    10    >   MOD                                              ~11     !3, 5
         11        IS_EQUAL                                                 ~11, 0
         12      > JMPZ                                                     ~12, ->15
         13    >   ASSIGN_DIM                                               !2
         14        OP_DATA                                                  !3
    5    15    >   PRE_INC                                                  !3
         16    >   IS_SMALLER_OR_EQUAL                                      !3, !0
         17      > JMPNZ                                                    ~15, ->5
    9    18    >   INIT_FCALL                                               'array_sum'
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                         $16     
         21        ECHO                                                     $16
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.12 ms | 1395 KiB | 15 Q