Randomly shuts off

Maybe it is fuel boiling, aka vapor lock, does it just quit? My 340 dart boiled the fuel on a long drive last summer, is started wanting to quit every time I let off the gas. I have an electric fuel pump though, it never quit but acts like it is starved for fuel. I let it cool off and it was fine until it heated back up. I think my car did it because of some crappy fuel I put in on the way home. That is the only time I had any problems like that. I had a slant 6 aspen that used to do the same thing, that had a stock mechanical pump, would fire right up after it cooled down.