3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo sprintf('My name is %1$s and I like %2$s', 'Chris', '🍕'); echo PHP_EOL; echo sprintf('My name is %2$s and I like %1$s', '🍕', 'Chris'); echo PHP_EOL; echo sprintf('My name is %s and I like %s', 'Chris', '🍕');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lPrUK
function name:  (null)
number of ops:  21
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'sprintf'
          1        SEND_VAL                                                 'My+name+is+%251%24s+and+I+like+%252%24s'
          2        SEND_VAL                                                 'Chris'
          3        SEND_VAL                                                 '%F0%9F%8D%95'
          4        DO_ICALL                                         $0      
          5        ECHO                                                     $0
    4     6        ECHO                                                     '%0A'
    5     7        INIT_FCALL                                               'sprintf'
          8        SEND_VAL                                                 'My+name+is+%252%24s+and+I+like+%251%24s'
          9        SEND_VAL                                                 '%F0%9F%8D%95'
         10        SEND_VAL                                                 'Chris'
         11        DO_ICALL                                         $1      
         12        ECHO                                                     $1
    6    13        ECHO                                                     '%0A'
    7    14        INIT_FCALL                                               'sprintf'
         15        SEND_VAL                                                 'My+name+is+%25s+and+I+like+%25s'
         16        SEND_VAL                                                 'Chris'
         17        SEND_VAL                                                 '%F0%9F%8D%95'
         18        DO_ICALL                                         $2      
         19        ECHO                                                     $2
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.17 ms | 1009 KiB | 14 Q