3v4l.org

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

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

End of function v_sum

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.21 ms | 1397 KiB | 18 Q