3v4l.org

run code in 500+ PHP versions simultaneously
<?php function numbers($first, $second, ...$third) { var_dump($first, $second, $third); echo '-=-=-=-=-=-=-=' . PHP_EOL; } numbers(1, 2, [3, 4]); numbers(1, 2, numbers: [2, 3, 4]); numbers(second: 2, first: 1, third: [2, 3, 4]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qFEf7
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                                   'numbers'
          1        SEND_VAL                                                     1
          2        SEND_VAL                                                     2
          3        SEND_VAL                                                     <array>
          4        DO_FCALL                                          0          
   10     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          
   11    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/qFEf7
function name:  numbers
number of ops:  10
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      
    5     3        INIT_FCALL                                                   'var_dump'
          4        SEND_VAR                                                     !0
          5        SEND_VAR                                                     !1
          6        SEND_VAR                                                     !2
          7        DO_ICALL                                                     
    6     8        ECHO                                                         '-%3D-%3D-%3D-%3D-%3D-%3D-%3D%0A'
    7     9      > RETURN                                                       null

End of function numbers

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
128.25 ms | 482 KiB | 11 Q