3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php foreach (openssl_get_cipher_methods() as $method) { echo "\t", $method, "\t", openssl_cipher_iv_length($method), "\n"; }
Output for 7.0.20, 7.1.5 - 7.2.0
AES-128-CBC 16 AES-128-CBC-HMAC-SHA1 16 AES-128-CBC-HMAC-SHA256 16 AES-128-CFB 16 AES-128-CFB1 16 AES-128-CFB8 16 AES-128-CTR 16 AES-128-ECB 0 AES-128-OCB 12 AES-128-OFB 16 AES-128-XTS 16 AES-192-CBC 16 AES-192-CFB 16 AES-192-CFB1 16 AES-192-CFB8 16 AES-192-CTR 16 AES-192-ECB 0 AES-192-OCB 12 AES-192-OFB 16 AES-256-CBC 16 AES-256-CBC-HMAC-SHA1 16 AES-256-CBC-HMAC-SHA256 16 AES-256-CFB 16 AES-256-CFB1 16 AES-256-CFB8 16 AES-256-CTR 16 AES-256-ECB 0 AES-256-OCB 12 AES-256-OFB 16 AES-256-XTS 16 BF-CBC 8 BF-CFB 8 BF-ECB 0 BF-OFB 8 CAMELLIA-128-CBC 16 CAMELLIA-128-CFB 16 CAMELLIA-128-CFB1 16 CAMELLIA-128-CFB8 16 CAMELLIA-128-CTR 16 CAMELLIA-128-ECB 0 CAMELLIA-128-OFB 16 CAMELLIA-192-CBC 16 CAMELLIA-192-CFB 16 CAMELLIA-192-CFB1 16 CAMELLIA-192-CFB8 16 CAMELLIA-192-CTR 16 CAMELLIA-192-ECB 0 CAMELLIA-192-OFB 16 CAMELLIA-256-CBC 16 CAMELLIA-256-CFB 16 CAMELLIA-256-CFB1 16 CAMELLIA-256-CFB8 16 CAMELLIA-256-CTR 16 CAMELLIA-256-ECB 0 CAMELLIA-256-OFB 16 CAST5-CBC 8 CAST5-CFB 8 CAST5-ECB 0 CAST5-OFB 8 ChaCha20 16 ChaCha20-Poly1305 12 DES-CBC 8 DES-CFB 8 DES-CFB1 8 DES-CFB8 8 DES-ECB 0 DES-EDE 0 DES-EDE-CBC 8 DES-EDE-CFB 8 DES-EDE-OFB 8 DES-EDE3 0 DES-EDE3-CBC 8 DES-EDE3-CFB 8 DES-EDE3-CFB1 8 DES-EDE3-CFB8 8 DES-EDE3-OFB 8 DES-OFB 8 DESX-CBC 8 IDEA-CBC 8 IDEA-CFB 8 IDEA-ECB 0 IDEA-OFB 8 RC2-40-CBC 8 RC2-64-CBC 8 RC2-CBC 8 RC2-CFB 8 RC2-ECB 0 RC2-OFB 8 RC4 0 RC4-40 0 RC4-HMAC-MD5 0 SEED-CBC 16 SEED-CFB 16 SEED-ECB 0 SEED-OFB 16 aes-128-cbc 16 aes-128-cbc-hmac-sha1 16 aes-128-cbc-hmac-sha256 16 aes-128-ccm 12 aes-128-cfb 16 aes-128-cfb1 16 aes-128-cfb8 16 aes-128-ctr 16 aes-128-ecb 0 aes-128-gcm 12 aes-128-ocb 12 aes-128-ofb 16 aes-128-xts 16 aes-192-cbc 16 aes-192-ccm 12 aes-192-cfb 16 aes-192-cfb1 16 aes-192-cfb8 16 aes-192-ctr 16 aes-192-ecb 0 aes-192-gcm 12 aes-192-ocb 12 aes-192-ofb 16 aes-256-cbc 16 aes-256-cbc-hmac-sha1 16 aes-256-cbc-hmac-sha256 16 aes-256-ccm 12 aes-256-cfb 16 aes-256-cfb1 16 aes-256-cfb8 16 aes-256-ctr 16 aes-256-ecb 0 aes-256-gcm 12 aes-256-ocb 12 aes-256-ofb 16 aes-256-xts 16 bf-cbc 8 bf-cfb 8 bf-ecb 0 bf-ofb 8 camellia-128-cbc 16 camellia-128-cfb 16 camellia-128-cfb1 16 camellia-128-cfb8 16 camellia-128-ctr 16 camellia-128-ecb 0 camellia-128-ofb 16 camellia-192-cbc 16 camellia-192-cfb 16 camellia-192-cfb1 16 camellia-192-cfb8 16 camellia-192-ctr 16 camellia-192-ecb 0 camellia-192-ofb 16 camellia-256-cbc 16 camellia-256-cfb 16 camellia-256-cfb1 16 camellia-256-cfb8 16 camellia-256-ctr 16 camellia-256-ecb 0 camellia-256-ofb 16 cast5-cbc 8 cast5-cfb 8 cast5-ecb 0 cast5-ofb 8 chacha20 16 chacha20-poly1305 12 des-cbc 8 des-cfb 8 des-cfb1 8 des-cfb8 8 des-ecb 0 des-ede 0 des-ede-cbc 8 des-ede-cfb 8 des-ede-ofb 8 des-ede3 0 des-ede3-cbc 8 des-ede3-cfb 8 des-ede3-cfb1 8 des-ede3-cfb8 8 des-ede3-ofb 8 des-ofb 8 desx-cbc 8 id-aes128-CCM 12 id-aes128-GCM 12 id-aes128-wrap 8 id-aes128-wrap-pad 4 id-aes192-CCM 12 id-aes192-GCM 12 id-aes192-wrap 8 id-aes192-wrap-pad 4 id-aes256-CCM 12 id-aes256-GCM 12 id-aes256-wrap 8 id-aes256-wrap-pad 4 id-smime-alg-CMS3DESwrap 0 idea-cbc 8 idea-cfb 8 idea-ecb 0 idea-ofb 8 rc2-40-cbc 8 rc2-64-cbc 8 rc2-cbc 8 rc2-cfb 8 rc2-ecb 0 rc2-ofb 8 rc4 0 rc4-40 0 rc4-hmac-md5 0 seed-cbc 16 seed-cfb 16 seed-ecb 0 seed-ofb 16
Output for 5.4.15 - 7.0.6, 7.1.0
AES-128-CBC 16 AES-128-CBC-HMAC-SHA1 16 AES-128-CBC-HMAC-SHA256 16 AES-128-CFB 16 AES-128-CFB1 16 AES-128-CFB8 16 AES-128-CTR 16 AES-128-ECB 0 AES-128-OFB 16 AES-128-XTS 16 AES-192-CBC 16 AES-192-CFB 16 AES-192-CFB1 16 AES-192-CFB8 16 AES-192-CTR 16 AES-192-ECB 0 AES-192-OFB 16 AES-256-CBC 16 AES-256-CBC-HMAC-SHA1 16 AES-256-CBC-HMAC-SHA256 16 AES-256-CFB 16 AES-256-CFB1 16 AES-256-CFB8 16 AES-256-CTR 16 AES-256-ECB 0 AES-256-OFB 16 AES-256-XTS 16 BF-CBC 8 BF-CFB 8 BF-ECB 0 BF-OFB 8 CAMELLIA-128-CBC 16 CAMELLIA-128-CFB 16 CAMELLIA-128-CFB1 16 CAMELLIA-128-CFB8 16 CAMELLIA-128-ECB 0 CAMELLIA-128-OFB 16 CAMELLIA-192-CBC 16 CAMELLIA-192-CFB 16 CAMELLIA-192-CFB1 16 CAMELLIA-192-CFB8 16 CAMELLIA-192-ECB 0 CAMELLIA-192-OFB 16 CAMELLIA-256-CBC 16 CAMELLIA-256-CFB 16 CAMELLIA-256-CFB1 16 CAMELLIA-256-CFB8 16 CAMELLIA-256-ECB 0 CAMELLIA-256-OFB 16 CAST5-CBC 8 CAST5-CFB 8 CAST5-ECB 0 CAST5-OFB 8 DES-CBC 8 DES-CFB 8 DES-CFB1 8 DES-CFB8 8 DES-ECB 0 DES-EDE 0 DES-EDE-CBC 8 DES-EDE-CFB 8 DES-EDE-OFB 8 DES-EDE3 0 DES-EDE3-CBC 8 DES-EDE3-CFB 8 DES-EDE3-CFB1 8 DES-EDE3-CFB8 8 DES-EDE3-OFB 8 DES-OFB 8 DESX-CBC 8 IDEA-CBC 8 IDEA-CFB 8 IDEA-ECB 0 IDEA-OFB 8 RC2-40-CBC 8 RC2-64-CBC 8 RC2-CBC 8 RC2-CFB 8 RC2-ECB 0 RC2-OFB 8 RC4 0 RC4-40 0 RC4-HMAC-MD5 0 SEED-CBC 16 SEED-CFB 16 SEED-ECB 0 SEED-OFB 16 aes-128-cbc 16 aes-128-cbc-hmac-sha1 16 aes-128-cbc-hmac-sha256 16 aes-128-ccm 12 aes-128-cfb 16 aes-128-cfb1 16 aes-128-cfb8 16 aes-128-ctr 16 aes-128-ecb 0 aes-128-gcm 12 aes-128-ofb 16 aes-128-xts 16 aes-192-cbc 16 aes-192-ccm 12 aes-192-cfb 16 aes-192-cfb1 16 aes-192-cfb8 16 aes-192-ctr 16 aes-192-ecb 0 aes-192-gcm 12 aes-192-ofb 16 aes-256-cbc 16 aes-256-cbc-hmac-sha1 16 aes-256-cbc-hmac-sha256 16 aes-256-ccm 12 aes-256-cfb 16 aes-256-cfb1 16 aes-256-cfb8 16 aes-256-ctr 16 aes-256-ecb 0 aes-256-gcm 12 aes-256-ofb 16 aes-256-xts 16 bf-cbc 8 bf-cfb 8 bf-ecb 0 bf-ofb 8 camellia-128-cbc 16 camellia-128-cfb 16 camellia-128-cfb1 16 camellia-128-cfb8 16 camellia-128-ecb 0 camellia-128-ofb 16 camellia-192-cbc 16 camellia-192-cfb 16 camellia-192-cfb1 16 camellia-192-cfb8 16 camellia-192-ecb 0 camellia-192-ofb 16 camellia-256-cbc 16 camellia-256-cfb 16 camellia-256-cfb1 16 camellia-256-cfb8 16 camellia-256-ecb 0 camellia-256-ofb 16 cast5-cbc 8 cast5-cfb 8 cast5-ecb 0 cast5-ofb 8 des-cbc 8 des-cfb 8 des-cfb1 8 des-cfb8 8 des-ecb 0 des-ede 0 des-ede-cbc 8 des-ede-cfb 8 des-ede-ofb 8 des-ede3 0 des-ede3-cbc 8 des-ede3-cfb 8 des-ede3-cfb1 8 des-ede3-cfb8 8 des-ede3-ofb 8 des-ofb 8 desx-cbc 8 id-aes128-CCM 12 id-aes128-GCM 12 id-aes128-wrap 8 id-aes192-CCM 12 id-aes192-GCM 12 id-aes192-wrap 8 id-aes256-CCM 12 id-aes256-GCM 12 id-aes256-wrap 8 id-smime-alg-CMS3DESwrap 0 idea-cbc 8 idea-cfb 8 idea-ecb 0 idea-ofb 8 rc2-40-cbc 8 rc2-64-cbc 8 rc2-cbc 8 rc2-cfb 8 rc2-ecb 0 rc2-ofb 8 rc4 0 rc4-40 0 rc4-hmac-md5 0 seed-cbc 16 seed-cfb 16 seed-ecb 0 seed-ofb 16
Output for 5.3.18 - 5.4.14
Fatal error: Call to undefined function openssl_get_cipher_methods() in /in/asWEB on line 3
Process exited with code 255.