The World War Z ending went through some major changes before the film was released with a dramatically different conclusion originally planned for the zombie blockbuster. Starring Brad Pitt and released in 2013 amid the zombie craze in Hollywood, World War Z seemed destined for success until reports of major reshoots surfaced. Nevertheless, when audiences and critics alike saw World War Z, most were somewhat surprised to see that the end result was a decent big-budget zombie movie that proved to be a solid box office hit.
https://screenrant.com/world-war-z-original-ending-changes-difference/