Hi,
if PHP has been compiled with --enable-memory-limit you can play around a bit with memory_get_usage().
Something like:
echo memory_get_usage()."<br>\n";
$test = array();
$test[1000] = "test";
echo memory_get_usage()."<br>\n";
Change the index and reload the script in your browser. There shouldn't be a noticeable difference (I think none).
Thomas