3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $cipher = openssl_encrypt( 'Yes, it totally does.', '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;
Output for 7.1.20 - 7.3.0beta1
Fatal error: Uncaught Error: Call to undefined function openssl_encrypt() in /in/JBkGE:3 Stack trace: #0 {main} thrown in /in/JBkGE 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
wGVEtlgIETc4E4SNly0b7viJAv3bpO/85lC5/XCssVnMlrPc+TxeI+Jrsl+wVwQVOKbCEw8=