3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $key = 'RainBow'; $encrypted = 'HPwvUK3GzGQ7/5dOjoBD3ACsy4NSFxg9p6cZME32YHM='; $data = base64_decode($encrypted); $iv = substr($data, 0, mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC)); $decrypted = rtrim( mcrypt_decrypt( MCRYPT_RIJNDAEL_128, hash('sha256', $key, true), substr($data, mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC)), MCRYPT_MODE_CBC, $iv ), "\0" ); echo 'Decrypted:' . "\n"; var_dump($decrypted);
Output for 7.0.0 - 7.3.0
Fatal error: Uncaught Error: Call to undefined function mcrypt_get_iv_size() in /in/k2ucg:9 Stack trace: #0 {main} thrown in /in/k2ucg on line 9
Process exited with code 255.
Output for 5.6.0 - 5.6.38
Fatal error: Call to undefined function mcrypt_get_iv_size() in /in/k2ucg on line 9
Process exited with code 255.