He reached his destination, walking 3 miles (while) listening to music.
Walking 3 miles (while) listening to music, he reached his destination.
Having walked 3 miles (while) listening to music, he reached his destination.
Do the above three sentences mean the same? And here, his walking and listening to music are happening at the same time. Are all of them grammatically correct?