I suspect my question is rather rudimentary, but here it goes: In Node.js I can start a process and have it run in the background waiting for requests. For example, I can create a variable and increment it by 1 every time I get a request. How can I do the same in PHP? From what I understand PHP code is run just for the request, then everything is removed from memory. Thank you!