3v4l.org

run code in 500+ PHP versions simultaneously
<?php function numbers($first, $second, ...$third) { // echo ($numbers['numbers'] ?? $numbers[0])[1]; var_dump(func_get_args()); echo '---------------' . PHP_EOL; var_dump($first, $second, $third); echo '-=-=-=-=-=-=-=' . PHP_EOL; } numbers(1, 2, [3, 4]); numbers(1, 2, numbers: [3, 4]); numbers(second: 2, first: 1, third: [3, 4]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FZXtS
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                                   'numbers'
          1        SEND_VAL                                                     1
          2        SEND_VAL                                                     2
          3        SEND_VAL                                                     <array>
          4        DO_FCALL                                          0          
   13     5        INIT_FCALL                                                   'numbers'
          6        SEND_VAL                                                     1
          7        SEND_VAL                                                     2
          8        SEND_VAL_EX                                                  <array>, 'numbers'
          9        CHECK_UNDEF_ARGS                                             
         10        DO_FCALL                                          1          
   14    11        INIT_FCALL                                                   'numbers'
         12        SEND_VAL                                                     2
         13        SEND_VAL                                                     1
         14        SEND_VAL_EX                                                  <array>, 'third'
         15        CHECK_UNDEF_ARGS                                             
         16        DO_FCALL                                          1          
         17      > RETURN                                                       1

Function numbers:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FZXtS
function name:  numbers
number of ops:  15
compiled vars:  !0 = $first, !1 = $second, !2 = $third
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
          2        RECV_VARIADIC                                        !2      
    6     3        INIT_FCALL                                                   'var_dump'
          4        FUNC_GET_ARGS                                        ~3      
          5        SEND_VAL                                                     ~3
          6        DO_ICALL                                                     
    7     7        ECHO                                                         '---------------%0A'
    8     8        INIT_FCALL                                                   'var_dump'
          9        SEND_VAR                                                     !0
         10        SEND_VAR                                                     !1
         11        SEND_VAR                                                     !2
         12        DO_ICALL                                                     
    9    13        ECHO                                                         '-%3D-%3D-%3D-%3D-%3D-%3D-%3D%0A'
   10    14      > RETURN                                                       null

End of function numbers

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
195.26 ms | 1111 KiB | 12 Q