3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("T1","one"); define("T2","two"); $test='number %2$s'; $test=sprintf($test, T1); echo $test;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8jkZm
function name:  (null)
number of ops:  17
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                                                 
    5     8        ASSIGN                                                   !0, 'number+%252%24s'
    7     9        INIT_FCALL                                               'sprintf'
         10        SEND_VAR                                                 !0
         11        FETCH_CONSTANT                                   ~4      'T1'
         12        SEND_VAL                                                 ~4
         13        DO_ICALL                                         $5      
         14        ASSIGN                                                   !0, $5
    9    15        ECHO                                                     !0
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.82 ms | 1394 KiB | 17 Q