3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo sprintf("%'.09d\n", 123), sprintf("%'.9d\n", 123), sprintf("%'.+9d\n", 123);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fV5IR
function name:  (null)
number of ops:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'sprintf'
          1        SEND_VAL                                                 '%25%27.09d%0A'
          2        SEND_VAL                                                 123
          3        DO_ICALL                                         $0      
          4        ECHO                                                     $0
    4     5        INIT_FCALL                                               'sprintf'
          6        SEND_VAL                                                 '%25%27.9d%0A'
          7        SEND_VAL                                                 123
          8        DO_ICALL                                         $1      
          9        ECHO                                                     $1
    5    10        INIT_FCALL                                               'sprintf'
         11        SEND_VAL                                                 '%25%27.%2B9d%0A'
         12        SEND_VAL                                                 123
         13        DO_ICALL                                         $2      
         14        ECHO                                                     $2
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.36 ms | 1394 KiB | 15 Q