3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = 1371320016; var_dump($value); srand($value); $key = rand(); var_dump($key); $cyphertext = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $data, MCRYPT_MODE_CBC); echo $cyphertext;
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.24, 7.3.0 - 7.3.12
int(1371320016) int(744069174) Fatal error: Uncaught Error: Call to undefined function mcrypt_encrypt() in /in/RdFWS:7 Stack trace: #0 {main} thrown in /in/RdFWS on line 7
Process exited with code 255.
Output for 7.0.6 - 7.0.20
int(1371320016) int(1659983877) Fatal error: Uncaught Error: Call to undefined function mcrypt_encrypt() in /in/RdFWS:7 Stack trace: #0 {main} thrown in /in/RdFWS on line 7
Process exited with code 255.
Output for 5.6.0 - 5.6.20, 7.0.0 - 7.0.5
int(1371320016) int(1659983877) Notice: Undefined variable: data in /in/RdFWS on line 7 Warning: mcrypt_encrypt(): Key of size 10 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in /in/RdFWS on line 7
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.5.35 - 5.5.38, 5.6.21 - 5.6.28
int(1371320016) int(1659983877) Fatal error: Call to undefined function mcrypt_encrypt() in /in/RdFWS on line 7
Process exited with code 255.
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.34
int(1371320016) int(1659983877) Notice: Undefined variable: data in /in/RdFWS on line 7 Warning: mcrypt_encrypt(): Attempt to use an empty IV, which is NOT recommend in /in/RdFWS on line 7 �D,&�ތ6�#��T
Output for 4.4.5 - 4.4.9
int(1371320016) int(1659983877) Fatal error: Call to undefined function: mcrypt_encrypt() in /in/RdFWS on line 7
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
int(1371320016) int(1659983877) Fatal error: Call to undefined function: mcrypt_encrypt() in /in/RdFWS on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
int(1371320016) int(1659983877) Fatal error: Call to undefined function: mcrypt_encrypt() in /in/RdFWS on line 7

preferences:
208.25 ms | 401 KiB | 262 Q