3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); function f(array|string $var_name, array|string ...$var_names): void { var_dump($var_name, ...$var_names); } f(true, 42);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K3cmC
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                                   'f'
          1        SEND_VAL                                                     <true>
          2        SEND_VAL                                                     42
          3        DO_FCALL                                          0          
          4      > RETURN                                                       1

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

End of function f

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.22 ms | 1696 KiB | 15 Q