I did some profiling on the site and found that strtolower calls took unexpectedly long time.
Context
function __autoload($class_name) { require_once('app/model/' . strtolower($class_name) . '.php'); }
And the result is _0.0092 → ___ autoload () C: \ xxx \ config.php: 0_
0.0093 → strtolower () C: \ xxx \ config.php: 77
0.0101 → require-once (C: \ xxx.php) C: \ xxx \ config.php: 77
I saw this in several places in the trace file.
Then I tried the function in the following context
for($i=0;$i<100;$i++) { strtolower('SomeStRIng' . $i) }
And the result was 0.0026 -> strtolower () C: \ xxx \ index.php: 53
0.0027 → strtolower () C: \ xxx \ index.php: 53
0.0027 → strtolower () C: \ xxx \ index.php: 53
0.0027 → strtolower () C: \ xxx \ index.php: 53
There is a noticeable difference between them. This, of course, is not big, but I'm still confused.
source share