Stopping an infinite loop on a remote server PHP

kill the process. assuming you can get access to the console via ssh and your server runs on linux:

ps -ef | grep php // to get a list of php-processes

kill [process-id] // kill the process by process-id

Assuming you are working with a shared hosting server, and have no access to command line or ssh or hosting support team...

your best shot would be using your website management panel to trigger php restart.

this happens when you switch php version / change php ini params such as memory limit