Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does array_walk_recursive use tail call optimization?

Just a simple curiosity. I couldn't find anything on Google, and I definitely don't want to dig into PHP source.

Does array_walk_recursive implement tail call optimization?

like image 816
Florian Margaine Avatar asked Nov 03 '22 16:11

Florian Margaine


1 Answers

Short answer, no :)

See also: https://github.com/php/php-src/blob/master/ext/standard/array.c#L1097

like image 167
Ja͢ck Avatar answered Nov 13 '22 18:11

Ja͢ck