3v4l.org

run code in 300+ PHP versions simultaneously
<?php function v($db, $table, ...$fields) { print_r($fields); } $db = SOME_PDO_CONNECTION; $table = 'users'; v($db, $table, 'name', 'email', 'phone', 'city');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HNOvI
function name:  (null)
number of ops:  12
compiled vars:  !0 = $db, !1 = $table
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   FETCH_CONSTANT                                   ~2      'SOME_PDO_CONNECTION'
          1        ASSIGN                                                   !0, ~2
    6     2        ASSIGN                                                   !1, 'users'
    7     3        INIT_FCALL                                               'v'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        SEND_VAL                                                 'name'
          7        SEND_VAL                                                 'email'
          8        SEND_VAL                                                 'phone'
          9        SEND_VAL                                                 'city'
         10        DO_FCALL                                      0          
         11      > RETURN                                                   1

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

End of function v

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.74 ms | 1389 KiB | 16 Q