Charging and playing music overnight on iPhone?

So I have an iPhone 5s with the latest iOS version and I'm not sure if that matters but I was wondering if it would be safe to charge my phone overnight WHILE I have my headphones plugged in and it's playing music while I sleep? Like does that even make sense? But I need to know if it would be safe so I don't end up ruining my battery life. And I do know about the timer set thing for music but I was wondering if it would be safe to play it overnight, like the whole night idek.

Go vegan

I wouldn't do that all night if I were you. I've heard that you should take the phone out right when it reaches 100% because apparently it damages the battery life if you leave it in too long. This is unrelated but if you're playing music from your own downloads and you're not going on the Internet to play it, then set your phone on airplane mode so it uses less battery. I do this when using my phone in public and it does save battery.

Do you stay up all night listening to it