Is there a way I can know at what point the script has used the most memory and how much it was?
I know memory_get_usage(), but that will return the current memory usage, right?
So if you call it like when the script ends you get the lowest memory count because PHP has freed the memory for most of the stuff.