How to execute a function in php after a specific amount of time?

How to call a function in PHP after 5 seconds in php ?

sleep(timeinsecond); is used to make a delay in php.

sleep(5); 5 second delay .

Then we can call any function in php