Would you like some performance with your PHP?

Posted by: bob on Tuesday May 10th 2011

This week I uncovered some interesting and disturbing facts about the state of performance of custom functions in PHP. Like most of us (PHP programmers) are probably already aware, PHP is not the fastest because of the range of flexibility it provides. However I ended up with some startling results when I tested multiple common ways to define a custom function.

Native functions will always be faster than custom functions, but when the exact same custom function is moved to a namespace something very saddening happens. To be honest I am afraid to see what would happen on a loaded web server environment where you have more going on than a stupid loop.

Things Said
OMGendar
May 2011
S M T W T F S
« Feb   Jun »
1234567
891011121314
15161718192021
22232425262728
293031  
Stuff Posted