3v4l.org

run code in 300+ PHP versions simultaneously
<?php $private_key_id = openssl_get_privatekey(); openssl_sign('U2044700088641.00100704708172148812954820170909 20:04:061234567890U801555883830836317590084',$signature,$private_key_id); echo $signature;
Output for 7.1.20, 7.2.6 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.29, 8.2.0 - 8.2.21, 8.3.0 - 8.3.9
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 7.0.0 - 7.0.23, 7.1.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

preferences:
169.84 ms | 402 KiB | 184 Q