Ontify
Catalysis of the reaction: 4-hydroxybenzoate + NAD(P)H + H+ + O2 = 3,4-dihydroxybenzoate + NAD(P)+ + H2O.