3v4l.org

run code in 300+ PHP versions simultaneously
<?php $A = array(9,4,-3,-10); function solution($A) { $average = count($A); print $average; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/URSIC
function name:  (null)
number of ops:  2
compiled vars:  !0 = $A
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    8     1      > RETURN                                                   1

Function solution:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/URSIC
function name:  solution
number of ops:  5
compiled vars:  !0 = $A, !1 = $average
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        COUNT                                            ~2      !0
          2        ASSIGN                                                   !1, ~2
    6     3        ECHO                                                     !1
    7     4      > RETURN                                                   null

End of function solution

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.6 ms | 1392 KiB | 13 Q