3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function is_str_lowercase($str1) { for ($sc = 0; $sc < strlen($str1); $sc++) { if (ord($str1[$sc]) >= ord('A') && ord($str1[$sc]) <= ord('Z')) { return false; } } return true; } var_dump(is_str_lowercase('abc def ghi')); var_dump(is_str_lowercase('abc dEf ghi')); ?>
Output for 4.3.0 - 7.1.0
bool(true) bool(false)