3v4l.org

run code in 300+ PHP versions simultaneously
<?php $number1 = 250; $number2 = 7; $format = '%2$03d'; echo sprintf($format, $number1); echo sprintf($format, $number2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u6hQ5
function name:  (null)
number of ops:  14
compiled vars:  !0 = $number1, !1 = $number2, !2 = $format
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 250
    4     1        ASSIGN                                                   !1, 7
    6     2        ASSIGN                                                   !2, '%252%2403d'
    8     3        INIT_FCALL                                               'sprintf'
          4        SEND_VAR                                                 !2
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $6      
          7        ECHO                                                     $6
    9     8        INIT_FCALL                                               'sprintf'
          9        SEND_VAR                                                 !2
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $7      
         12        ECHO                                                     $7
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.37 ms | 1394 KiB | 15 Q