3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $textToEncrypt = "hello"; $encryptionMethod = "aes-128-cbc"; $secretHash = "01214562811234530123456589125456"; $iv = "0134467789912651"; $encryptedMessage = openssl_encrypt($textToEncrypt, $encryptionMethod, $secretHash, 0, $iv); $decryptedMessage = openssl_decrypt($encryptedMessage, $encryptionMethod, $secretHash, 0, $iv); echo $decryptedMessage;
based on 324S6
Output for 7.1.20, 7.2.6
Fatal error: Uncaught Error: Call to undefined function openssl_encrypt() in /in/DOfU1:6 Stack trace: #0 {main} thrown in /in/DOfU1 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
hello