3v4l.org

run code in 300+ PHP versions simultaneously
<?php $temperature = 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); $total = 0; $len = count($temperature); echo $len; foreach($temperature as $temp) { $total += $temp; } $avg = $total/$len; echo "Averaage temp is" .$avg; sort($temperature); for ($i = 0; $i < 5 ; $i++) { echo $temperature[$i]; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 19
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 19
Branch analysis from position: 24
Branch analysis from position: 19
Branch analysis from position: 9
filename:       /in/1WDEn
function name:  (null)
number of ops:  25
compiled vars:  !0 = $temperature, !1 = $total, !2 = $len, !3 = $temp, !4 = $avg, !5 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, 0
    8     2        COUNT                                            ~8      !0
          3        ASSIGN                                                   !2, ~8
    9     4        ECHO                                                     !2
   11     5      > FE_RESET_R                                       $10     !0, ->9
          6    > > FE_FETCH_R                                               $10, !3, ->9
   12     7    >   ASSIGN_OP                                     1          !1, !3
   11     8      > JMP                                                      ->6
          9    >   FE_FREE                                                  $10
   14    10        DIV                                              ~12     !1, !2
         11        ASSIGN                                                   !4, ~12
   15    12        CONCAT                                           ~14     'Averaage+temp+is', !4
         13        ECHO                                                     ~14
   17    14        INIT_FCALL                                               'sort'
         15        SEND_REF                                                 !0
         16        DO_ICALL                                                 
   19    17        ASSIGN                                                   !5, 0
         18      > JMP                                                      ->22
   21    19    >   FETCH_DIM_R                                      ~17     !0, !5
         20        ECHO                                                     ~17
   19    21        PRE_INC                                                  !5
         22    >   IS_SMALLER                                               !5, 5
         23      > JMPNZ                                                    ~19, ->19
   23    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.38 ms | 1396 KiB | 15 Q