3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $message = "12345678901234560"; $key = "1234567890123456"; $iv = "12345678"; $cipher = mcrypt_encrypt(MCRYPT_BLOWFISH, $key, $message, MCRYPT_MODE_CBC, $iv); echo bin2hex($cipher) . "\n"; var_dump( openssl_decrypt( bin2hex($cipher), 'blowfish', $key, OPENSSL_RAW_DATA, $iv ), openssl_error_string() );
Output for hhvm-3.17.3
1826cf11f3807c4586f8e8defb1b95d98631681e164143d0 bool(false) string(72) "error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt"