What are the potential pitfalls of using sleep() in PHP without a timeout?

Using sleep() in PHP without a timeout can lead to indefinite delays in the script execution, causing performance issues and potential server resource exhaustion. To prevent this, it is recommended to always specify a timeout value when using sleep() to limit the duration of the sleep period.

// Example of using sleep() with a timeout of 5 seconds
sleep(5);