PHP Tutorial: This technique is very helpful when you try to optimize your PHP script. Just add a few lines of PHP code and you will get a report showing execution time of your script in milliseconds.