4 ms·
strlen() in PHP is constant-time O(1), we don't use C strings. (Well, we do, but we store length information and reference count them) See: http://lxr.php.net/
by TazeTSchnitzel 12y ago
strlen() in PHP is constant-time O(1), we don't use C strings. (Well, we do, but we store length information and reference count them)
See: http://lxr.php.net/xref/PHP_TRUNK/Zend/zend_builtin_functions.c#524 http://lxr.php.net/xref/PHP_TRUNK/Zend/zend_builtin_function...