3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr= array( 78, 60, 62, 68, 71, 68, 73, 85, 66, 64, 76, 63, 75, 76, 73, 68, 62, 73, 72, 65, 74, 62, 62, 65, 64, 68, 73, 75, 79, 73 ); $count=count($arr); $sum=0; foreach ($arr as $a) { $sum=$sum+$a; } echo $sum/$count;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/LKJoR
function name:  (null)
number of ops:  13
compiled vars:  !0 = $arr, !1 = $count, !2 = $sum, !3 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        COUNT                                            ~5      !0
          2        ASSIGN                                                   !1, ~5
    4     3        ASSIGN                                                   !2, 0
    5     4      > FE_RESET_R                                       $8      !0, ->9
          5    > > FE_FETCH_R                                               $8, !3, ->9
    8     6    >   ADD                                              ~9      !2, !3
          7        ASSIGN                                                   !2, ~9
    5     8      > JMP                                                      ->5
          9    >   FE_FREE                                                  $8
   10    10        DIV                                              ~11     !2, !1
         11        ECHO                                                     ~11
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.8 ms | 1384 KiB | 13 Q