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 = array_sum($tab)/count($tab); sort($tab); for ($i = 0; $i<=6; $i++) { echo $tab[$i]; } 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 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 18
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 27
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 27
Branch analysis from position: 33
Branch analysis from position: 27
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 18
Branch analysis from position: 23
Branch analysis from position: 18
filename:       /in/2d2CY
function name:  (null)
number of ops:  34
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        ECHO                                                     ~9
    6    13        INIT_FCALL                                               'sort'
         14        SEND_REF                                                 !0
         15        DO_ICALL                                                 
    8    16        ASSIGN                                                   !2, 0
         17      > JMP                                                      ->21
   10    18    >   FETCH_DIM_R                                      ~12     !0, !2
         19        ECHO                                                     ~12
    8    20        PRE_INC                                                  !2
         21    >   IS_SMALLER_OR_EQUAL                                      !2, 6
         22      > JMPNZ                                                    ~14, ->18
   12    23    >   COUNT                                            ~15     !0
         24        SUB                                              ~16     ~15, 7
         25        ASSIGN                                                   !2, ~16
         26      > JMP                                                      ->30
   14    27    >   FETCH_DIM_R                                      ~18     !0, !2
         28        ECHO                                                     ~18
   12    29        PRE_INC                                                  !2
         30    >   COUNT                                            ~20     !0
         31        IS_SMALLER_OR_EQUAL                                      !2, ~20
         32      > JMPNZ                                                    ~21, ->27
   15    33    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.7 ms | 1396 KiB | 19 Q