PHP Programming Tips


Functions And Methods
Function And Method Calling

  • call_user_func() is 54% slower than just calling the function
  • call_user_func() is 59% slower than calling a static method
  • call_user_func() is 65% slower than calling an object method
  • function() is 119% faster than static::method()
  • $this->method() is 116% faster than static::method()
  • declared static::method() is 93% faster than static::method()

Functions General

  • Pass by reference is 3% faster than Return by reference
  • No reference is 1.7% faster than Return by reference
Advertisements

3 thoughts on “PHP Programming Tips

  1. A person necessarily help to make severely posts I’d state. This is the very first time I frequented your web page and thus far? I amazed with the analysis you made to create this actual post incredible. Fantastic job!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s