3v4l.org

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

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

End of function mylog

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.92 ms | 1396 KiB | 16 Q