3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test=sprintf('number %1$s %1$s', 'one'); echo $test.'<br />'; $test=sprintf('number %2$s %2$s', 'one', 'two'); echo $test.'<br />';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f5atQ
function name:  (null)
number of ops:  16
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'sprintf'
          1        SEND_VAL                                                 'number+%251%24s+%251%24s'
          2        SEND_VAL                                                 'one'
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    3     5        CONCAT                                           ~3      !0, '%3Cbr+%2F%3E'
          6        ECHO                                                     ~3
    5     7        INIT_FCALL                                               'sprintf'
          8        SEND_VAL                                                 'number+%252%24s+%252%24s'
          9        SEND_VAL                                                 'one'
         10        SEND_VAL                                                 'two'
         11        DO_ICALL                                         $4      
         12        ASSIGN                                                   !0, $4
    6    13        CONCAT                                           ~6      !0, '%3Cbr+%2F%3E'
         14        ECHO                                                     ~6
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.18 ms | 1394 KiB | 15 Q