3v4l.org

run code in 300+ PHP versions simultaneously
<?php $number = 8899; // Length of the supplied number is 3 $number = sprintf('%05d', $number); echo $number;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kphFb
function name:  (null)
number of ops:  8
compiled vars:  !0 = $number
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 8899
    4     1        INIT_FCALL                                               'sprintf'
          2        SEND_VAL                                                 '%2505d'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
    5     6        ECHO                                                     !0
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.42 ms | 1385 KiB | 15 Q