3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($a, $b, $c) { return func_get_args(); } $input = ['b' => 'b', 'c' => 'c']; var_dump(foo(...$input, a: 'test'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PN7kg
function name:  (null)
number of ops:  10
compiled vars:  !0 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                   !0, <array>
   10     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'foo'
          3        SEND_UNPACK                                              !0
          4        SEND_VAL_EX                                              'test', 'a'
          5        CHECK_UNDEF_ARGS                                         
          6        DO_FCALL                                      1  $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PN7kg
function name:  foo
number of ops:  6
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    5     3        FUNC_GET_ARGS                                    ~3      
          4      > RETURN                                                   ~3
    6     5*     > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
132.54 ms | 1012 KiB | 15 Q