File Deletion on Windows
Since PHP 7.3, file descriptors are opened on Windows in shared read/write/delete mode by default. This brings the default behaviour on Windows (almost) in line with how POSIX-compliant systems open file descriptors by default. It also allows the deletion of files that have open file descriptors.
There are still some differences between UNIX-based systems and Windows. For instance, after a file is deleted the filename entry is blocked until all open file descriptors for it have been closed.