My first smartphone was the first Samsung Galaxy S that cost me $200
with a two year contract. It lasted just over a year before the radio stopped functioning and it became unusable as a phone.
Then I replaced it with a Motorola something-or-other that cost me $140 with a two year contract. That one lasted just under a year before the SIM card reader stopped working, and it was good for emergency calls only.
I replaced that with a Nokia Lumia something-or-other that cost $90 with no contract. After three years, it still works to this day.
However, I did feel the need for a hardware upgrade, so in November I replaced it with a Microsoft Lumia 640 LTE, which cost me $40, again with no contract.
I've been very happy with the Lumias. The UI is very fluid and responsive, and it does everything I want it to do and then some. The build quality is also an order of magnitude better than a cheap Android phone, and the battery lasts longer. The only drawback is that there aren't a hell of a lot of third party apps. That's manageable because the ones I care about are available: Web browser, e-mail, Facebook, Twitter, Uber, Skype, Weather, maps, navigation, a PDF reader, Kindle, a Reddit client, an SSH terminal, emulators for retro game consoles, and a guitar tuner. It also comes with a fully functional mobile version of Microsoft Office, and OneNote was a game-changer for me. I can also enable Internet sharing, so if I'm somewhere with no wifi, I can enable a hotspot on my phone and connect from my laptop (things may be different now, but on my Android phones that was only possible by using a custom ROM, e.g. Cyanogenmod).
The developer experience for Windows Phone is also great. Visual Studio beats the pants off of Xcode, and C# is a much nicer language than both Objective-C and Java (though not quite as nice as Swift, I must say).
The only thing I miss from Android is a file browser. Apps are completely sandboxed and can only access their own files, which makes a general file browser impossible on Windows Phone. But I've been living without it for over 3 years now, so it's not that big of a deal.
Despite the low price, they really are quality phones. As long as Microsoft keeps it up, I intend to stick with the Lumia indefinitely.