3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
131.16 ms | 941 KiB | 18 Q