Measure PHP execution time using this small and simple script. PHP typically executes very quickly, though some code takes significant time to execute, i.e. retrieving and parsing remote files, image manipulations, complex and/or multiple SQL queries, etc. If code is choking your server's CPU, or your site visitors are clicking away because your page is taking too long to respond, use this PHP script to highlight the bottlenecks. Customizable output; configure any number of runs and display fastest, slowest, and average execution times. With examples.