Papaverine is in a class of drugs called vasodilators. Found in the opium poppy, papaverine differs in both structure and pharmacological action from the analgesic (morphine-related) opium alkaloids (opioids).
It is also found in heroin as an impurity from the production process.