3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f1() { echo sprintf("%s => %d", "blep", 1); } function f2() { echo vsprintf("%s => %d", ["blep", 1]); } echo f1(); echo "\n"; echo f2();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qG77b
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'f1'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
   12     3        ECHO                                                     '%0A'
   13     4        INIT_FCALL                                               'f2'
          5        DO_FCALL                                      0  $1      
          6        ECHO                                                     $1
          7      > RETURN                                                   1

Function f1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qG77b
function name:  f1
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'sprintf'
          1        SEND_VAL                                                 '%25s+%3D%3E+%25d'
          2        SEND_VAL                                                 'blep'
          3        SEND_VAL                                                 1
          4        DO_ICALL                                         $0      
          5        ECHO                                                     $0
    5     6      > RETURN                                                   null

End of function f1

Function f2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qG77b
function name:  f2
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'vsprintf'
          1        SEND_VAL                                                 '%25s+%3D%3E+%25d'
          2        SEND_VAL                                                 <array>
          3        DO_ICALL                                         $0      
          4        ECHO                                                     $0
    9     5      > RETURN                                                   null

End of function f2

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
190.72 ms | 1398 KiB | 19 Q