3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.52 ms | 1395 KiB | 17 Q