Calculate PHP script's execution time
Answer:
If you want to estimate the PHP script's execution time, you can try something like the following:
<?php
$time_start = microtime(true);
// some long running codes...
$time_end = microtime(true);
echo "Time (msec) passed: " , $time_end - $time_start;