Получилось, вот что написал.)
<?php
$patterns = [
'23586e8a62e5ee0d6f5014d849601c0c',
'e7806b130b429fc9b5890608a2c60675',
'713ff7abce2ef30fc4f532bb68e92a1b',
'67dd64c651270524961da7a6686008ba'
];
$abc = [
'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','1','2','3','4','5','6','7','8','9','0'
];
$cnt = count($abc) - 1;
for($i = 0; $i <= $cnt; $i++)
{
$c1 = $abc[$i];
for($j = 0; $j <= $cnt; $j++)
{
$c2 = $abc[$j];
for($k = 0; $k <= $cnt; $k++)
{
$c3 = $abc[$k];
for($l = 0; $l <= $cnt; $l++)
{
$c4 = $abc[$l];
$words[] = $c1 . $c2 . $c3 . $c4;
}
}
}
}
foreach($words as $word)
{
$hash = md5($word);
foreach($patterns as $item)
{
if($hash == $item)
echo $word . '<br>';
}
}
?>