Question: can you leave a peanut butter and jelly sandwich out overnight?
Answer: It will spoil or rot in just a few hours if the temperature is very warm. The cooler the temperature the longer it will take to spoil. If it's kept refrigerated it could remain unspoiled for days, possibly even weeks if the bread was fresh.