memory_get_usage Returns the amount of memory allocated to PHP Description intmemory_get_usage 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. A <function>memory_get_usage</function> example ]]> See also memory-limit.