Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<InstallationExamples>
^MhashLast updated: Mon, 26 Oct 2026

Predefined Constants

The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.

Warning

All MHASH_* constants are deprecated as of PHP 8.5.0.

Here is a list of hashes which are currently supported by mhash. If a hash is not listed here, but it is listed in the mhash documentation as supported, you can safely assume that this documentation is outdated.

MHASH_ADLER32 (int)

MHASH_CRC32 (int)

MHASH_CRC32B (int)

MHASH_CRC32C (int)

Available as of PHP 7.4.0.

MHASH_FNV132 (int)

MHASH_FNV1A32 (int)

MHASH_FNV164 (int)

MHASH_FNV1A64 (int)

MHASH_GOST (int)

MHASH_HAVAL128 (int)

MHASH_HAVAL160 (int)

MHASH_HAVAL192 (int)

MHASH_HAVAL224 (int)

MHASH_HAVAL256 (int)

MHASH_JOAAT (int)

MHASH_MD2 (int)

MHASH_MD4 (int)

MHASH_MD5 (int)

MHASH_MURMUR3A (int)

Available as of PHP 8.1.0.

MHASH_MURMUR3C (int)

Available as of PHP 8.1.0.

MHASH_MURMUR3F (int)

Available as of PHP 8.1.0.

MHASH_RIPEMD128 (int)

MHASH_RIPEMD160 (int)

MHASH_RIPEMD256 (int)

MHASH_RIPEMD320 (int)

MHASH_SHA1 (int)

MHASH_SHA224 (int)

MHASH_SHA256 (int)

MHASH_SHA384 (int)

MHASH_SHA512 (int)

MHASH_SNEFRU256 (int)

MHASH_TIGER (int)

MHASH_TIGER128 (int)

MHASH_TIGER160 (int)

MHASH_WHIRLPOOL (int)

MHASH_XXH32 (int)

Available as of PHP 8.1.0.

MHASH_XXH64 (int)

Available as of PHP 8.1.0.

MHASH_XXH3 (int)

Available as of PHP 8.1.0.

MHASH_XXH128 (int)

Available as of PHP 8.1.0.


<InstallationExamples>
^MhashLast updated: Mon, 26 Oct 2026