3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = "00001"; $i++; Echo str_pad($i,5,"0",STR_PAD_LEFT);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f6hht
function name:  (null)
number of ops:  10
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '00001'
    5     1        PRE_INC                                                  !0
    6     2        INIT_FCALL                                               'str_pad'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 5
          5        SEND_VAL                                                 '0'
          6        SEND_VAL                                                 0
          7        DO_ICALL                                         $3      
          8        ECHO                                                     $3
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.61 ms | 1393 KiB | 15 Q