3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
244.65 ms | 2584 KiB | 14 Q