PHP - Writing your own function VS using built-in functions

built-in, function, php

Solution

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.

Problem

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)

Original source