Measure php code execution time


$time_start = microtime(true);

// Here is your code.

$time_end = microtime(true);

$execution_time = ($time_end - $time_start)/60;