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($CIP, $KEY, $item, $MOD)); } $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.19, 8.3.0 - 8.3.7
Fatal error: Uncaught Error: Undefined constant "MCRYPT_RIJNDAEL_128" in /in/DbQcV:3 Stack trace: #0 {main} thrown in /in/DbQcV 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/DbQcV 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/DbQcV on line 4 Fatal error: Uncaught Error: Call to undefined function mcrypt_encrypt() in /in/DbQcV:7 Stack trace: #0 /in/DbQcV(13): encode(3250390100187711498) #1 {main} thrown in /in/DbQcV on line 7
Process exited with code 255.
Output for 7.0.6 - 7.0.20, 7.1.0 - 7.1.33
Notice: Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' in /in/DbQcV on line 3 Notice: Use of undefined constant MCRYPT_MODE_ECB - assumed 'MCRYPT_MODE_ECB' in /in/DbQcV on line 4 Fatal error: Uncaught Error: Call to undefined function mcrypt_encrypt() in /in/DbQcV:7 Stack trace: #0 /in/DbQcV(13): encode(3250390100187711498) #1 {main} thrown in /in/DbQcV on line 7
Process exited with code 255.
Output for 5.5.0 - 5.5.34, 5.6.0 - 5.6.20, 7.0.0 - 7.0.5
Notice: Undefined variable: CIP in /in/DbQcV on line 7 Notice: Undefined variable: KEY in /in/DbQcV on line 7 Notice: Undefined variable: MOD in /in/DbQcV on line 7 Warning: mcrypt_encrypt(): Module initialization failed in /in/DbQcV 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/DbQcV on line 3 Notice: Use of undefined constant MCRYPT_MODE_ECB - assumed 'MCRYPT_MODE_ECB' in /in/DbQcV on line 4 Fatal error: Call to undefined function mcrypt_encrypt() in /in/DbQcV on line 7
Process exited with code 255.

preferences:
195.95 ms | 402 KiB | 270 Q