3 ms·
> and using magic methods were both roughly 10x the speed of the getName, setName methods. That seems counter-intuitive -- in both cases, methods are being cal
by wvenable 15y ago
> and using magic methods were both roughly 10x the speed of the getName, setName methods.
That seems counter-intuitive -- in both cases, methods are being called (which is slow in PHP), so why would __get and __set be faster?