3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.34 ms | 1394 KiB | 15 Q