Re: Associative Array Benchmarking

From: Date: Sun, 19 Sep 2004 14:53:58 +0000
Subject: Re: Associative Array Benchmarking
Groups: php.general 
Request: Send a blank email to php-general+get-197184@lists.php.net to get a copy of this message
* Thus wrote bskolb: > > Benchmark results: > > Function assocArrayWithQuotes() ran 500000 times in 4.4331 seconds. > Function assocArrayWithoutQuotes() ran 500000 times in 6.4170 seconds. > > The only difference in the two functions is the use of quotes, one with and > the other without. That is because the one without the quotes, php first checks to see if a constant is defined with that name, if not then the literal value will be used. Curt -- The above comments may offend you. flame at will.

« previous php.general (#197184) next »