- hash: documentation ( source)
- explode: documentation ( source)
- hash_algos: documentation ( source)
- crc32: documentation ( source)
<?php
$array="2613626330 03949
2502602139 01336
2469405062 03538
0511502857 01337";
$algos=hash_algos();
$array=explode("\n",$array);
foreach ($array as $value) {
$value=explode(" ",$value);
echo PHP_EOL.$value[0]." ".$value[1];
foreach ($algos as $algo) {
$res=crc32(hash($algo,$value[1],true));
echo PHP_EOL.$algo.": ".$res." [".($res-$value[0])."]";
}
break;
}