3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tab = "78, 60, 62, 68, 71, 68, 73, 85, 66, 64, 76, 63, 81, 76, 73, 68, 72, 73, 75, 65, 74, 63, 67, 65, 64, 68, 73, 75, 79, 73"; $tab = explode(',', $tab); echo 'Srednia: ' . $srednia = array_sum($tab)/count($tab) . '\n'; sort($tab); for ($i = 0; $i<=6; $i++) { echo $tab[$i]; } echo '\n'; for ($i = count($tab)-7; $i<=count($tab); $i++) { echo $tab[$i]; }
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 = 20
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 30
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 30
Branch analysis from position: 36
Branch analysis from position: 30
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 20
Branch analysis from position: 25
Branch analysis from position: 20
filename:       /in/ebU6F
function name:  (null)
number of ops:  37
compiled vars:  !0 = $tab, !1 = $srednia, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '78%2C+60%2C+62%2C+68%2C+71%2C+68%2C+73%2C+85%2C+66%2C+64%2C+76%2C+63%2C+81%2C+76%2C+73%2C+68%2C+72%2C+73%2C+75%2C+65%2C+74%2C+63%2C+67%2C+65%2C+64%2C+68%2C+73%2C+75%2C+79%2C+73'
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2C'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !0, $4
    4     6        INIT_FCALL                                               'array_sum'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $6      
          9        COUNT                                            ~7      !0
         10        DIV                                              ~8      $6, ~7
         11        CONCAT                                           ~9      ~8, '%5Cn'
         12        ASSIGN                                           ~10     !1, ~9
         13        CONCAT                                           ~11     'Srednia%3A+', ~10
         14        ECHO                                                     ~11
    6    15        INIT_FCALL                                               'sort'
         16        SEND_REF                                                 !0
         17        DO_ICALL                                                 
    8    18        ASSIGN                                                   !2, 0
         19      > JMP                                                      ->23
   10    20    >   FETCH_DIM_R                                      ~14     !0, !2
         21        ECHO                                                     ~14
    8    22        PRE_INC                                                  !2
         23    >   IS_SMALLER_OR_EQUAL                                      !2, 6
         24      > JMPNZ                                                    ~16, ->20
   12    25    >   ECHO                                                     '%5Cn'
   13    26        COUNT                                            ~17     !0
         27        SUB                                              ~18     ~17, 7
         28        ASSIGN                                                   !2, ~18
         29      > JMP                                                      ->33
   15    30    >   FETCH_DIM_R                                      ~20     !0, !2
         31        ECHO                                                     ~20
   13    32        PRE_INC                                                  !2
         33    >   COUNT                                            ~22     !0
         34        IS_SMALLER_OR_EQUAL                                      !2, ~22
         35      > JMPNZ                                                    ~23, ->30
   16    36    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.51 ms | 1400 KiB | 19 Q