Involved in the biosynthesis of coumarins and furanocoumarins (FCs), natural products required for defense responses against attacks by predators with potential medical and agroindustrial usages such as anticoagulant, rodenticide and artificial vanilla substitutes (PubMed:29971079). Catalyzes the conversion of psoralen into xanthotoxol and of 6-methoxycoumarin into scopoletin (PubMed:29971079). Can also convert with a lower efficiency scopoletin into fraxetin and 7-methoxycoumarin into daphnetin-7-methylether, and use 7-methoxy-3-methylcoumarin as substrate (PubMed:29971079). O2 + psoralen + reduced [NADPH--hemoprotein reductase] = H(+) + H2O + oxidized [NADPH--hemoprotein reductase] + xanthotoxol 6-methoxycoumarin + O2 + reduced [NADPH--hemoprotein reductase] = H(+) + H2O + oxidized [NADPH--hemoprotein reductase] + scopoletin Secondary metabolite biosynthesis. Accumulates in roots after wounding. Belongs to the cytochrome P450 family.