public static function hashCode($string) {
		// Code from https://stackoverflow.com/a/40688976/3918483
		$hash = 0;
		if(!is_string($string)) {
			return $hash;
		}

		$len = mb_strlen($string, 'UTF-8');
		if($len === 0) {
			return $hash;
		}
		for($i = 0; $i < $len; $i++) {
			$c = mb_substr($string, $i, 1, 'UTF-8');
			$cc = unpack('V', iconv('UTF-8', 'UCS-4LE', $c))[1];
			$hash = (($hash << 5) - $hash) + $cc;
			$hash &= $hash; // 16bit > 32bit
		}
		return $hash;
	}