Hi there
I think you need to give a few more ideas as 40k gets you into some really nice stuff, at one end of the spectrum you could buy a Caterham the most hardcore but best ever drivers car made or you could go for a super saloon like an Alfa Guilia Quadrifoglio.
So maybe try to narrow your selection down, do you want a true two seater light sports car that is small on the road and can be enjoyed, manual or automatic or would you prefer a larger more modern GT/Saloon type car with decent minerals?
Anyway as a good middle ground I'd highly recommend the Cayman R:
Manual:
Looking for a Porsche Cayman 987 [05-12]? Find your ideal Porsche Cayman 987 [05-12] from top dealers and private sellers in your area with PistonHeads Classifieds.
www.pistonheads.com
Automatic (PDK):
Looking for a Porsche Cayman 987 [05-12]? Find your ideal Porsche Cayman 987 [05-12] from top dealers and private sellers in your area with PistonHeads Classifieds.
www.pistonheads.com
The 987.2 is absolutely bullit proof, it is also the most easy sports car to drive every day, two seats, two large boots (frunk and rear), capable of 35mpg on a run, not so bad when thrashing it. 987 is also a small size on the road, has hydraulic steering so amazing steering feel and can be had with a fantastic manual or a pretty decent PDK box. Unlikely to depreciate at all if buying one for sub 40k and for me it is the best road Cayman Porsche ever made and I've driven them all.
I'd personally buy the red one, looks spot on, its a manual which are more desirable and hold money better. Extremely capable cars on both road and track, but also comfy and extremely low running cost. They really are superb and generally have no issues to speak off, I know a couple of guys who have owned since new and have 100k plus on the clocks and never had an issue.
But without knowing more of your criteria its hard to suggest cars as literally every brand more or less can offer you something in the price range.