GO:0008891: glycolate oxidase activity
Catalysis of the reaction: glycolate + O2 = glyoxylate + hydrogen peroxide.