- microtime: documentation ( source)
- serialize: documentation ( source)
- json_encode: documentation ( source)
- range: documentation ( source)
- md5: documentation ( source)
<?php
$a = range(0,10000);
$start = microtime(TRUE);
md5(serialize($a));
echo "md5(serialize..:" . (microtime(TRUE) - $start) . "\n";
$start = microtime(TRUE);
md5(json_encode($a));
echo "md5(json_encode..:" . (microtime(TRUE)-$start) . "\n";