3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("T1","one"); define("T2","two"); define("T3", 'mierder'); $test='numbers %2$s %1$s, %3$s'; $test=sprintf($test, T1,T2, T3); echo $test;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Qdvld
function name:  (null)
number of ops:  25
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'T1'
          2        SEND_VAL                                                 'one'
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'define'
          5        SEND_VAL                                                 'T2'
          6        SEND_VAL                                                 'two'
          7        DO_ICALL                                                 
    4     8        INIT_FCALL                                               'define'
          9        SEND_VAL                                                 'T3'
         10        SEND_VAL                                                 'mierder'
         11        DO_ICALL                                                 
    6    12        ASSIGN                                                   !0, 'numbers+%252%24s+%251%24s%2C+%253%24s'
    8    13        INIT_FCALL                                               'sprintf'
         14        SEND_VAR                                                 !0
         15        FETCH_CONSTANT                                   ~5      'T1'
         16        SEND_VAL                                                 ~5
         17        FETCH_CONSTANT                                   ~6      'T2'
         18        SEND_VAL                                                 ~6
         19        FETCH_CONSTANT                                   ~7      'T3'
         20        SEND_VAL                                                 ~7
         21        DO_ICALL                                         $8      
         22        ASSIGN                                                   !0, $8
   10    23        ECHO                                                     !0
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.96 ms | 940 KiB | 18 Q