Phineas and Ferb find a time machine at a museum and travel back to the Jurassic Age. Meanwhile, Perry is sad when Doofenshmirtz replaces him with a new nemesis, Peter the Panda, so he confides in a relationship talk-show host.