Php verifique cuánto tiempo lleva cada instrucción para completar
$start = microtime(true);
while (...) {
}
$time_elapsed_secs = microtime(true) - $start;
SeriousMonk
$start = microtime(true);
while (...) {
}
$time_elapsed_secs = microtime(true) - $start;
<?php
//No need for microtime at the start of script.
// Use this at the end of your script, or around in the
// code where you need to take meassures.
$time = microtime(true) - $_SERVER["REQUEST_TIME_FLOAT"];
echo "Did stuff in $time seconds\n";
?>