Calculate script execution time
<?php $start = microtime(true); // code here $end = microtime(true); echo $end-$start . " seconds";