php function time execution code example
Example: php check how much time each instruction takes to complete
$start = microtime(true);
while (...) {
}
$time_elapsed_secs = microtime(true) - $start;
$start = microtime(true);
while (...) {
}
$time_elapsed_secs = microtime(true) - $start;