Linux: How to get remote page load time with a command from the terminal?
This will give you the remote page load time in miliseconds.
Code language: Bash (bash)time wget -p https://lateweb.info >/dev/null 2>&1
You can implement the command with php like:
<?php
$output = shell_exec('time wget -p https://lateweb.info >/dev/null 2>&1');
echo "<pre>$output</pre>";
?>
Code language: PHP (php)