Created
May 20, 2017 10:53
-
-
Save JudeRosario/c87a3a982b0cdaa2baa8c58330950d20 to your computer and use it in GitHub Desktop.
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 | |
$j = 0; | |
$start = microtime(true); | |
for ( $i = 0 ; $i < PHP_INT_MAX ; $i++ ) { | |
$j++; | |
} | |
echo $j . "\n" ; | |
$time_elapsed_secs = microtime(true) - $start; | |
echo $time_elapsed_secs . "\n" ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment