3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ciphers = openssl_get_cipher_methods(); $ciphers_and_aliases = openssl_get_cipher_methods(true); $cipher_aliases = array_diff($ciphers_and_aliases, $ciphers); print_r($ciphers);
Output for 7.1.20 - 7.1.33, 7.2.6 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
Fatal error: Uncaught Error: Call to undefined function openssl_get_cipher_methods() in /in/icIjK:2 Stack trace: #0 {main} thrown in /in/icIjK on line 2
Process exited with code 255.
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Fatal error: Uncaught Error: Call to undefined function openssl_get_cipher_methods() in /in/icIjK:2 Stack trace: #0 {main} thrown in /in/icIjK on line 2
Process exited with code 255.
Output for 7.0.20, 7.1.5 - 7.1.10, 7.2.0
Array ( [0] => AES-128-CBC [1] => AES-128-CBC-HMAC-SHA1 [2] => AES-128-CBC-HMAC-SHA256 [3] => AES-128-CFB [4] => AES-128-CFB1 [5] => AES-128-CFB8 [6] => AES-128-CTR [7] => AES-128-ECB [8] => AES-128-OCB [9] => AES-128-OFB [10] => AES-128-XTS [11] => AES-192-CBC [12] => AES-192-CFB [13] => AES-192-CFB1 [14] => AES-192-CFB8 [15] => AES-192-CTR [16] => AES-192-ECB [17] => AES-192-OCB [18] => AES-192-OFB [19] => AES-256-CBC [20] => AES-256-CBC-HMAC-SHA1 [21] => AES-256-CBC-HMAC-SHA256 [22] => AES-256-CFB [23] => AES-256-CFB1 [24] => AES-256-CFB8 [25] => AES-256-CTR [26] => AES-256-ECB [27] => AES-256-OCB [28] => AES-256-OFB [29] => AES-256-XTS [30] => BF-CBC [31] => BF-CFB [32] => BF-ECB [33] => BF-OFB [34] => CAMELLIA-128-CBC [35] => CAMELLIA-128-CFB [36] => CAMELLIA-128-CFB1 [37] => CAMELLIA-128-CFB8 [38] => CAMELLIA-128-CTR [39] => CAMELLIA-128-ECB [40] => CAMELLIA-128-OFB [41] => CAMELLIA-192-CBC [42] => CAMELLIA-192-CFB [43] => CAMELLIA-192-CFB1 [44] => CAMELLIA-192-CFB8 [45] => CAMELLIA-192-CTR [46] => CAMELLIA-192-ECB [47] => CAMELLIA-192-OFB [48] => CAMELLIA-256-CBC [49] => CAMELLIA-256-CFB [50] => CAMELLIA-256-CFB1 [51] => CAMELLIA-256-CFB8 [52] => CAMELLIA-256-CTR [53] => CAMELLIA-256-ECB [54] => CAMELLIA-256-OFB [55] => CAST5-CBC [56] => CAST5-CFB [57] => CAST5-ECB [58] => CAST5-OFB [59] => ChaCha20 [60] => ChaCha20-Poly1305 [61] => DES-CBC [62] => DES-CFB [63] => DES-CFB1 [64] => DES-CFB8 [65] => DES-ECB [66] => DES-EDE [67] => DES-EDE-CBC [68] => DES-EDE-CFB [69] => DES-EDE-OFB [70] => DES-EDE3 [71] => DES-EDE3-CBC [72] => DES-EDE3-CFB [73] => DES-EDE3-CFB1 [74] => DES-EDE3-CFB8 [75] => DES-EDE3-OFB [76] => DES-OFB [77] => DESX-CBC [78] => IDEA-CBC [79] => IDEA-CFB [80] => IDEA-ECB [81] => IDEA-OFB [82] => RC2-40-CBC [83] => RC2-64-CBC [84] => RC2-CBC [85] => RC2-CFB [86] => RC2-ECB [87] => RC2-OFB [88] => RC4 [89] => RC4-40 [90] => RC4-HMAC-MD5 [91] => SEED-CBC [92] => SEED-CFB [93] => SEED-ECB [94] => SEED-OFB [95] => aes-128-cbc [96] => aes-128-cbc-hmac-sha1 [97] => aes-128-cbc-hmac-sha256 [98] => aes-128-ccm [99] => aes-128-cfb [100] => aes-128-cfb1 [101] => aes-128-cfb8 [102] => aes-128-ctr [103] => aes-128-ecb [104] => aes-128-gcm [105] => aes-128-ocb [106] => aes-128-ofb [107] => aes-128-xts [108] => aes-192-cbc [109] => aes-192-ccm [110] => aes-192-cfb [111] => aes-192-cfb1 [112] => aes-192-cfb8 [113] => aes-192-ctr [114] => aes-192-ecb [115] => aes-192-gcm [116] => aes-192-ocb [117] => aes-192-ofb [118] => aes-256-cbc [119] => aes-256-cbc-hmac-sha1 [120] => aes-256-cbc-hmac-sha256 [121] => aes-256-ccm [122] => aes-256-cfb [123] => aes-256-cfb1 [124] => aes-256-cfb8 [125] => aes-256-ctr [126] => aes-256-ecb [127] => aes-256-gcm [128] => aes-256-ocb [129] => aes-256-ofb [130] => aes-256-xts [131] => bf-cbc [132] => bf-cfb [133] => bf-ecb [134] => bf-ofb [135] => camellia-128-cbc [136] => camellia-128-cfb [137] => camellia-128-cfb1 [138] => camellia-128-cfb8 [139] => camellia-128-ctr [140] => camellia-128-ecb [141] => camellia-128-ofb [142] => camellia-192-cbc [143] => camellia-192-cfb [144] => camellia-192-cfb1 [145] => camellia-192-cfb8 [146] => camellia-192-ctr [147] => camellia-192-ecb [148] => camellia-192-ofb [149] => camellia-256-cbc [150] => camellia-256-cfb [151] => camellia-256-cfb1 [152] => camellia-256-cfb8 [153] => camellia-256-ctr [154] => camellia-256-ecb [155] => camellia-256-ofb [156] => cast5-cbc [157] => cast5-cfb [158] => cast5-ecb [159] => cast5-ofb [160] => chacha20 [161] => chacha20-poly1305 [162] => des-cbc [163] => des-cfb [164] => des-cfb1 [165] => des-cfb8 [166] => des-ecb [167] => des-ede [168] => des-ede-cbc [169] => des-ede-cfb [170] => des-ede-ofb [171] => des-ede3 [172] => des-ede3-cbc [173] => des-ede3-cfb [174] => des-ede3-cfb1 [175] => des-ede3-cfb8 [176] => des-ede3-ofb [177] => des-ofb [178] => desx-cbc [179] => id-aes128-CCM [180] => id-aes128-GCM [181] => id-aes128-wrap [182] => id-aes128-wrap-pad [183] => id-aes192-CCM [184] => id-aes192-GCM [185] => id-aes192-wrap [186] => id-aes192-wrap-pad [187] => id-aes256-CCM [188] => id-aes256-GCM [189] => id-aes256-wrap [190] => id-aes256-wrap-pad [191] => id-smime-alg-CMS3DESwrap [192] => idea-cbc [193] => idea-cfb [194] => idea-ecb [195] => idea-ofb [196] => rc2-40-cbc [197] => rc2-64-cbc [198] => rc2-cbc [199] => rc2-cfb [200] => rc2-ecb [201] => rc2-ofb [202] => rc4 [203] => rc4-40 [204] => rc4-hmac-md5 [205] => seed-cbc [206] => seed-cfb [207] => seed-ecb [208] => seed-ofb )
Output for 5.4.15 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.6, 7.1.0
Array ( [0] => AES-128-CBC [1] => AES-128-CBC-HMAC-SHA1 [2] => AES-128-CBC-HMAC-SHA256 [3] => AES-128-CFB [4] => AES-128-CFB1 [5] => AES-128-CFB8 [6] => AES-128-CTR [7] => AES-128-ECB [8] => AES-128-OFB [9] => AES-128-XTS [10] => AES-192-CBC [11] => AES-192-CFB [12] => AES-192-CFB1 [13] => AES-192-CFB8 [14] => AES-192-CTR [15] => AES-192-ECB [16] => AES-192-OFB [17] => AES-256-CBC [18] => AES-256-CBC-HMAC-SHA1 [19] => AES-256-CBC-HMAC-SHA256 [20] => AES-256-CFB [21] => AES-256-CFB1 [22] => AES-256-CFB8 [23] => AES-256-CTR [24] => AES-256-ECB [25] => AES-256-OFB [26] => AES-256-XTS [27] => BF-CBC [28] => BF-CFB [29] => BF-ECB [30] => BF-OFB [31] => CAMELLIA-128-CBC [32] => CAMELLIA-128-CFB [33] => CAMELLIA-128-CFB1 [34] => CAMELLIA-128-CFB8 [35] => CAMELLIA-128-ECB [36] => CAMELLIA-128-OFB [37] => CAMELLIA-192-CBC [38] => CAMELLIA-192-CFB [39] => CAMELLIA-192-CFB1 [40] => CAMELLIA-192-CFB8 [41] => CAMELLIA-192-ECB [42] => CAMELLIA-192-OFB [43] => CAMELLIA-256-CBC [44] => CAMELLIA-256-CFB [45] => CAMELLIA-256-CFB1 [46] => CAMELLIA-256-CFB8 [47] => CAMELLIA-256-ECB [48] => CAMELLIA-256-OFB [49] => CAST5-CBC [50] => CAST5-CFB [51] => CAST5-ECB [52] => CAST5-OFB [53] => DES-CBC [54] => DES-CFB [55] => DES-CFB1 [56] => DES-CFB8 [57] => DES-ECB [58] => DES-EDE [59] => DES-EDE-CBC [60] => DES-EDE-CFB [61] => DES-EDE-OFB [62] => DES-EDE3 [63] => DES-EDE3-CBC [64] => DES-EDE3-CFB [65] => DES-EDE3-CFB1 [66] => DES-EDE3-CFB8 [67] => DES-EDE3-OFB [68] => DES-OFB [69] => DESX-CBC [70] => IDEA-CBC [71] => IDEA-CFB [72] => IDEA-ECB [73] => IDEA-OFB [74] => RC2-40-CBC [75] => RC2-64-CBC [76] => RC2-CBC [77] => RC2-CFB [78] => RC2-ECB [79] => RC2-OFB [80] => RC4 [81] => RC4-40 [82] => RC4-HMAC-MD5 [83] => SEED-CBC [84] => SEED-CFB [85] => SEED-ECB [86] => SEED-OFB [87] => aes-128-cbc [88] => aes-128-cbc-hmac-sha1 [89] => aes-128-cbc-hmac-sha256 [90] => aes-128-ccm [91] => aes-128-cfb [92] => aes-128-cfb1 [93] => aes-128-cfb8 [94] => aes-128-ctr [95] => aes-128-ecb [96] => aes-128-gcm [97] => aes-128-ofb [98] => aes-128-xts [99] => aes-192-cbc [100] => aes-192-ccm [101] => aes-192-cfb [102] => aes-192-cfb1 [103] => aes-192-cfb8 [104] => aes-192-ctr [105] => aes-192-ecb [106] => aes-192-gcm [107] => aes-192-ofb [108] => aes-256-cbc [109] => aes-256-cbc-hmac-sha1 [110] => aes-256-cbc-hmac-sha256 [111] => aes-256-ccm [112] => aes-256-cfb [113] => aes-256-cfb1 [114] => aes-256-cfb8 [115] => aes-256-ctr [116] => aes-256-ecb [117] => aes-256-gcm [118] => aes-256-ofb [119] => aes-256-xts [120] => bf-cbc [121] => bf-cfb [122] => bf-ecb [123] => bf-ofb [124] => camellia-128-cbc [125] => camellia-128-cfb [126] => camellia-128-cfb1 [127] => camellia-128-cfb8 [128] => camellia-128-ecb [129] => camellia-128-ofb [130] => camellia-192-cbc [131] => camellia-192-cfb [132] => camellia-192-cfb1 [133] => camellia-192-cfb8 [134] => camellia-192-ecb [135] => camellia-192-ofb [136] => camellia-256-cbc [137] => camellia-256-cfb [138] => camellia-256-cfb1 [139] => camellia-256-cfb8 [140] => camellia-256-ecb [141] => camellia-256-ofb [142] => cast5-cbc [143] => cast5-cfb [144] => cast5-ecb [145] => cast5-ofb [146] => des-cbc [147] => des-cfb [148] => des-cfb1 [149] => des-cfb8 [150] => des-ecb [151] => des-ede [152] => des-ede-cbc [153] => des-ede-cfb [154] => des-ede-ofb [155] => des-ede3 [156] => des-ede3-cbc [157] => des-ede3-cfb [158] => des-ede3-cfb1 [159] => des-ede3-cfb8 [160] => des-ede3-ofb [161] => des-ofb [162] => desx-cbc [163] => id-aes128-CCM [164] => id-aes128-GCM [165] => id-aes128-wrap [166] => id-aes192-CCM [167] => id-aes192-GCM [168] => id-aes192-wrap [169] => id-aes256-CCM [170] => id-aes256-GCM [171] => id-aes256-wrap [172] => id-smime-alg-CMS3DESwrap [173] => idea-cbc [174] => idea-cfb [175] => idea-ecb [176] => idea-ofb [177] => rc2-40-cbc [178] => rc2-64-cbc [179] => rc2-cbc [180] => rc2-cfb [181] => rc2-ecb [182] => rc2-ofb [183] => rc4 [184] => rc4-40 [185] => rc4-hmac-md5 [186] => seed-cbc [187] => seed-cfb [188] => seed-ecb [189] => seed-ofb )
Output for 5.4.0 - 5.4.14
Fatal error: Call to undefined function openssl_get_cipher_methods() in /in/icIjK on line 2
Process exited with code 255.

preferences:
186.5 ms | 401 KiB | 258 Q