3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function f($sql, ...$args) { var_dump($args); } f('query'); f('query', 1, 2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AEBjB
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'f'
          1        SEND_VAL                                                 'query'
          2        DO_FCALL                                      0          
   10     3        INIT_FCALL                                               'f'
          4        SEND_VAL                                                 'query'
          5        SEND_VAL                                                 1
          6        SEND_VAL                                                 2
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

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

End of function f

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.46 ms | 1397 KiB | 17 Q