3v4l.org

run code in 300+ PHP versions simultaneously
<?php function threeFiveSumFunc($integar) { $sum = 0; for ($i = 0; $i < $integar; $i++) { if($i % 3 == 0 || $i % 5 ==0){ $sum = $sum + $i; } } return $sum; } echo threeFiveSumFunc(10);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7oM6G
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   INIT_FCALL                                               'threefivesumfunc'
          1        SEND_VAL                                                 10
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function threefivesumfunc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 4
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 47) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 4
Branch analysis from position: 16
Branch analysis from position: 4
Branch analysis from position: 13
Branch analysis from position: 10
filename:       /in/7oM6G
function name:  threeFiveSumFunc
number of ops:  18
compiled vars:  !0 = $integar, !1 = $sum, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        ASSIGN                                                   !1, 0
    7     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->14
    9     4    >   MOD                                              ~5      !2, 3
          5        IS_EQUAL                                         ~6      ~5, 0
          6      > JMPNZ_EX                                         ~6      ~6, ->10
          7    >   MOD                                              ~7      !2, 5
          8        IS_EQUAL                                         ~8      ~7, 0
          9        BOOL                                             ~6      ~8
         10    > > JMPZ                                                     ~6, ->13
   11    11    >   ADD                                              ~9      !1, !2
         12        ASSIGN                                                   !1, ~9
    7    13    >   PRE_INC                                                  !2
         14    >   IS_SMALLER                                               !2, !0
         15      > JMPNZ                                                    ~12, ->4
   17    16    > > RETURN                                                   !1
   18    17*     > RETURN                                                   null

End of function threefivesumfunc

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.02 ms | 1399 KiB | 14 Q