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); //print_r($cipher_aliases); $context = stream_context_create(['ssl' => [ 'ciphers' => 'ECDHE-ECDSA-AES128-SHA' ]]); $timeout = 42; $connFlags = STREAM_CLIENT_CONNECT; // Works as before $sock = stream_socket_client('tls://github.com:443', $errno, $errstr, $timeout, $connFlags, $context); // Negotiates SSLv3, TLSv1.1 or TLSv1.2 because tls:// default is overridden by the context $context = stream_context_create(['ssl' => [ 'crypto_method' => STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT | STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT | STREAM_CRYPTO_METHOD_SSLv3_CLIENT ]]); $sock = stream_socket_client('tls://github.com:443', $errno, $errstr, $timeout, $connFlags, $context);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function openssl_get_cipher_methods() in /in/XkKiB:3 Stack trace: #0 {main} thrown in /in/XkKiB on line 3
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
55.66 ms | 401 KiB | 8 Q