Are there any advantages using “box” functions, such as array_map, rather than writing your own loop (when you know that the “box” function can’t be written in any other way than your own function?
(what for? sometimes it’s more readable when the callback function is a custom one)
Built-in functions will always be faster vs the same implementation in PHP. The built-in function will execute in C, while the PHP function will be interpreted into C – then executed.