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($CIP, $KEY, $item, $MOD)); } $fsc = 3250390100187711498; $id = 22327820; $encoded_fsc = encode($fsc); echo $encoded_fsc;
based on MPuri
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/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.1.10
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.