3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("T1","one"); define("T2","two"); $test="number %1$s %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/5Z9e4
function name:  (null)
number of ops:  23
compiled vars:  !0 = $test, !1 = $s
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        ROPE_INIT                                     4  ~5      'number+%251'
          9        ROPE_ADD                                      1  ~5      ~5, !1
         10        ROPE_ADD                                      2  ~5      ~5, '+%252'
         11        ROPE_END                                      3  ~4      ~5, !1
         12        ASSIGN                                                   !0, ~4
    7    13        INIT_FCALL                                               'sprintf'
         14        SEND_VAR                                                 !0
         15        FETCH_CONSTANT                                   ~8      'T1'
         16        SEND_VAL                                                 ~8
         17        FETCH_CONSTANT                                   ~9      'T2'
         18        SEND_VAL                                                 ~9
         19        DO_ICALL                                         $10     
         20        ASSIGN                                                   !0, $10
    9    21        ECHO                                                     !0
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.26 ms | 1395 KiB | 17 Q