PHP. Руководство по PHP. 2005
memory_get_usage
memory_get_usage
Description
int memory_get_usage (void)Returns the amount of memory, in bytes, that's currently being
allocated to your PHP script.
memory_get_usage() will only be defined if your PHP
is compiled with the --enable-memory-limit
configuration option.
See also
main
php_ini_scanned_files
Отвечу на любые вопросы. С уважением, Дмитрий Владимирович.