3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $cipher = openssl_encrypt( 'Oh murr :3', 'aes-128-ctr', hash('sha256', 'spottycats', true), OPENSSL_RAW_DATA, str_repeat("\x00", 16) ); $hmac = hash_hmac( 'sha256', $cipher, hash('sha256', 'spottycats', true), true ); echo base64_encode($cipher . $hmac), PHP_EOL;
based on MfH9r
Output for 7.1.20 - 7.3.0beta1
Fatal error: Uncaught Error: Call to undefined function openssl_encrypt() in /in/JknCt:3 Stack trace: #0 {main} thrown in /in/JknCt on line 3
Process exited with code 255.
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.1.11
1mgX9w0TFzd2Ty69vfYaKmioBx7KaZoHHuCYCOEG519T2EQs6HJMIIle