| 
 
52 PHP Programming Tips
Article Index
52 PHP Programming Tips
Variable Operations
Functions And Methods
Storage
MISC Functions
Top 10 list

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



 
Next >
feed image
Copyright 2007 Anthony Ferrara, All Rights Reserved