It's been done, repeatedly. And the answer is there's no difference between McDonald patties and homeade patties.
Any small cooked ground beef patty is unlikely to mold; it dries out too fast. Larger burger patties will mold, as will smaller ones if kept in the right conditions.
I don't eat McDonald's. But could someone do this with a non-fast food burger for a control? Some things are not so likely to decompose, say, because of salt content or because of cooking.