3v4l.org

run code in 200+ php & hhvm versions
<?php var_dump(json_encode(hash_algos()));
Output for 7.1.0 - 7.3.2
string(582) "["md2","md4","md5","sha1","sha224","sha256","sha384","sha512\/224","sha512\/256","sha512","sha3-224","sha3-256","sha3-384","sha3-512","ripemd128","ripemd160","ripemd256","ripemd320","whirlpool","tiger128,3","tiger160,3","tiger192,3","tiger128,4","tiger160,4","tiger192,4","snefru","snefru256","gost","gost-crypto","adler32","crc32","crc32b","fnv132","fnv1a32","fnv164","fnv1a64","joaat","haval128,3","haval160,3","haval192,3","haval224,3","haval256,3","haval128,4","haval160,4","haval192,4","haval224,4","haval256,4","haval128,5","haval160,5","haval192,5","haval224,5","haval256,5"]"
Output for 5.6.0 - 5.6.38, 7.0.0 - 7.0.33
string(510) "["md2","md4","md5","sha1","sha224","sha256","sha384","sha512","ripemd128","ripemd160","ripemd256","ripemd320","whirlpool","tiger128,3","tiger160,3","tiger192,3","tiger128,4","tiger160,4","tiger192,4","snefru","snefru256","gost","gost-crypto","adler32","crc32","crc32b","fnv132","fnv1a32","fnv164","fnv1a64","joaat","haval128,3","haval160,3","haval192,3","haval224,3","haval256,3","haval128,4","haval160,4","haval192,4","haval224,4","haval256,4","haval128,5","haval160,5","haval192,5","haval224,5","haval256,5"]"
Output for hhvm-3.12.14 - 3.22.0
string(528) "["adler32","crc32","crc32b","fnv132","fnv164","fnv1a32","fnv1a64","gost","haval128,3","haval128,4","haval128,5","haval160,3","haval160,4","haval160,5","haval192,3","haval192,4","haval192,5","haval224,3","haval224,4","haval224,5","haval256,3","haval256,4","haval256,5","joaat","md2","md4","md5","ripemd128","ripemd160","ripemd256","ripemd320","sha1","sha224","sha256","sha3-224","sha3-256","sha3-384","sha3-512","sha384","sha512","snefru","tiger128,3","tiger128,4","tiger160,3","tiger160,4","tiger192,3","tiger192,4","whirlpool"]"
Output for hhvm-3.10.1 - 3.11.1
string(520) "["adler32","crc32","crc32b","fnv132","fnv164","fnv1a32","fnv1a64","gost","haval128,3","haval128,4","haval128,5","haval160,3","haval160,4","haval160,5","haval192,3","haval192,4","haval192,5","haval224,3","haval224,4","haval224,5","haval256,3","haval256,4","haval256,5","md2","md4","md5","ripemd128","ripemd160","ripemd256","ripemd320","sha1","sha224","sha256","sha3-224","sha3-256","sha3-384","sha3-512","sha384","sha512","snefru","tiger128,3","tiger128,4","tiger160,3","tiger160,4","tiger192,3","tiger192,4","whirlpool"]"
Output for 5.4.0 - 5.5.38
string(476) "["md2","md4","md5","sha1","sha224","sha256","sha384","sha512","ripemd128","ripemd160","ripemd256","ripemd320","whirlpool","tiger128,3","tiger160,3","tiger192,3","tiger128,4","tiger160,4","tiger192,4","snefru","snefru256","gost","adler32","crc32","crc32b","fnv132","fnv164","joaat","haval128,3","haval160,3","haval192,3","haval224,3","haval256,3","haval128,4","haval160,4","haval192,4","haval224,4","haval256,4","haval128,5","haval160,5","haval192,5","haval224,5","haval256,5"]"
Output for 5.3.0 - 5.3.29
string(470) "["md2","md4","md5","sha1","sha224","sha256","sha384","sha512","ripemd128","ripemd160","ripemd256","ripemd320","whirlpool","tiger128,3","tiger160,3","tiger192,3","tiger128,4","tiger160,4","tiger192,4","snefru","snefru256","gost","adler32","crc32","crc32b","salsa10","salsa20","haval128,3","haval160,3","haval192,3","haval224,3","haval256,3","haval128,4","haval160,4","haval192,4","haval224,4","haval256,4","haval128,5","haval160,5","haval192,5","haval224,5","haval256,5"]"
Output for 5.2.1 - 5.2.17
string(429) "["md2","md4","md5","sha1","sha256","sha384","sha512","ripemd128","ripemd160","ripemd256","ripemd320","whirlpool","tiger128,3","tiger160,3","tiger192,3","tiger128,4","tiger160,4","tiger192,4","snefru","gost","adler32","crc32","crc32b","haval128,3","haval160,3","haval192,3","haval224,3","haval256,3","haval128,4","haval160,4","haval192,4","haval224,4","haval256,4","haval128,5","haval160,5","haval192,5","haval224,5","haval256,5"]"
Output for 5.2.0
string(399) "["md4","md5","sha1","sha256","sha384","sha512","ripemd128","ripemd160","whirlpool","tiger128,3","tiger160,3","tiger192,3","tiger128,4","tiger160,4","tiger192,4","snefru","gost","adler32","crc32","crc32b","haval128,3","haval160,3","haval192,3","haval224,3","haval256,3","haval128,4","haval160,4","haval192,4","haval224,4","haval256,4","haval128,5","haval160,5","haval192,5","haval224,5","haval256,5"]"
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_encode() in /in/l9TVZ on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_encode() in /in/l9TVZ on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_encode() in /in/l9TVZ on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_encode() in /in/l9TVZ on line 3