If it idles the gas is fine, unless there's a slug of water in the tank. I'd dump it out into a clear bottle (give it a few minutes to settle) and look, because you need to cross that off your list; not chase gremlins.
I don't like concluding that gas is bad, cuz what do you do with it? I've hucked a jug into a burnpile but that might be a little too exciting for most folks. I've used it for weedkiller in the parking area too, ------but spreading it out to evaporate, not much sinking into the ground----.
It has to be pretty bad (or many years old, smell like varnish) before I will discard gas. I've never discarded "few months old" gas unless contaminated it burns fine. I bought a motorcycle last summer; the guy said it hadn't started in 8 years and it ran fine on 8 years old gas.
+1 on the tank filter, get it out and backflush it. I'd blow it out with cab cleaner first, then follow up with compressed air. Note that water can plug the filter too.
Idling is a good sign.