3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $algos = hash_algos (); var_dump($algos);
Output for 7.1.0
array(52) { [0]=> string(3) "md2" [1]=> string(3) "md4" [2]=> string(3) "md5" [3]=> string(4) "sha1" [4]=> string(6) "sha224" [5]=> string(6) "sha256" [6]=> string(6) "sha384" [7]=> string(10) "sha512/224" [8]=> string(10) "sha512/256" [9]=> string(6) "sha512" [10]=> string(8) "sha3-224" [11]=> string(8) "sha3-256" [12]=> string(8) "sha3-384" [13]=> string(8) "sha3-512" [14]=> string(9) "ripemd128" [15]=> string(9) "ripemd160" [16]=> string(9) "ripemd256" [17]=> string(9) "ripemd320" [18]=> string(9) "whirlpool" [19]=> string(10) "tiger128,3" [20]=> string(10) "tiger160,3" [21]=> string(10) "tiger192,3" [22]=> string(10) "tiger128,4" [23]=> string(10) "tiger160,4" [24]=> string(10) "tiger192,4" [25]=> string(6) "snefru" [26]=> string(9) "snefru256" [27]=> string(4) "gost" [28]=> string(11) "gost-crypto" [29]=> string(7) "adler32" [30]=> string(5) "crc32" [31]=> string(6) "crc32b" [32]=> string(6) "fnv132" [33]=> string(7) "fnv1a32" [34]=> string(6) "fnv164" [35]=> string(7) "fnv1a64" [36]=> string(5) "joaat" [37]=> string(10) "haval128,3" [38]=> string(10) "haval160,3" [39]=> string(10) "haval192,3" [40]=> string(10) "haval224,3" [41]=> string(10) "haval256,3" [42]=> string(10) "haval128,4" [43]=> string(10) "haval160,4" [44]=> string(10) "haval192,4" [45]=> string(10) "haval224,4" [46]=> string(10) "haval256,4" [47]=> string(10) "haval128,5" [48]=> string(10) "haval160,5" [49]=> string(10) "haval192,5" [50]=> string(10) "haval224,5" [51]=> string(10) "haval256,5" }
Output for 5.6.0 - 5.6.28, 7.0.0 - 7.0.14
array(46) { [0]=> string(3) "md2" [1]=> string(3) "md4" [2]=> string(3) "md5" [3]=> string(4) "sha1" [4]=> string(6) "sha224" [5]=> string(6) "sha256" [6]=> string(6) "sha384" [7]=> string(6) "sha512" [8]=> string(9) "ripemd128" [9]=> string(9) "ripemd160" [10]=> string(9) "ripemd256" [11]=> string(9) "ripemd320" [12]=> string(9) "whirlpool" [13]=> string(10) "tiger128,3" [14]=> string(10) "tiger160,3" [15]=> string(10) "tiger192,3" [16]=> string(10) "tiger128,4" [17]=> string(10) "tiger160,4" [18]=> string(10) "tiger192,4" [19]=> string(6) "snefru" [20]=> string(9) "snefru256" [21]=> string(4) "gost" [22]=> string(11) "gost-crypto" [23]=> string(7) "adler32" [24]=> string(5) "crc32" [25]=> string(6) "crc32b" [26]=> string(6) "fnv132" [27]=> string(7) "fnv1a32" [28]=> string(6) "fnv164" [29]=> string(7) "fnv1a64" [30]=> string(5) "joaat" [31]=> string(10) "haval128,3" [32]=> string(10) "haval160,3" [33]=> string(10) "haval192,3" [34]=> string(10) "haval224,3" [35]=> string(10) "haval256,3" [36]=> string(10) "haval128,4" [37]=> string(10) "haval160,4" [38]=> string(10) "haval192,4" [39]=> string(10) "haval224,4" [40]=> string(10) "haval256,4" [41]=> string(10) "haval128,5" [42]=> string(10) "haval160,5" [43]=> string(10) "haval192,5" [44]=> string(10) "haval224,5" [45]=> string(10) "haval256,5" }
Output for hhvm-3.12.0
array(48) { [0]=> string(7) "adler32" [1]=> string(5) "crc32" [2]=> string(6) "crc32b" [3]=> string(6) "fnv132" [4]=> string(6) "fnv164" [5]=> string(7) "fnv1a32" [6]=> string(7) "fnv1a64" [7]=> string(4) "gost" [8]=> string(10) "haval128,3" [9]=> string(10) "haval128,4" [10]=> string(10) "haval128,5" [11]=> string(10) "haval160,3" [12]=> string(10) "haval160,4" [13]=> string(10) "haval160,5" [14]=> string(10) "haval192,3" [15]=> string(10) "haval192,4" [16]=> string(10) "haval192,5" [17]=> string(10) "haval224,3" [18]=> string(10) "haval224,4" [19]=> string(10) "haval224,5" [20]=> string(10) "haval256,3" [21]=> string(10) "haval256,4" [22]=> string(10) "haval256,5" [23]=> string(5) "joaat" [24]=> string(3) "md2" [25]=> string(3) "md4" [26]=> string(3) "md5" [27]=> string(9) "ripemd128" [28]=> string(9) "ripemd160" [29]=> string(9) "ripemd256" [30]=> string(9) "ripemd320" [31]=> string(4) "sha1" [32]=> string(6) "sha224" [33]=> string(6) "sha256" [34]=> string(8) "sha3-224" [35]=> string(8) "sha3-256" [36]=> string(8) "sha3-384" [37]=> string(8) "sha3-512" [38]=> string(6) "sha384" [39]=> string(6) "sha512" [40]=> string(6) "snefru" [41]=> string(10) "tiger128,3" [42]=> string(10) "tiger128,4" [43]=> string(10) "tiger160,3" [44]=> string(10) "tiger160,4" [45]=> string(10) "tiger192,3" [46]=> string(10) "tiger192,4" [47]=> string(9) "whirlpool" }
Output for hhvm-3.10.0
array(47) { [0]=> string(7) "adler32" [1]=> string(5) "crc32" [2]=> string(6) "crc32b" [3]=> string(6) "fnv132" [4]=> string(6) "fnv164" [5]=> string(7) "fnv1a32" [6]=> string(7) "fnv1a64" [7]=> string(4) "gost" [8]=> string(10) "haval128,3" [9]=> string(10) "haval128,4" [10]=> string(10) "haval128,5" [11]=> string(10) "haval160,3" [12]=> string(10) "haval160,4" [13]=> string(10) "haval160,5" [14]=> string(10) "haval192,3" [15]=> string(10) "haval192,4" [16]=> string(10) "haval192,5" [17]=> string(10) "haval224,3" [18]=> string(10) "haval224,4" [19]=> string(10) "haval224,5" [20]=> string(10) "haval256,3" [21]=> string(10) "haval256,4" [22]=> string(10) "haval256,5" [23]=> string(3) "md2" [24]=> string(3) "md4" [25]=> string(3) "md5" [26]=> string(9) "ripemd128" [27]=> string(9) "ripemd160" [28]=> string(9) "ripemd256" [29]=> string(9) "ripemd320" [30]=> string(4) "sha1" [31]=> string(6) "sha224" [32]=> string(6) "sha256" [33]=> string(8) "sha3-224" [34]=> string(8) "sha3-256" [35]=> string(8) "sha3-384" [36]=> string(8) "sha3-512" [37]=> string(6) "sha384" [38]=> string(6) "sha512" [39]=> string(6) "snefru" [40]=> string(10) "tiger128,3" [41]=> string(10) "tiger128,4" [42]=> string(10) "tiger160,3" [43]=> string(10) "tiger160,4" [44]=> string(10) "tiger192,3" [45]=> string(10) "tiger192,4" [46]=> string(9) "whirlpool" }
Output for 5.4.0 - 5.5.36
array(43) { [0]=> string(3) "md2" [1]=> string(3) "md4" [2]=> string(3) "md5" [3]=> string(4) "sha1" [4]=> string(6) "sha224" [5]=> string(6) "sha256" [6]=> string(6) "sha384" [7]=> string(6) "sha512" [8]=> string(9) "ripemd128" [9]=> string(9) "ripemd160" [10]=> string(9) "ripemd256" [11]=> string(9) "ripemd320" [12]=> string(9) "whirlpool" [13]=> string(10) "tiger128,3" [14]=> string(10) "tiger160,3" [15]=> string(10) "tiger192,3" [16]=> string(10) "tiger128,4" [17]=> string(10) "tiger160,4" [18]=> string(10) "tiger192,4" [19]=> string(6) "snefru" [20]=> string(9) "snefru256" [21]=> string(4) "gost" [22]=> string(7) "adler32" [23]=> string(5) "crc32" [24]=> string(6) "crc32b" [25]=> string(6) "fnv132" [26]=> string(6) "fnv164" [27]=> string(5) "joaat" [28]=> string(10) "haval128,3" [29]=> string(10) "haval160,3" [30]=> string(10) "haval192,3" [31]=> string(10) "haval224,3" [32]=> string(10) "haval256,3" [33]=> string(10) "haval128,4" [34]=> string(10) "haval160,4" [35]=> string(10) "haval192,4" [36]=> string(10) "haval224,4" [37]=> string(10) "haval256,4" [38]=> string(10) "haval128,5" [39]=> string(10) "haval160,5" [40]=> string(10) "haval192,5" [41]=> string(10) "haval224,5" [42]=> string(10) "haval256,5" }
Output for 5.3.0 - 5.3.29
array(42) { [0]=> string(3) "md2" [1]=> string(3) "md4" [2]=> string(3) "md5" [3]=> string(4) "sha1" [4]=> string(6) "sha224" [5]=> string(6) "sha256" [6]=> string(6) "sha384" [7]=> string(6) "sha512" [8]=> string(9) "ripemd128" [9]=> string(9) "ripemd160" [10]=> string(9) "ripemd256" [11]=> string(9) "ripemd320" [12]=> string(9) "whirlpool" [13]=> string(10) "tiger128,3" [14]=> string(10) "tiger160,3" [15]=> string(10) "tiger192,3" [16]=> string(10) "tiger128,4" [17]=> string(10) "tiger160,4" [18]=> string(10) "tiger192,4" [19]=> string(6) "snefru" [20]=> string(9) "snefru256" [21]=> string(4) "gost" [22]=> string(7) "adler32" [23]=> string(5) "crc32" [24]=> string(6) "crc32b" [25]=> string(7) "salsa10" [26]=> string(7) "salsa20" [27]=> string(10) "haval128,3" [28]=> string(10) "haval160,3" [29]=> string(10) "haval192,3" [30]=> string(10) "haval224,3" [31]=> string(10) "haval256,3" [32]=> string(10) "haval128,4" [33]=> string(10) "haval160,4" [34]=> string(10) "haval192,4" [35]=> string(10) "haval224,4" [36]=> string(10) "haval256,4" [37]=> string(10) "haval128,5" [38]=> string(10) "haval160,5" [39]=> string(10) "haval192,5" [40]=> string(10) "haval224,5" [41]=> string(10) "haval256,5" }
Output for 5.2.1 - 5.2.17
array(38) { [0]=> string(3) "md2" [1]=> string(3) "md4" [2]=> string(3) "md5" [3]=> string(4) "sha1" [4]=> string(6) "sha256" [5]=> string(6) "sha384" [6]=> string(6) "sha512" [7]=> string(9) "ripemd128" [8]=> string(9) "ripemd160" [9]=> string(9) "ripemd256" [10]=> string(9) "ripemd320" [11]=> string(9) "whirlpool" [12]=> string(10) "tiger128,3" [13]=> string(10) "tiger160,3" [14]=> string(10) "tiger192,3" [15]=> string(10) "tiger128,4" [16]=> string(10) "tiger160,4" [17]=> string(10) "tiger192,4" [18]=> string(6) "snefru" [19]=> string(4) "gost" [20]=> string(7) "adler32" [21]=> string(5) "crc32" [22]=> string(6) "crc32b" [23]=> string(10) "haval128,3" [24]=> string(10) "haval160,3" [25]=> string(10) "haval192,3" [26]=> string(10) "haval224,3" [27]=> string(10) "haval256,3" [28]=> string(10) "haval128,4" [29]=> string(10) "haval160,4" [30]=> string(10) "haval192,4" [31]=> string(10) "haval224,4" [32]=> string(10) "haval256,4" [33]=> string(10) "haval128,5" [34]=> string(10) "haval160,5" [35]=> string(10) "haval192,5" [36]=> string(10) "haval224,5" [37]=> string(10) "haval256,5" }
Output for 5.1.2 - 5.2.0
array(35) { [0]=> string(3) "md4" [1]=> string(3) "md5" [2]=> string(4) "sha1" [3]=> string(6) "sha256" [4]=> string(6) "sha384" [5]=> string(6) "sha512" [6]=> string(9) "ripemd128" [7]=> string(9) "ripemd160" [8]=> string(9) "whirlpool" [9]=> string(10) "tiger128,3" [10]=> string(10) "tiger160,3" [11]=> string(10) "tiger192,3" [12]=> string(10) "tiger128,4" [13]=> string(10) "tiger160,4" [14]=> string(10) "tiger192,4" [15]=> string(6) "snefru" [16]=> string(4) "gost" [17]=> string(7) "adler32" [18]=> string(5) "crc32" [19]=> string(6) "crc32b" [20]=> string(10) "haval128,3" [21]=> string(10) "haval160,3" [22]=> string(10) "haval192,3" [23]=> string(10) "haval224,3" [24]=> string(10) "haval256,3" [25]=> string(10) "haval128,4" [26]=> string(10) "haval160,4" [27]=> string(10) "haval192,4" [28]=> string(10) "haval224,4" [29]=> string(10) "haval256,4" [30]=> string(10) "haval128,5" [31]=> string(10) "haval160,5" [32]=> string(10) "haval192,5" [33]=> string(10) "haval224,5" [34]=> string(10) "haval256,5" }
Output for 5.0.0 - 5.1.1
Fatal error: Call to undefined function hash_algos() in /in/CBpMR on line 2
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: hash_algos() in /in/CBpMR on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: hash_algos() in /in/CBpMR on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: hash_algos() in /in/CBpMR on line 2