define memory_get_usage if not defined (PHP4?)

define memory_get_usage if not defined (code from e.a.schultz@gmail.com – http://php.net/manual/de/function.memory-get-usage.php)