3v4l.org

run code in 300+ PHP versions simultaneously
<?php function avrg() { $count = func_num_args(); $args = func_get_args(); return (array_sum($args) / $count); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0hMrD
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E > > RETURN                                                   1

Function avrg:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0hMrD
function name:  avrg
number of ops:  10
compiled vars:  !0 = $count, !1 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   FUNC_NUM_ARGS                                    ~2      
          1        ASSIGN                                                   !0, ~2
    5     2        FUNC_GET_ARGS                                    ~4      
          3        ASSIGN                                                   !1, ~4
    6     4        INIT_FCALL                                               'array_sum'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $6      
          7        DIV                                              ~7      $6, !0
          8      > RETURN                                                   ~7
    7     9*     > RETURN                                                   null

End of function avrg

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.74 ms | 1394 KiB | 15 Q