3v4l.org

run code in 300+ PHP versions simultaneously
<?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() );

preferences:
39.88 ms | 402 KiB | 5 Q