3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.73 ms | 1385 KiB | 15 Q