Your web server is presumably always on (right? your webserver is always on right?). Your webserver has PHP installed. When your webserver is contacted by Twitch with the payload, it uses the installed PHP processor to run your php script through it. PHP is not a web server. I think that’s the core problem here.