The Sun is about 93.3 million miles from Earth so... I dunno, speed of light? Not sure. Anyway you’d burn up before you got close.
The photons start as gama particles and it takes a much longer time to get out.
I point to people who care to this source.
https://sciencing.com/long-photons-emerge-suns-core-outside-10063.html
Depending on your assumptions 1 million to as little as 5 thousand years before the photon starts that 8 minute plus part of the journey, from the Suns surface to you.