3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * @param non-empty-string $message */ function write(string $message, float|int|string ...$args) { $args = array_values($args); printf($message, ...$args); } write("Hello, %s! Hope you are having a nice %s!", "X", args: "weekend");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jR8Af
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'write'
          1        SEND_VAL                                                 'Hello%2C+%25s%21+Hope+you+are+having+a+nice+%25s%21'
          2        SEND_VAL                                                 'X'
          3        SEND_VAL_EX                                              'weekend', 'args'
          4        CHECK_UNDEF_ARGS                                         
          5        DO_FCALL                                      1          
          6      > RETURN                                                   1

Function write:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jR8Af
function name:  write
number of ops:  12
compiled vars:  !0 = $message, !1 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV_VARIADIC                                    !1      
    7     2        INIT_FCALL                                               'array_values'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !1, $2
    9     6        INIT_FCALL                                               'printf'
          7        SEND_VAR                                                 !0
          8        SEND_UNPACK                                              !1
          9        CHECK_UNDEF_ARGS                                         
         10        DO_ICALL                                                 
   10    11      > RETURN                                                   null

End of function write

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.31 ms | 1013 KiB | 16 Q