- Output for 5.4.1 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
Process exited with code 137.
<?php
$result = [];
foreach(hash_algos() as $algo) {
$start = microtime(true);
$i = 1e6;
while (--$i) {
hash($algo, $i);
}
$result[$algo] = microtime(true) - $start;
}
asort($result);
var_dump($result);