3v4l.org

run code in 300+ PHP versions simultaneously
<?php $prices = array(1, 2, 3, 4, 5, 6, 7, 7, null); echo (int)round(array_sum($prices) / count($prices));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kbKCV
function name:  (null)
number of ops:  12
compiled vars:  !0 = $prices
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'round'
          2        INIT_FCALL                                               'array_sum'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        COUNT                                            ~3      !0
          6        DIV                                              ~4      $2, ~3
          7        SEND_VAL                                                 ~4
          8        DO_ICALL                                         $5      
          9        CAST                                          4  ~6      $5
         10        ECHO                                                     ~6
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.36 ms | 1394 KiB | 17 Q