3v4l.org

run code in 300+ PHP versions simultaneously
<?php $r=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); $sum=array_sum($r); $cnt=count($r); $avg=$sum/$cnt; echo "Average Temperature is ".$avg."<br>"; $highest=0; for($i=0;$i<=7;$i++) { foreach($r as $v) { if($v>$highest) $highest=$v; } } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 15
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 21
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 21
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 20
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 20
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 15
Branch analysis from position: 25
Branch analysis from position: 15
Branch analysis from position: 21
filename:       /in/Fis2J
function name:  (null)
number of ops:  26
compiled vars:  !0 = $r, !1 = $sum, !2 = $cnt, !3 = $avg, !4 = $highest, !5 = $i, !6 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    6     1        INIT_FCALL                                               'array_sum'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $8      
          4        ASSIGN                                                   !1, $8
    7     5        COUNT                                            ~10     !0
          6        ASSIGN                                                   !2, ~10
    8     7        DIV                                              ~12     !1, !2
          8        ASSIGN                                                   !3, ~12
    9     9        CONCAT                                           ~14     'Average+Temperature+is+', !3
         10        CONCAT                                           ~15     ~14, '%3Cbr%3E'
         11        ECHO                                                     ~15
   10    12        ASSIGN                                                   !4, 0
   11    13        ASSIGN                                                   !5, 0
         14      > JMP                                                      ->23
   13    15    > > FE_RESET_R                                       $18     !0, ->21
         16    > > FE_FETCH_R                                               $18, !6, ->21
   15    17    >   IS_SMALLER                                               !4, !6
         18      > JMPZ                                                     ~19, ->20
   16    19    >   ASSIGN                                                   !4, !6
   13    20    > > JMP                                                      ->16
         21    >   FE_FREE                                                  $18
   11    22        PRE_INC                                                  !5
         23    >   IS_SMALLER_OR_EQUAL                                      !5, 7
         24      > JMPNZ                                                    ~22, ->15
   20    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.67 ms | 1388 KiB | 15 Q