3v4l.org

run code in 300+ PHP versions simultaneously
<?php function Test(...$args){ printf(...$args); } $namesT = ["Timmy","Teddy","Theo","Tad"]; $namesB = ["Bobby","Bill","Brad"]; Test("T Names: %s %s %s %s\n",...$namesT); Test("B Names: %s %s %s\n",...$namesB);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gWAjA
function name:  (null)
number of ops:  13
compiled vars:  !0 = $namesT, !1 = $namesB
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, <array>
    8     1        ASSIGN                                                   !1, <array>
   10     2        INIT_FCALL                                               'test'
          3        SEND_VAL                                                 'T+Names%3A+%25s+%25s+%25s+%25s%0A'
          4        SEND_UNPACK                                              !0
          5        CHECK_UNDEF_ARGS                                         
          6        DO_FCALL                                      1          
   11     7        INIT_FCALL                                               'test'
          8        SEND_VAL                                                 'B+Names%3A+%25s+%25s+%25s%0A'
          9        SEND_UNPACK                                              !1
         10        CHECK_UNDEF_ARGS                                         
         11        DO_FCALL                                      1          
         12      > RETURN                                                   1

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

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.29 ms | 1401 KiB | 17 Q