What are the potential pitfalls of running PHP scripts that heavily load the server CPU through browser requests?

Running PHP scripts that heavily load the server CPU through browser requests can lead to slow response times, server crashes, and increased server costs due to higher resource usage. To mitigate this issue, you can set a maximum execution time for PHP scripts using the `set_time_limit()` function to prevent them from running indefinitely and consuming excessive server resources.

// Set a maximum execution time of 30 seconds for PHP scripts
set_time_limit(30);

// Your heavy CPU loading PHP script here