Skip to content

Instantly share code, notes, and snippets.

@ihabunek
Created October 30, 2013 13:57
Show Gist options
  • Save ihabunek/7233111 to your computer and use it in GitHub Desktop.
Save ihabunek/7233111 to your computer and use it in GitHub Desktop.
<?php
$start = microtime(true);
$a = 0;
for ($i=0; $i < pow(10, 5); $i++) {
$a++;
}
$duration = microtime(true) - $start;
$duration = round($duration, 3);
$version = PHP_VERSION;
echo "PHP $version: $duration\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment