How long does it take for core photons to emerge as visible light from the stellar surface?

Answer

Hundreds of thousands of years

Photons generated in the core during fusion undergo countless scattering events as they move through the dense plasma layers. This long diffusion process takes hundreds of thousands of years before the energy finally emerges at the surface as visible light and other radiation.

How long does it take for core photons to emerge as visible light from the stellar surface?
astronomystarplasmacelestial body