Skip to content

Instantly share code, notes, and snippets.

@actrace
Created October 19, 2014 03:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save actrace/77e357a595c45b044790 to your computer and use it in GitHub Desktop.
Save actrace/77e357a595c45b044790 to your computer and use it in GitHub Desktop.
sum1E for php version
<?php
$i=1;
$tmp = 0;
$startTime = microtime(true);
while($i<100000000){
$tmp += $i;
$i++;
}
print_r(microtime(true) - $startTime);
//4.8-5.2s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment