Why my iPhone is turned off

My iPhone is turned off by itself yesterday and I don't know why , I put it on charger from last night and it doesn't work
Welcome to iMore! What iPhone are you using? How old is it? Have you tried swapping out the charger? Apple's iPhone batteries are designed to retain 80% of their original capacity for 500 full charge cycles. After that you're on borrowed time.

Original thread: https://forums.imore.com/threads/why-my-iphone-is-turned-off.379873/