3v4l.org

run code in 300+ PHP versions simultaneously
<?php $T1 ="one"; $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/Z76hB
function name:  (null)
number of ops:  11
compiled vars:  !0 = $T1, !1 = $T2, !2 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'one'
    3     1        ASSIGN                                                   !1, 'two'
    5     2        ASSIGN                                                   !2, 'number+%252%24s'
    7     3        INIT_FCALL                                               'sprintf'
          4        SEND_VAR                                                 !2
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !2, $6
    9     9        ECHO                                                     !2
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.21 ms | 1394 KiB | 15 Q