3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $cipher = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, md5('my-key'), 'Hello World', MCRYPT_MODE_CBC); $plain = mcrypt_decrypt(MCRYPT_RIJNDAEL_128, md5('not-my-key'), $cipher, MCRYPT_MODE_CBC); var_dump($plain);
based on dmvLH
Output for 7.0.6 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function mcrypt_encrypt() in /in/SVQaK:3 Stack trace: #0 {main} thrown in /in/SVQaK on line 3
Process exited with code 255.
Output for 5.6.8 - 5.6.20, 7.0.0 - 7.0.5
Warning: mcrypt_encrypt(): Encryption mode requires an initialization vector of size 16 in /in/SVQaK on line 3 Warning: mcrypt_decrypt(): Encryption mode requires an initialization vector of size 16 in /in/SVQaK on line 4 bool(false)
Output for 5.3.20 - 5.3.29, 5.5.35, 5.6.21 - 5.6.28
Fatal error: Call to undefined function mcrypt_encrypt() in /in/SVQaK on line 3
Process exited with code 255.
Output for 5.4.10 - 5.5.34
Warning: mcrypt_encrypt(): Attempt to use an empty IV, which is NOT recommend in /in/SVQaK on line 3 Warning: mcrypt_decrypt(): Attempt to use an empty IV, which is NOT recommend in /in/SVQaK on line 4 string(16) "j �z�:ka�ٝ�d�"