Has anyone done a proper benchmark on the difference in performance between these three foo functions?
function foo_global() {
}
class SomeClass {
public function foo_dynamic() {
}
public static function foo_static() {
}
}
To what I know global is fastest and dynamic slowest but I’d appreciate some more learned results.
Thanks
In my tests the is virtually no difference:
So static calls are slightly slower than dynamic, and dynamic is slightly slower than global functions.