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.6
Fatal error: Uncaught Error: Undefined constant "MCRYPT_RIJNDAEL_128" in /in/S5FIv:4 Stack trace: #0 {main} thrown in /in/S5FIv on line 4
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/S5FIv on line 4 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/S5FIv on line 5 Fatal error: Uncaught Error: Call to undefined function mcrypt_encrypt() in /in/S5FIv:8 Stack trace: #0 /in/S5FIv(14): encode(3250390100187711498) #1 {main} thrown in /in/S5FIv on line 8
Process exited with code 255.
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33
Notice: Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' in /in/S5FIv on line 4 Notice: Use of undefined constant MCRYPT_MODE_ECB - assumed 'MCRYPT_MODE_ECB' in /in/S5FIv on line 5 Fatal error: Uncaught Error: Call to undefined function mcrypt_encrypt() in /in/S5FIv:8 Stack trace: #0 /in/S5FIv(14): encode(3250390100187711498) #1 {main} thrown in /in/S5FIv on line 8
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
Notice: Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' in /in/S5FIv on line 4 Notice: Use of undefined constant MCRYPT_MODE_ECB - assumed 'MCRYPT_MODE_ECB' in /in/S5FIv on line 5 Fatal error: Call to undefined function mcrypt_encrypt() in /in/S5FIv on line 8
Process exited with code 255.

preferences:
240.1 ms | 402 KiB | 330 Q