3v4l.org

run code in 500+ PHP versions simultaneously
<?php function f(mixed ...$args): void { var_dump(array_is_list($args)); var_dump($args); } f(...[ 3 => false, 4 => false, 5 => false, 15 => true, 'a' => 'aa', '' => 'nope', 'bb' => 'bb', ]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gFrDj
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                                   'f'
   10     1        SEND_UNPACK                                                  <array>
          2        CHECK_UNDEF_ARGS                                             
    9     3        DO_FCALL                                          1          
   17     4      > RETURN                                                       1

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

End of function f

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
143.23 ms | 3421 KiB | 16 Q