3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(json_encode(hash_algos()));
Output for 8.1.0 - 8.1.31, 8.2.0 - 8.2.27, 8.3.0 - 8.3.15, 8.4.1 - 8.4.2
string(656) "["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","crc32c","fnv132","fnv1a32","fnv164","fnv1a64","joaat","murmur3a","murmur3c","murmur3f","xxh32","xxh64","xxh3","xxh128","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 7.4.0 - 7.4.33, 8.0.0 - 8.0.30
string(591) "["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","crc32c","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 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33
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 5.4.0 - 5.4.45, 5.5.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.0.5, 5.1.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.3.11, 4.4.0 - 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

preferences:
99.61 ms | 423 KiB | 5 Q