3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function decrypt($str, $key) { $iv = substr( md5("hacker",true), 0, 8 ); return mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $key, $str, MCRYPT_MODE_CBC, $iv ); } $Validation = "4/lOF/4ZMmdPxlFjZD63nA=="; $key = "E79C4DA4F94B86CBA5A81BA39FED083DBAF8BCE5"; $msg = 'bravo: '.decrypt(base64_decode($Validation),base64_encode($key)); echo "felicitation".$msg; ?>
based on OmKp0
Output for 7.0.6 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function mcrypt_decrypt() in /in/g7g2n:4 Stack trace: #0 /in/g7g2n(9): decrypt('\xE3\xF9N\x17\xFE\x192gO\xC6Qcd>\xB7...', 'RTc5QzREQTRGOTR...') #1 {main} thrown in /in/g7g2n on line 4
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 56 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in /in/g7g2n on line 4 felicitationbravo:
Output for 5.3.19 - 5.3.29, 5.5.35, 5.6.21 - 5.6.28
Fatal error: Call to undefined function mcrypt_decrypt() in /in/g7g2n on line 4
Process exited with code 255.
Output for 5.4.0 - 5.5.34
Warning: mcrypt_decrypt(): Size of key is too large for this algorithm in /in/g7g2n on line 4 Warning: mcrypt_decrypt(): The IV parameter must be as long as the blocksize in /in/g7g2n on line 4 felicitationbravo: @��]�7Rt3�����jG