3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $private_key_id = openssl_get_privatekey(); openssl_sign('U2044700088641.00100704708172148812954820170909 20:04:061234567890U801555883830836317590084',$signature,$private_key_id); echo $signature;
based on loKYm
Output for 7.1.20 - 7.2.8
Fatal error: Uncaught Error: Call to undefined function openssl_get_privatekey() in /in/o0kha:2 Stack trace: #0 {main} thrown in /in/o0kha on line 2
Process exited with code 255.
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.9
Warning: openssl_get_privatekey() expects at least 1 parameter, 0 given in /in/o0kha on line 2 Warning: openssl_sign(): supplied key param cannot be coerced into a private key in /in/o0kha on line 4
Output for hhvm-3.18.4 - 3.21.0
Warning: openssl_get_privatekey() expects at least 1 parameter, 0 given in /in/o0kha on line 2 Notice: Undefined variable: key in /in/o0kha on line 2 Warning: supplied key param cannot be coerced into a private key in /in/o0kha on line 4