3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(openssl_get_md_methods());
Output for 7.0.20, 7.1.5 - 7.2.0
array(25) { [0]=> string(10) "BLAKE2b512" [1]=> string(10) "BLAKE2s256" [2]=> string(3) "MD4" [3]=> string(3) "MD5" [4]=> string(8) "MD5-SHA1" [5]=> string(4) "MDC2" [6]=> string(9) "RIPEMD160" [7]=> string(4) "SHA1" [8]=> string(6) "SHA224" [9]=> string(6) "SHA256" [10]=> string(6) "SHA384" [11]=> string(6) "SHA512" [12]=> string(10) "blake2b512" [13]=> string(10) "blake2s256" [14]=> string(3) "md4" [15]=> string(3) "md5" [16]=> string(8) "md5-sha1" [17]=> string(4) "mdc2" [18]=> string(9) "ripemd160" [19]=> string(4) "sha1" [20]=> string(6) "sha224" [21]=> string(6) "sha256" [22]=> string(6) "sha384" [23]=> string(6) "sha512" [24]=> string(9) "whirlpool" }
Output for 5.5.0 - 7.0.10, 7.1.0
array(26) { [0]=> string(3) "DSA" [1]=> string(7) "DSA-SHA" [2]=> string(3) "MD4" [3]=> string(3) "MD5" [4]=> string(4) "MDC2" [5]=> string(9) "RIPEMD160" [6]=> string(3) "SHA" [7]=> string(4) "SHA1" [8]=> string(6) "SHA224" [9]=> string(6) "SHA256" [10]=> string(6) "SHA384" [11]=> string(6) "SHA512" [12]=> string(13) "dsaEncryption" [13]=> string(10) "dsaWithSHA" [14]=> string(15) "ecdsa-with-SHA1" [15]=> string(3) "md4" [16]=> string(3) "md5" [17]=> string(4) "mdc2" [18]=> string(9) "ripemd160" [19]=> string(3) "sha" [20]=> string(4) "sha1" [21]=> string(6) "sha224" [22]=> string(6) "sha256" [23]=> string(6) "sha384" [24]=> string(6) "sha512" [25]=> string(9) "whirlpool" }
Output for 5.2.17
Fatal error: Call to undefined function openssl_get_md_methods() in /in/6RXs5 on line 2
Process exited with code 255.