The for loop duration here will vary depending on the length of the string
But imagine the loop would be the string we know (i.e. the password). Looping through the 10-character pass should be identical every time, regardless of what the user entered.
+1 for recommending checking the PHP source code to be sure, though
See: http://lxr.php.net/xref/PHP_TRUNK/Zend/zend_builtin_function...