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

Comments

Popular posts from this blog

How to check browser cookie enabled with php and javascript

cookie and subdomains

Output buffering in php