<?php
$hash = md5("proton.me");
$array = str_split($hash);
$text = '&!@%?&@%';
for ($item = 0; $item<32; $item++) {
if (preg_match("/-" . $item . "-/i", "-1-5-9-13-17-21-25-29-")) {
$array[$item] = strtoupper($array[$item]);
} else if (preg_match("/-" . $item . "-/i", "-3-7-11-15-19-23-27-31-")) {
$array[$item] = substr($text, 0, 1);
$text = substr($text, 1);
} else {
continue;
}
}
$result = join("", $array);
echo $result;