PHP – Get execution time of the script

<?php
    // Your Script here.
    $time = microtime(true) - $_SERVER["REQUEST_TIME_FLOAT"];
    echo "Execution Time: {$time}";
    // Execution Time: 1.5140309333801 

Leave a Comment

Your email address will not be published. Required fields are marked *