• Time needed to compute 5 000 000 MD5 checksums: 35.018 s.
  • Time needed to compute 5 000 000 MD5 checksums (using hash()): 19.116 s.
  • Time needed to compute 5 000 000 SHA-1 checksums: 40.193 s.
  • Time needed to compute 5 000 000 SHA-1 checksums (using hash()): 20.057 s.
  • Time needed to compute 5 000 000 SHA-256 checksums: 22.045 s.

Example code for the hash module:

<?php
print_r(hash_algos());

// 93341fd331cd6340fee05e1032297a40
var_dump(hash('md5', 'The quick brown fox blah blah blah.'));
?>