(LOS ANGELES) -- Dawn of the Planet of the Apes took the top spot at the weekend box office, earning $36 million.
The Purge: Anarchy came in second at the box office bringing in $28.4 million, while the animated Planes: Fire & Rescue followed with $18 million.
Cameron Diaz and Jason Segel's comedy Sex Tape also opened this weekend, falling just out of the top-three with $15 million.
Here are the top ten films of the weekend according to boxofficemojo.com:
1. Dawn of the Planet of the Apes: $36.0 million
2. The Purge: Anarchy: $28.4 million
3. Planes: Fire & Rescue: $18.0 million
4. Sex Tape: $15.0 million
5. Transformers: Age of Extinction: $10.0 million
6. Tammy: $7.6 million
7. 22 Jump Street: $4.7 million
8. How to Train Your Dragon 2: $3.8 million
9. Maleficent: $3.3 million
10. Earth to Echo: $3.26 million
Copyright 2014 ABC News Radio