3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(sprintf("('1%1$\')", 'a')); var_dump(sprintf("('1%\')", 'a','b')); var_dump(sprintf("('1%ab", 'a','b')); var_dump(sprintf("('1%)a", 'a','b')); var_dump(sprintf("('1%'ab", 'a','b'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/htFAa
function name:  (null)
number of ops:  40
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'sprintf'
          2        SEND_VAL                                                 '%28%271%251%24%5C%27%29'
          3        SEND_VAL                                                 'a'
          4        DO_ICALL                                         $0      
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                                 
    4     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'sprintf'
          9        SEND_VAL                                                 '%28%271%25%5C%27%29'
         10        SEND_VAL                                                 'a'
         11        SEND_VAL                                                 'b'
         12        DO_ICALL                                         $2      
         13        SEND_VAR                                                 $2
         14        DO_ICALL                                                 
    6    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'sprintf'
         17        SEND_VAL                                                 '%28%271%25ab'
         18        SEND_VAL                                                 'a'
         19        SEND_VAL                                                 'b'
         20        DO_ICALL                                         $4      
         21        SEND_VAR                                                 $4
         22        DO_ICALL                                                 
    8    23        INIT_FCALL                                               'var_dump'
         24        INIT_FCALL                                               'sprintf'
         25        SEND_VAL                                                 '%28%271%25%29a'
         26        SEND_VAL                                                 'a'
         27        SEND_VAL                                                 'b'
         28        DO_ICALL                                         $6      
         29        SEND_VAR                                                 $6
         30        DO_ICALL                                                 
   10    31        INIT_FCALL                                               'var_dump'
         32        INIT_FCALL                                               'sprintf'
         33        SEND_VAL                                                 '%28%271%25%27ab'
         34        SEND_VAL                                                 'a'
         35        SEND_VAL                                                 'b'
         36        DO_ICALL                                         $8      
         37        SEND_VAR                                                 $8
         38        DO_ICALL                                                 
         39      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.84 ms | 1388 KiB | 17 Q