Simple curiosity. I could not find anything on Google, and I definitely don't want to delve into the PHP source.
Is there array_walk_recursive tail call optimization?
The short answer is no :)
See also: https://github.com/php/php-src/blob/master/ext/standard/array.c#L1097