3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $value = time(); var_dump($value); $key = rand(); $cyphertext = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $data, MCRYPT_MODE_CBC);
Output for 7.0.6 - 7.1.0
int(1453696181) Fatal error: Uncaught Error: Call to undefined function mcrypt_encrypt() in /in/sgSiA:6 Stack trace: #0 {main} thrown in /in/sgSiA on line 6
Process exited with code 255.
Output for 5.6.3 - 5.6.4, 5.6.6 - 5.6.7, 5.6.9 - 5.6.10, 5.6.12, 5.6.14, 5.6.16, 5.6.18, 5.6.20, 7.0.0 - 7.0.1, 7.0.5
int(1453696181) Notice: Undefined variable: data in /in/sgSiA on line 6 Warning: mcrypt_encrypt(): Key of size 9 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in /in/sgSiA on line 6
Output for 5.6.0 - 5.6.2, 5.6.5, 5.6.8, 5.6.11, 5.6.13, 5.6.15, 5.6.17, 5.6.19, 7.0.2, 7.0.4
int(1453696181) Notice: Undefined variable: data in /in/sgSiA on line 6 Warning: mcrypt_encrypt(): Key of size 10 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in /in/sgSiA on line 6
Output for 7.0.3
int(1453696181) Notice: Undefined variable: data in /in/sgSiA on line 6 Warning: mcrypt_encrypt(): Key of size 8 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in /in/sgSiA on line 6
Output for 5.0.0 - 5.3.29, 5.5.35 - 5.5.38, 5.6.21 - 5.6.28
int(1453696181) Fatal error: Call to undefined function mcrypt_encrypt() in /in/sgSiA on line 6
Process exited with code 255.
Output for 5.4.0 - 5.5.34
int(1453696181) Notice: Undefined variable: data in /in/sgSiA on line 6 Warning: mcrypt_encrypt(): Attempt to use an empty IV, which is NOT recommend in /in/sgSiA on line 6
Output for 4.4.5 - 4.4.9
int(1453696181) Fatal error: Call to undefined function: mcrypt_encrypt() in /in/sgSiA on line 6
Process exited with code 255.
Output for 4.3.2 - 4.4.4
int(1453696181) Fatal error: Call to undefined function: mcrypt_encrypt() in /in/sgSiA on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1
int(1453696181) Fatal error: Call to undefined function: mcrypt_encrypt() in /in/sgSiA on line 6