3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.77 ms | 1445 KiB | 15 Q