3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $key = "8d30f9d3083b4ce0b1967364b2c3e2ef"; $iv = "7f08e74acb86454fad094f961feab9ea"; $data = "4afc3e3d-bed1-42fd-85eb-06b8fbbc4925"; $enc = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, $data, MCRYPT_MODE_CBC, $iv); echo $key."\n"; echo $iv."\n"; echo bin2hex($enc)."\n"; echo base64_encode($enc)."\n";
based on bEDD0
Output for 7.0.6 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function mcrypt_encrypt() in /in/JS8lc:5 Stack trace: #0 {main} thrown in /in/JS8lc on line 5
Process exited with code 255.
Output for 5.4.10 - 5.5.34, 5.6.8 - 5.6.20, 7.0.0 - 7.0.5
8d30f9d3083b4ce0b1967364b2c3e2ef 7f08e74acb86454fad094f961feab9ea be07e865e1b7e4932af5861313a2bac5b738ec911ea2eda769a14b4a6e77fc14d33d27753f5aa3e377bf667d134b995c2559e1c5bf20c67f6b43fdd033f36bd1 vgfoZeG35JMq9YYTE6K6xbc47JEeou2naaFLSm53/BTTPSd1P1qj43e/Zn0TS5lcJVnhxb8gxn9rQ/3QM/Nr0Q==
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/JS8lc on line 5
Process exited with code 255.