- microtime: documentation ( source)
- str_rot13: documentation ( source)
<?php
function noop($d){return $d;}
$d = '';
$start = microtime(1);
while($i++ < 500000) $d = str_rot13('rotate 13');
echo microtime(1) - $start;
echo "\n";
$start = microtime(1);
while($e++ < 500000) $d = noop('rotate 13');
echo microtime(1) - $start;