original_string: public static function compareStr($str1, $str2) {
  		$len1 = static::binaryStrlen($str1);
  		$len2 = static::binaryStrlen($str2);
  		$len = min($len1, $len2);
  		$diff = $len1 ^ $len2;
  
  		for ($i = 0; $i < $len; $i++) {
  			$diff |= ord($str1[$i]) ^ ord($str2[$i]);
  		}
  
  		return $diff === 0;
  	}
code: public static function compareStr($str1, $str2) {
  		$len1 = static::binaryStrlen($str1);
  		$len2 = static::binaryStrlen($str2);
  		$len = min($len1, $len2);
  		$diff = $len1 ^ $len2;
  
  		for ($i = 0; $i < $len; $i++) {
  			$diff |= ord($str1[$i]) ^ ord($str2[$i]);
  		}
  
  		return $diff === 0;
  	}
code_tokens: public static function compareStr ( $ str1 , $ str2 ) { $ len1 = static :: binaryStrlen ( $ str1 ) ; $ len2 = static :: binaryStrlen ( $ str2 ) ; $ len = min ( $ len1 , $ len2 ) ; $ diff = $ len1 ^ $ len2 ; for ( $ i = 0 ; $ i < $ len ; $ i ++ ) { $ diff |= ord ( $ str1 [ $ i ] ) ^ ord ( $ str2 [ $ i ] ) ; } return $ diff === 0 ; }
docstring: Constant time string comparison
  
  @param string $str1
  @param string $str2
  
  @return True if strings are equal
docstring_tokens: Constant time string comparison