Lately, I've been spending time trying to optimise PHP code. I develop on localhost inside a VM and have been putting the memory_get_usage() at the end of scripts to help do this.
The localhost uses the same configuration as the live Apache 2.2 server but for some reason, I notice the function returns two different values. On the live server it always returns 10-14x more memory being used than the localhost.
Does anyone know why this is?
memory_get_usage()
shows 10-14x more?