Measure PHP code execution time

$time_start = microtime(true);

//some PHP code

$time_end = microtime(true);

echo $execution_time = ($time_end - $time_start);

</code>

Thanks

tags: & category: -