3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( 0.72, 0.72, 0.72, 0.72, 0.72, 0.72, 0.72, 0.72, 0.72, 0.72, 0.35, 0.20, 0.05, 0.05, 0.20, 0.35, 0.72, 0.72, 0.72, 0.72, 0.72, 0.72, 0.72, 0.72 ); $b = array( 97.29, 67.68, 66.97, 67.57, 67.80, 94.71, 136.23, 146.77, 139.06, 95.39, 58.66, 48.90, 37.07, 61.31, 95.26, 140.80, 228.09, 318.25, 407.95, 413.11, 409.11, 394.49, 300.57, 162.24 ); $sumProduct = 0; for( $i = 0; $i<count($a); $i++ ) { $sumProduct += ($a[$i]*$b[$i]); } echo $sumProduct;
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 = 13, Position 2 = 5
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 5
Branch analysis from position: 13
Branch analysis from position: 5
filename:       /in/hkFhf
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $b, !2 = $sumProduct, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2        ASSIGN                                                   !2, 0
    8     3        ASSIGN                                                   !3, 0
          4      > JMP                                                      ->10
    9     5    >   FETCH_DIM_R                                      ~8      !0, !3
          6        FETCH_DIM_R                                      ~9      !1, !3
          7        MUL                                              ~10     ~8, ~9
          8        ASSIGN_OP                                     1          !2, ~10
    8     9        PRE_INC                                                  !3
         10    >   COUNT                                            ~13     !0
         11        IS_SMALLER                                               !3, ~13
         12      > JMPNZ                                                    ~14, ->5
   12    13    >   ECHO                                                     !2
   13    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.4 ms | 1063 KiB | 13 Q