3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myprelog(string $content, ...$args) { mylog($content, $args); } function mylog(string $msg, ...$args) { echo vsprintf($msg, $args); } myprelog('test %s %s', 'abc', 'def');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DPKR6
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'myprelog'
          1        SEND_VAL                                                 'test+%25s+%25s'
          2        SEND_VAL                                                 'abc'
          3        SEND_VAL                                                 'def'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

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

End of function myprelog

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

End of function mylog

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.35 ms | 1397 KiB | 16 Q