Created
October 19, 2014 03:14
-
-
Save actrace/77e357a595c45b044790 to your computer and use it in GitHub Desktop.
sum1E for php version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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