Apple is being sued for intentionally throttling battery and speed on older iPhones. Now you an join the settlement and possibly get $25 back
https://www.smartphoneperformancesettlement.com/submit-claim.php
This only works for iPhones purchased in the US (they track it by Serial Number)