Either create anonymous function once and then pass it as a second argument to `array_walk` or use plain `foreach`. Using it as it's not is performance waste.