In actual code programming, we will find that On my IIS server (CGI) mode, the result of my PHP recursive efficiency test is:
Non-recursive call The cost of the recursive call: 0.036401009559631
The cost of the recursive call: 0.053439617156982
On my Apache server, my test results are:
The cost of non-recursive calls: 0.022789001464844
The cost of recursive calls: 0.014809131622314
The results of PHP recursive efficiency are completely opposite, and the PHP versions are the same.
It seems that PHP recursive efficiency needs to be analyzed in detail.