This is an operating system issue, and I don't know of any modern operating system where this would be easy to determine. Some of the newer Journaling file systems may keep track of such actions, but I doubt there is a simple tool which will display the "last five directories created".
If you need to keep track of the directories created by your PHP scripts, then keep a log file and add to it when the scripts create directories.