Skip to content

Instantly share code, notes, and snippets.

@n1crack
Last active November 17, 2018 16:56
Show Gist options
  • Save n1crack/9093b4b23a1631477e0edb023648a0e2 to your computer and use it in GitHub Desktop.
Save n1crack/9093b4b23a1631477e0edb023648a0e2 to your computer and use it in GitHub Desktop.
code execution time #php
<?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