3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo( string|null $first = null, string|null $second = null, mixed ...$others ){ var_dump(func_get_args()); } foo(others:1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sDNW1
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                                   'foo'
          1        SEND_VAL_EX                                                  1, 'others'
          2        CHECK_UNDEF_ARGS                                             
          3        DO_FCALL                                          1          
          4      > RETURN                                                       1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sDNW1
function name:  foo
number of ops:  8
compiled vars:  !0 = $first, !1 = $second, !2 = $others
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                            !0      null
    4     1        RECV_INIT                                            !1      null
    5     2        RECV_VARIADIC                                        !2      
    7     3        INIT_FCALL                                                   'var_dump'
          4        FUNC_GET_ARGS                                        ~3      
          5        SEND_VAL                                                     ~3
          6        DO_ICALL                                                     
    8     7      > RETURN                                                       null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.46 ms | 1093 KiB | 15 Q