3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function decryptData($value){ $key = "ICS2015"; $crypttext = base64_decode($value); $iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB); $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND); $decrypttext = mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $key, $crypttext, MCRYPT_MODE_ECB, $iv); return trim($decrypttext); } echo decryptData("wpdPVWejqNRYqDTeUJ2Iw06/rnfHAoy5jtgTojiilD0="); ?>
Output for 7.0.6 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function mcrypt_get_iv_size() in /in/mvTma:5 Stack trace: #0 /in/mvTma(11): decryptData('wpdPVWejqNRYqDT...') #1 {main} thrown in /in/mvTma on line 5
Process exited with code 255.
Output for 5.6.8 - 5.6.20, 7.0.0 - 7.0.5
Warning: mcrypt_decrypt(): Key of size 7 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in /in/mvTma on line 7
Output for 5.3.20 - 5.3.29, 5.5.35, 5.6.21 - 5.6.28
Fatal error: Call to undefined function mcrypt_get_iv_size() in /in/mvTma on line 5
Process exited with code 255.
Output for 5.4.10 - 5.5.34
��Ȧ.?$4��A������-� �<&kÊ