The issue: PHP functions are faster than userland functions
- PHP internal functions save a lot of time
- Still users tend to write the most basic functions in userland
The solution: Read the manual!
- PHP has wonderful docs! Learn to love them!
- Before implementing a basic function on your own, check if it exists in PHP!
- If you have very time consuming functions in your code, consider writing them as C extensions