3v4l.org

run code in 300+ PHP versions simultaneously
<?php function sum(...$nums) { return array_sum($nums); } echo sum(1, 4, 12, 20); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E320G
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'sum'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 4
          3        SEND_VAL                                                 12
          4        SEND_VAL                                                 20
          5        DO_FCALL                                      0  $0      
          6        ECHO                                                     $0
    8     7      > RETURN                                                   1

Function sum:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E320G
function name:  sum
number of ops:  6
compiled vars:  !0 = $nums
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV_VARIADIC                                    !0      
    4     1        INIT_FCALL                                               'array_sum'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $1      
          4      > RETURN                                                   $1
    5     5*     > RETURN                                                   null

End of function sum

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.02 ms | 1388 KiB | 16 Q