PHP Performance & Benchmarking

The following page of tests is an interesting examination of script execution times of various PHP functions and code constructs. Some of the findings may surprise you, and even make you think twice about how exactly you code your next script. Programming elegantly is definitely not the same as programming for performance, as many of the following examples will show.