Is it the time when I click the send button on my HTML form, or the time when it arrives to the server?
<?php echo $_SERVER['REQUEST_TIME']; ?>
Edit:
I have already read the manual, Googled other sources - including SO. The clearest definition I've found is still ambigous to me, as I don't know what the start of the request means exactly in the definition below.
'REQUEST_TIME'
The timestamp of the start of the request. Available since PHP 5.1.0.
It could mean the moment when the request leaves the client, or the moment when it arrives to the server. It is not always the same, especially if the network speed is low and the latency is high.
Edit 2:
This is not a "just because" type of question. I need to maintain a food ordering service, and people with poor internet often have problems: sometimes they think we get the order when we don't, other times they think we don't get it when we do. So I've set an XHR timeout, to inform the user that the request took too much time so she should try again. But the timeout happens only on client side: the request still arrives to the server. So the server needs to know the time of the sending, not the receiving, so that it can be sure it's not a timed out request that should be discarded.