3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $privateKey = openssl_pkey_new([ 'private_key_bits' => 2048, //'private_key_type' => OPENSSL_KEYTYPE_RSA, // RSA is default //'encrypt_key' => true // we don't want encryption ]); print_r($privateKey);
Output for 7.0.28 - 7.3.0rc3
Fatal error: Uncaught Error: Call to undefined function openssl_pkey_new() in /in/CfDhk:3 Stack trace: #0 {main} thrown in /in/CfDhk on line 3
Process exited with code 255.
Output for 5.6.38
Fatal error: Call to undefined function openssl_pkey_new() in /in/CfDhk on line 3
Process exited with code 255.