When a person uses opium, a number of compounds are excreted. Morphine is excreted in urine for several days while 6-acetyl morphine (6-AM) is detected in urine for up to 8 hours. Papaverine and its metabolites are additional markers of recent heroin use.