$start = microtime(true); // тело скрипта echo 'Время выполнения скрипта: '.(microtime(true) - $start).' сек.';