3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = 'FSHcT+sfRO/siok2ooweuA=='; $key = base64_decode($key); $message = 'I want to decode this'; $iv = mcrypt_create_iv(16, MCRYPT_DEV_URANDOM); $iv = '3030303030303030'; print $iv.'<p>'; $encrypted = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $message, MCRYPT_MODE_CBC, $iv); $decrypted = mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $key, $encrypted, MCRYPT_MODE_CBC, $iv); print base64_encode($encrypted); ?>

preferences:
48.36 ms | 402 KiB | 5 Q