I know this question, but it covers only files created by an upload process or tmpfile() that are automatically deleted at the end of the request. Instead I want to know how long files stay that are manually created in the system temp folder f.e. through file_put_contents() and sys_get_temp_dir().
If the pruning is done through the operation system, please answer how the different major webserver operation systems handle it.