- Output for 5.6.0 - 5.6.24, 7.0.0 - 7.0.20, 7.1.0 - 7.1.7, 7.2.0
Process exited with code 137.
<?php
$a = str_repeat('a', 100000);
foreach (hash_algos() as $code => $algo) {
$m = microtime(TRUE);
for ($i = 0; $i < 100; $i++) hash($algo, $a);
$time[$algo] = microtime(TRUE) - $m;
}
arsort($time);
print_r($time);