3v4l.org

run code in 300+ PHP versions simultaneously
<?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;
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
Fatal error: Uncaught Error: Undefined constant "MCRYPT_RIJNDAEL_128" in /in/FNUEh:3 Stack trace: #0 {main} thrown in /in/FNUEh on line 3
Process exited with code 255.
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Fatal error: Uncaught Error: Undefined constant "MCRYPT_RIJNDAEL_128" in /in/FNUEh:3 Stack trace: #0 {main} thrown in /in/FNUEh on line 3
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
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.0.20, 7.1.0 - 7.1.25
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=

preferences:
183.87 ms | 405 KiB | 241 Q