3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $textToEncrypt = "hello"; $encryptionMethod = "AES-128-CBC"; $secretHash = "IGA"; $iv = "GPRODataGPROData"; $encryptedMessage = openssl_encrypt($textToEncrypt, $encryptionMethod, $secretHash, 0, $iv); $decryptedMessage = openssl_decrypt('XmyRqNhlTalkas4ccK6jIA==', $encryptionMethod, $secretHash, 0, $iv); echo $decryptedMessage;
based on 324S6
Output for 7.1.20, 7.2.6 - 7.3.0rc3
Fatal error: Uncaught Error: Call to undefined function openssl_encrypt() in /in/tSpIX:6 Stack trace: #0 {main} thrown in /in/tSpIX on line 6
Process exited with code 255.
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.1.10, 7.2.0
not_logged