Last active
November 17, 2018 16:56
-
-
Save n1crack/9093b4b23a1631477e0edb023648a0e2 to your computer and use it in GitHub Desktop.
code execution time #php
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 | |
$time_start = microtime(true); | |
for($i=0; $i<1000; $i++){ | |
// code here | |
} | |
$time_end = microtime(true); | |
$execution_time = ($time_end - $time_start)/60; | |
var_dump($time_end - $time_start, $execution_time); | |
die(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment