3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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); //print_r($cipher_aliases); $context = stream_context_create(['ssl' => [ 'ciphers' => 'ECDHE-ECDSA-AES128-SHA' ]]); $context = stream_context_create(array( 'ssl' => array( 'ciphers' => 'ECDHE-ECDSA-AES128-SHA', 'disable_compression' => true ) ));
based on rnkB5
Output for 7.1.20, 7.2.6
Fatal error: Uncaught Error: Call to undefined function openssl_get_cipher_methods() in /in/I2bFL:3 Stack trace: #0 {main} thrown in /in/I2bFL on line 3
Process exited with code 255.
Output for 5.4.15 - 7.1.10, 7.2.0
Output for 5.4.9 - 5.4.14
Fatal error: Call to undefined function openssl_get_cipher_methods() in /in/I2bFL on line 3
Process exited with code 255.
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/I2bFL on line 10
Process exited with code 255.