Catalyzes the post-translational formation of 4- hydroxyproline in -Xaa-Pro-Gly- sequences in collagens and other proteins. . This is the function of P4HA3 (prolyl 4-hydroxylase subunit alpha 3, Ensembl gene identifier ENSG00000149380).