The iPhone X is still supported with the latest iOS release, iOS 16[1].
Just wondering what exactly isn't working or makes it seem obsolete? :-)
I'm also a big fan of riding iPhones into the ground!
My wife is still using an iPhone XS Max, that runs like new even on the latest iOS! :-)
[1] https://support.apple.com/en-au/guide/iphone/iphe3fa5df43/io...