public marks

PUBLIC MARKS from kasi77 with tags php & benchmark

June 2008

in_array is quite slow

So, we had a cron job hanging for hours. No idea why. So, I started debugging. It all came down to a call to in_array().

The PHP Benchmark

by 8 others (via)
PHPBench.com was constructed as a way to open people's eyes to the fact that not every PHP code snippet will run at the same speed. You may be surprised at the results that this page generates, but that is ok. This page was also created so that you would be able to find discovery in these statistics and then maybe re-run these tests in your own server environment to play around with this idea yourself, by using the code examples (these code examples are automatically generated and as the code in my .php files change, so do they)

February 2008