3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $KEY = 1320686422; $CIP = MCRYPT_RIJNDAEL_128; $MOD = MCRYPT_MODE_ECB; function encode($item) { return base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_128, 1320686422, $item, MCRYPT_MODE_ECB)); } $fsc = 3250390100187711498; $id = 22327820; $encoded_fsc = encode($fsc); echo $encoded_fsc;
based on DbQcV
Output for 7.2.0
Warning: Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' (this will throw an Error in a future version of PHP) in /in/FNUEh on line 3 Warning: Use of undefined constant MCRYPT_MODE_ECB - assumed 'MCRYPT_MODE_ECB' (this will throw an Error in a future version of PHP) in /in/FNUEh on line 4 Fatal error: Uncaught Error: Call to undefined function mcrypt_encrypt() in /in/FNUEh:7 Stack trace: #0 /in/FNUEh(13): encode(3250390100187711498) #1 {main} thrown in /in/FNUEh on line 7
Process exited with code 255.
Output for 7.0.6 - 7.1.10
Notice: Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' in /in/FNUEh on line 3 Notice: Use of undefined constant MCRYPT_MODE_ECB - assumed 'MCRYPT_MODE_ECB' in /in/FNUEh on line 4 Fatal error: Uncaught Error: Call to undefined function mcrypt_encrypt() in /in/FNUEh:7 Stack trace: #0 /in/FNUEh(13): encode(3250390100187711498) #1 {main} thrown in /in/FNUEh on line 7
Process exited with code 255.
Output for 5.6.0 - 5.6.20, 7.0.0 - 7.0.5
Warning: mcrypt_encrypt(): Key of size 10 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in /in/FNUEh on line 7
Output for 5.5.35 - 5.5.38, 5.6.21 - 5.6.28
Notice: Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' in /in/FNUEh on line 3 Notice: Use of undefined constant MCRYPT_MODE_ECB - assumed 'MCRYPT_MODE_ECB' in /in/FNUEh on line 4 Fatal error: Call to undefined function mcrypt_encrypt() in /in/FNUEh on line 7
Process exited with code 255.
Output for 5.5.0 - 5.5.34
CM8Qpz9jZstBgIhukZXZmdkHyR66JSfIVKe9cDVyNIM=