In manual there is create_function function and you can pass result from that function to array_map, I thought that that is the only way to have so
create_function
array_map
Anonymous functions are available since PHP 5.3:
The key features of PHP 5.3.0 include: … Lambda Functions and Closures …
The key features of PHP 5.3.0 include:
Closures (anonymous functions) were added in PHP 5.3.0
PHP >5.3:
http://php.net/manual/en/functions.anonymous.php