3v4l.org

run code in 300+ PHP versions simultaneously
<?php $id = 79891959856; $len = strlen($id); $input = "FDFDSFD"; $final_len = 6+strlen($input)-$len; echo str_pad($input, $final_len, "0", STR_PAD_RIGHT).$id;

preferences:
42.02 ms | 402 KiB | 5 Q