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); 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 = 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 = 42) Position 1 = 32
Branch analysis from position: 32
2 jumps found. (Code = 44) Position 1 = 35, Position 2 = 29
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 35, Position 2 = 29
Branch analysis from position: 35
Branch analysis from position: 29
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
filename:       /in/1HjeP
function name:  (null)
number of ops:  36
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        ASSIGN                                           ~9      !1, ~8
         12        CONCAT                                           ~10     'Srednia%3A+', ~9
         13        ECHO                                                     ~10
    6    14        INIT_FCALL                                               'sort'
         15        SEND_REF                                                 !0
         16        DO_ICALL                                                 
    8    17        ASSIGN                                                   !2, 0
         18      > JMP                                                      ->22
   10    19    >   FETCH_DIM_R                                      ~13     !0, !2
         20        ECHO                                                     ~13
    8    21        PRE_INC                                                  !2
         22    >   IS_SMALLER_OR_EQUAL                                      !2, 6
         23      > JMPNZ                                                    ~15, ->19
   12    24    >   ECHO                                                     '%5Cn'
   13    25        COUNT                                            ~16     !0
         26        SUB                                              ~17     ~16, 7
         27        ASSIGN                                                   !2, ~17
         28      > JMP                                                      ->32
   15    29    >   FETCH_DIM_R                                      ~19     !0, !2
         30        ECHO                                                     ~19
   13    31        PRE_INC                                                  !2
         32    >   COUNT                                            ~21     !0
         33        IS_SMALLER_OR_EQUAL                                      !2, ~21
         34      > JMPNZ                                                    ~22, ->29
   16    35    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.7 ms | 1400 KiB | 19 Q