3v4l.org

run code in 300+ PHP versions simultaneously
<?php $id = 123456; $len = strlen($id); $input = "AHD"; $final_len = 6-$len; echo $final_len.">>".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/dCb9U
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, 123456
    3     1        STRLEN                                           ~5      !0
          2        ASSIGN                                                   !1, ~5
    4     3        ASSIGN                                                   !2, 'AHD'
    5     4        SUB                                              ~8      6, !1
          5        ASSIGN                                                   !3, ~8
    6     6        CONCAT                                           ~10     !3, '%3E%3E'
          7        INIT_FCALL                                               'str_pad'
          8        SEND_VAR                                                 !2
          9        SEND_VAR                                                 !3
         10        SEND_VAL                                                 '0'
         11        SEND_VAL                                                 1
         12        DO_ICALL                                         $11     
         13        CONCAT                                           ~12     ~10, $11
         14        CONCAT                                           ~13     ~12, !0
         15        ECHO                                                     ~13
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151 ms | 1394 KiB | 15 Q