3v4l.org

run code in 300+ PHP versions simultaneously
<?php function func_call(string ...$tail): void { var_dump($tail); } func_call("foo"); func_call("foo", "bar", "baz"); func_call(...["foo", "bar", "baz"]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pG8K5
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'func_call'
          1        SEND_VAL                                                 'foo'
          2        DO_FCALL                                      0          
    7     3        INIT_FCALL                                               'func_call'
          4        SEND_VAL                                                 'foo'
          5        SEND_VAL                                                 'bar'
          6        SEND_VAL                                                 'baz'
          7        DO_FCALL                                      0          
    8     8        INIT_FCALL                                               'func_call'
          9        SEND_UNPACK                                              <array>
         10        CHECK_UNDEF_ARGS                                         
         11        DO_FCALL                                      1          
         12      > RETURN                                                   1

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

End of function func_call

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.68 ms | 1397 KiB | 18 Q