3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo sprintf('number %1$s %1$s', 'one') .'<br>'; echo sprintf('number %2$s %2$s', 'one', 'two') .'<br>';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/H7Gn6
function name:  (null)
number of ops:  14
compiled vars:  none
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                                         $0      
          4        CONCAT                                           ~1      $0, '%3Cbr%3E'
          5        ECHO                                                     ~1
    4     6        INIT_FCALL                                               'sprintf'
          7        SEND_VAL                                                 'number+%252%24s+%252%24s'
          8        SEND_VAL                                                 'one'
          9        SEND_VAL                                                 'two'
         10        DO_ICALL                                         $2      
         11        CONCAT                                           ~3      $2, '%3Cbr%3E'
         12        ECHO                                                     ~3
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.09 ms | 1385 KiB | 15 Q