Re: PHP array entries max limit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Prabath Kumarasinghe wrote:

> Hi All
> 
> I would like to know how many entries does PHP associative array can
> handle.

Why don't you just test it? 
for( $i=0; ; $i++ )
{
        $kk[$i]=1;
}

Attempt#1 - 130000 keys, stopped due to memory limit *M.
Attempt#2 - 8380000 keys, memlimit 512M.
Attempt#3 - 29580000 keys, memlimit 2G.


/Per Jessen, Zürich

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux