Involved in the biosynthesis of the antibiotic phenazine, a nitrogen-containing heterocyclic molecule having important roles in virulence, competition and biological control (Probable). Catalyzes several oxidations in the terminal steps of core phenazine biosynthesis. It oxidizes both hexahydrophenazine-1,6-dicarboxylic acid (HHPDC) and tetrahydrophenazine-1-carboxylic acid (THPCA) and thereby contributes to the generation of both phenazine-1,6-dicarboxylic acid (PDC) and phenazine-1-carboxylic acid (PCA) (By similarity). (1R,6R)-1,4,5,5a,6,9-hexahydrophenazine-1,6-dicarboxylate + O2 = (1R,10aS)-1,4,10,10a-tetrahydrophenazine-1,6-dicarboxylate + H2O2 (1R,10aS)-1,4,10,10a-tetrahydrophenazine-1,6-dicarboxylate + O2 = (5aS)-5,5a-dihydrophenazine-1,6-dicarboxylate + H2O2 (1R,10aS)-1,4,10,10a-tetrahydrophenazine-1-carboxylate + O2 = (10aS)-10,10a-dihydrophenazine-1-carboxylate + H2O2 (1R)-1,4,5,10-tetrahydrophenazine-1-carboxylate + O2 = (10aS)-10,10a-dihydrophenazine-1-carboxylate + H2O2 Binds 1 FMN per subunit. Antibiotic biosynthesis; phenazine biosynthesis. Belongs to the pyridoxamine 5'-phosphate oxidase family.