laravel calculate execution time of function 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;