Jacob's Ladder is one of my favorite movies and for me the most mind-blowing ending ever. More recently we've had many movies that somehow had the same idea for an ending (don't want to mention them so not to spoil Jacob's Ladder) but AFAIK this was the first time that it was used.