3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $config = array( "digest_alg" => "sha512", "private_key_bits" => 4096, "private_key_type" => OPENSSL_KEYTYPE_RSA, ); // Create the private and public key $res = openssl_pkey_new($config); $data = 'this-is-data'; //$t = openssl_seal($data, $sealed, $keys, []);
Output for 5.4.15 - 5.4.41, 5.4.43 - 5.6.19, 5.6.21 - 7.1.0
Output for 5.4.42, 5.6.20

Process exited with code 137.
Output for 5.0.0 - 5.0.5, 5.1.1 - 5.4.14
Notice: Use of undefined constant OPENSSL_KEYTYPE_RSA - assumed 'OPENSSL_KEYTYPE_RSA' in /in/32PBX on line 7 Fatal error: Call to undefined function openssl_pkey_new() in /in/32PBX on line 11
Process exited with code 255.
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/32PBX on line 18
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Notice: Use of undefined constant OPENSSL_KEYTYPE_RSA - assumed 'OPENSSL_KEYTYPE_RSA' in /in/32PBX on line 7 Fatal error: Call to undefined function: openssl_pkey_new() in /in/32PBX on line 11
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Notice: Use of undefined constant OPENSSL_KEYTYPE_RSA - assumed 'OPENSSL_KEYTYPE_RSA' in /in/32PBX on line 7 Fatal error: Call to undefined function: openssl_pkey_new() in /in/32PBX on line 11
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant OPENSSL_KEYTYPE_RSA - assumed 'OPENSSL_KEYTYPE_RSA' in /in/32PBX on line 7 Fatal error: Call to undefined function: openssl_pkey_new() in /in/32PBX on line 11