I've always been interested in how long my code runs. The problem is that I do not quite understand how PHP code execution works. Below are the questions:
On the server, does the PHP code run on every request or is it always running?
If it is always up and running, does it create a new run for each new visitor?
If it's not always up and running, is there any way to keep it running? (even after the client has left the site)
On the internet I only found tutorials on language syntax and how to increase the execution time (which does not make sense if I do not know how it works).