PHP debug[timer] – Time of execute/load your code in the page

So, what about performance of your PHP code? 🙂 Answers is simple after tracking the script execution time of your code…
For get executing time of part of your code or of all page time loading you can use simple construction:

$start_time = microtime(true);
// your code here
$end_time = microtime(true);
$result_time = $end_time - $start_time;
echo "Debug info: Code loaded $result_time seconds\n";