original_string: public function stringCompare($string_a, $string_b)
  	{
  		$diff = strlen($string_a) ^ strlen($string_b);
  
  		for ($i = 0; $i < strlen($string_a) && $i < strlen($string_b); $i++)
  		{
  			$diff |= ord($string_a[$i]) ^ ord($string_b[$i]);
  		}
  
  		return $diff === 0;
  	}
code: public function stringCompare($string_a, $string_b)
  	{
  		$diff = strlen($string_a) ^ strlen($string_b);
  
  		for ($i = 0; $i < strlen($string_a) && $i < strlen($string_b); $i++)
  		{
  			$diff |= ord($string_a[$i]) ^ ord($string_b[$i]);
  		}
  
  		return $diff === 0;
  	}
code_tokens: public function stringCompare ( $ string_a , $ string_b ) { $ diff = strlen ( $ string_a ) ^ strlen ( $ string_b ) ; for ( $ i = 0 ; $ i < strlen ( $ string_a ) && $ i < strlen ( $ string_b ) ; $ i ++ ) { $ diff |= ord ( $ string_a [ $ i ] ) ^ ord ( $ string_b [ $ i ] ) ; } return $ diff === 0 ; }
docstring: Compare two strings in constant time to prevent timing attacks.
  
  @param string $string_a Initial string
  @param string $string_b String to compare initial string to
  
  @return bool True if strings are the same, false if not
docstring_tokens: Compare two strings in constant time to prevent timing attacks .