How to turn on an iPhone with a broken power button?

I have an iphone 4. It has been off for 2 years. I don’t know which iOS is on it and my power button is broken.

How can I turn it on without it ? It just shows the battery logo not the apple one.