3v4l.org

run code in 300+ PHP versions simultaneously
<?php function Test(){ $args = func_get_args(); call_user_func_array("printf",$args); } Test("Candidates 2014: %s %s %s %s\n","Tom","Debbie","Harry", "Sally"); Test("Candidates 2015: %s %s %s\n","Bob","Sam","Sarah");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fj2s6
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'test'
          1        SEND_VAL                                                 'Candidates+2014%3A+%25s+%25s+%25s+%25s%0A'
          2        SEND_VAL                                                 'Tom'
          3        SEND_VAL                                                 'Debbie'
          4        SEND_VAL                                                 'Harry'
          5        SEND_VAL                                                 'Sally'
          6        DO_FCALL                                      0          
    9     7        INIT_FCALL                                               'test'
          8        SEND_VAL                                                 'Candidates+2015%3A+%25s+%25s+%25s%0A'
          9        SEND_VAL                                                 'Bob'
         10        SEND_VAL                                                 'Sam'
         11        SEND_VAL                                                 'Sarah'
         12        DO_FCALL                                      0          
         13      > RETURN                                                   1

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

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.85 ms | 1401 KiB | 17 Q