3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php openssl_pkey_new([ 'digest_alg' => OPENSSL_ALGO_SHA256, 'x509_extensions' => '', 'req_extensions' => '', 'private_key_bits' => 2048, 'private_key_type' => OPENSSL_KEYTYPE_RSA, 'encrypt_key' => false, ]);
based on N873R
Output for 7.1.20 - 7.3.0beta1
Fatal error: Uncaught Error: Call to undefined function openssl_pkey_new() in /in/920T3:2 Stack trace: #0 {main} thrown in /in/920T3 on line 2
Process exited with code 255.
Output for 7.0.20, 7.1.5 - 7.1.7
Output for 7.0.0 - 7.0.9, 7.1.0
Warning: openssl_pkey_new(): Error loading extensions_section section of /etc/ssl/openssl.cnf in /in/920T3 on line 3
Output for 5.6.0 - 5.6.24
Warning: openssl_pkey_new(): Error loading extensions_section section of /etc/ssl/openssl.cnf in /in/920T3 on line 9