Phineas and Ferb's Quantum Boogaloo

We better go get her, you know the whole space-time continuum thing.

Phineas and Ferb travel to the future to find a tool that fuses metal with wood. There they encounter a 35-year old Candace who follows them back through time and finally busts her brothers as they are building their rollercoaster, but also accidentally foils Agent P's plan to defeat Dr. Doofenshmirtz, setting off a chain reaction that turns the future into a dystopian society.

Episode Summary
Phineas and Ferb are in the backyard with Baljeet, making a "superstructure." Phineas says they need a tool that fuses metal and wood, which will only be available 20 years into the future. Baljeet reveals his formula for time travel, which is not yet perfected. Phineas suggests they use the museum time machine. Baljeet leaves angrily saying "Well, thank you for inviting me!"—angry that he did all the work for nothing. The boys and Isabella, who has just arrived with her usual query, leave for the museum, with a somewhat insane Candace following them. There, they depart for the future, with Candace staying behind to bust them when they return, right at that spot (or perhaps a little to the left).

In the future, Phineas leaves Isabella with the time machine, claiming she's "the only one they can trust." However, about a minute later, Isabella, in a fit of lovestruck absentmindedness, leans against the machine’s lever, and departs for the past. Phineas surveys the changes made to Danville before spying an older, calmer Candace, along with her children Amanda, Xavier and Fred in the backyard. Amanda complains about how Xavier and Fred are wasting their summer vacation, then complains to Candace that the boys never do anything. Phineas and Ferb talk to their future nephews, and are disappointed by their lack of imagination of what to do with their vacation and offer suggestions with a song by Bowling for Soup. Xavier and Fred decide to build bumper cars that travel in the 5th dimension, and give Phineas a wood-metal fuser. Candace spies the young Phineas and Ferb through the window (as usual) while talking to still-friend Stacy (who has become the president of Uruguay), and goes to spy on them. Once she gets spotted, she runs to get future Linda in order to finally bust the boys.

Isabella returns to the future at the museum, displaying various time-travel souvenirs, as the boys climb in. Old Candace drags Mom through the future museum just in time, but Linda gets distracted by an old dinosaur bone and misses the time machine disappearing. Back in the present, a parallel scene unfolds with present Candace and Linda: Mom misses the arrival, remarking on the size of the dinosaur whose bone was unearthed, which is the one the future Linda remarks about (actually, the size of one bone turns out to be no guarantee).

Meanwhile, in the future museum, without a time machine, Professor Onassis arrives with his original time machine, just invented, and decides to settle in this time period: corn dogs are a reality at last. A determined Candace immediately borrows it to go to the day of the roller coaster to bust Phineas and Ferb—it was the very first day of summer vacation.

Now events in the present appear as originally seen in Rollercoaster. But just after Candace screams at the barren pillar where the rollercoaster ad once was, future Candace takes Linda outside so she can see the actual rollercoaster for herself. Linda freaks out and starts making calls to get Phineas and Ferb busted.

This has the catastrophic side effect of causing the helicopter which Perry had used to lift the giant magnet to change course, making Perry miss with the grappling hook and get hit by the giant ball of tin foil while Dr. Doofenshmirtz jumps to the lower roof of his building, exclaiming, “I’m alive!”.

Linda yells at Phineas and Ferb for their reckless acts. Future Candace returns to her time, satisfied with her work.

However, that joy is short-lived once she notices the bleak world she's returned to. She learns that Phineas and Ferb getting busted caused outraged parents to overreact and remove anything creative and fun, eventually child-proofing children.

This, and Perry being in a body cast for 18 months (one year and six months), allowed Doofenshmirtz to get the upper hand—he has become emperor Doofenshmirtz! Among his various edicts are that everyone must wear lab coats, change all their names to Joe (the easier for Heinz to say “How’re ya doin’, Joe?”), and they must bask in his glory whenever passing his statue.

Candace then must return to the present, to stop her slightly younger self from barging into the supermarket to bust her brothers. She succeeds with the time machine (now removed to a junkyard—it arrives back as the first item of junk is deposited in a park), and both older versions of Candace hide behind a car to watch events proceed unaltered: now they see how the helicopter snatched that rollercoaster!

The Candace who ended up in the dystopia tells her slightly-younger self about the future, and they agree they must stop altering the past.

They rush to the “junkyard” time machine to return to the future, but now it gets smashed by the giant tin foil ball. Figuring Phineas and Ferb are their only hope of returning home, they go to the backyard after Linda sees the boys under the tree but before the tree explodes. Phineas is shocked at there being two mature versions of Candace, and they explain their situations. Phineas points out that, since the bad future will no longer happen, that Candace should cease to exist, which immediately happens: “Oh darn.”

Phineas, Ferb, Isabella and future Candace go to the museum to fix the time machine that's still sitting there, and young Candace follows behind. She tries to convince future Candace to come back with her to bust the boys, but she explains that she no longer has any interest in busting them. Disappointed, she tags along in the time travel to the future.

In the future, Candace triumphantly rushes to find Linda, being the only proof she needs to bust Phineas and Ferb. The boys and Isabella follow her to maintain the time-space continuum. Linda is shocked at Candace being so young, while the children are shocked at Linda's oldness. Young Candace is disappointed that the boys receive no punishment, but settles for the fact that the boys were, indeed, busted.

At the museum, before returning to the present, future Candace gets the boys to promise never to time travel to the future again. Isabella disappears for a brief while, reappearing later in the time machine with a soda. Amanda then mentions how Isabella looks like her aunt, which she takes to mean she marries Phineas, but Candace points out she might marry Ferb that he cheerfully acknowledges the possibility with a sly gesture leaving her speechless. The boys go home, and we get a brief look at the hyper-dimensional bumper cars that Xavier and Fred build and comment to their sister that they doing nothing and she says that they still never do anything. Candace's tells her daughter to give it a rest and Linda comment it brings back memories and Candace can relate it.

In the present, Candace declares that, now knowing the boys can be busted, she will never stop trying to do so. As she left, Ferb later commented that they learn that she will mellow with age.

Songs

 * Second verse of the extended version of Today is Gonna Be a Great Day
 * Charmed Life

End Credits
Isabella travels back in time to just after Phineas decides to travel to the future and stops them by giving them the wood-metal fuser they needed in the first place. Phineas offers her a soda, which she accepts—she vanishes with it. Phineas points out that now they don't need to travel to the future. Ferb says maybe some other time. During the end logos, Candace yells I'm watching you!!

About the Future

 * Future Phineas and Ferb are not shown, but they are mentioned.
 * Candace has three children, identical to her own family - two sons, Xavier and Fred, and a daughter, Amanda and it is implied that she and Jeremy have gotten married (due to the fact that Xavier bears a resemblance to Jeremy, also Candace mentions several times that when she marries Jeremy she will name her kids Xavier and Amanda).
 * Some of the plot-line is similar to Back to The Future II.
 * Perry is alive (albeit very old) in the future, still battling Doofenshmirtz... at checkers!
 * Any relationship (Phineas & Isabella, Candace & Jeremy, etc.) is not shown in this episode. It is, however, mentioned that Isabella does eventually marry one of the two brothers— which brother it is is not made clear.
 * The antique shop still exists and is running.
 * 30 year old Phineas is in Switzerland to receive an award. Most likely NOT the Nobel Prize since it is awarded in Sweden.
 * 30 year old Ferb is in Camp David. Most likely in an advisory role, since being 30 would be too young to be President (35 years old is the minimum age for president). Also, the President must be American-born, whereas Ferb was born in England.
 * Stacy is the President of Uruguay.
 * The second verse of the full theme song is sung during near the end of the first third.
 * Phineas and Ferb are around 10 years old in the present. They may be slightly older, as Mom says that the boys are 30 years old at that time. It is a possibility Linda could have been stating that the boys were in their 30s and a little too old to be busted, which would mean that they could be older than 10.
 * If the current time stream stays the way it is seen to end up going, the only time Phineas and Ferb will ever get busted is 20 years in the future, and nothing will come of it.
 * If "Attack of the 50 Foot Sister" took place before this episode, there would be a discrepancy between the size of Future Candace and the world as it was in "Rollercoaster".
 * Isaballa went to the past and gave them the steel-wood fuser they needed. This would eliminate the necessity for Phineas and Ferb to go to the future, which would stop Isabella from giving them the tool. In the episode, Phineas and Ferb inadvertently created a temporal paradox. There are many other paradoxes in the episode, most of which are hand-waved away.
 * It is unknown if the Doofenshmirtz empire holds in the alternate future, because it is unknown if he remarried or if Vanessa becomes next in power.
 * Ferb might have not married Vanessa because future Candace doesn't know who Doofenshmirtz is.
 * It is possible that Candace never got her driver's license, since she isn't seen driving in this episode.

Whatcha doin'?
By Isabella:

By Phineas:

Perry's entrance to his lair
None.

Background Information

 * Bowling for Soup sings the second verse of Today is Gonna Be a Great Day in the future features the extended version of the theme song.]
 * A clip of this episode was shown at Comic Con 2009
 * Phineas knows Bowling For Soup and even says the name of the band to Xavier and Fred.
 * This implies that in the present, Phineas and Ferb are around 10 years old.
 * Phineas had the same voice as he normally does, even after Candace from the future stopped her future self (from before) from busting them, and they were in the backyard, even though he should have the voice he had in "Rollercoaster".
 * At the end of the archival footage as Emperor Doofenshmirtz's image is shown, he sings the opening notes of Also sprach Zarathustra, made famous by the movie 2001: A Space Odyssey.
 * The giant bone appears in the present, when it is about to be displayed; future, in the same location; and altered future, on top of the time machine in the city dump.
 * Although meant as a throwaway gag, the producers actually had to create a complicated backstory in order to alleviate Disney Television Animation president of original series Jill Sanford's concerns as to how exactly Stacy could qualify to become president of Uruguay. As explained by Jeff "Swampy" Marsh in an interview with Wired's GeekDad blog: "Dan immediately answered with this great 'well, back at this time, she met this guy who was actually the son of a Uruguayan diplomat, she moved there, 20 years after the law was changed for her to...' and there's actually a whole backstory about how Stacy managed to qualify and, you know, passing some sweeping llama legislation brought her to the forefront of Uruguayan politics."

Errors

 * During the story we hear that Isabella uses the time machine without the machine moving positions in any time period, however during the credits Isabella somehow traveled to the present Flynn Family's backyard from the future museum.
 * When Adult Candace advises the Phineas and Ferb not to travel into the future again, Phineas pointed out that they came to the future for the steel and wood fusing device, but he couldn't have known this because he was the Phineas from the beginning of summer and he wasn't working on (and probably hasn't even came up with the idea of) the superstructure from the beginning of the episode. It could be possible that the boys were informed about about this when they arrived in the future.
 * In this episode, it states that the events of the day Phineas and Ferb build the rollercoaster were on the first day of the summer. However, on that day, Linda talks to Candace about another of the boys' ideas, making it the second day of the summer. Linda could be referring to the previous summer, although Candace says that this is the first summer they did these things. ("Phineas and Ferb Christmas Vacation!")
 * On the checkers board Perry and Doofenshmirtz used, it shows two checkers side-by-side. In checkers, all pieces stay on one of the two colors the entire game. However, it is possible that in the future, that the rule has changed, or that's just how Perry and Dr. Doofenshmirtz play.
 * The tree is supposed to explode about 20 seconds after it did in this episode.
 * The Time Machine is not plugged in because it's at an unpowered dump. It is possible that the inventor that brought the second Time Machine to the Future built a self-powered Time Machine, but it seems more likely that it's a canon goof.
 * Candace from a good future says "So that's how that happened", but she did see the helicopter carrying the rollercoaster. However, it is possible that she forgot about this within the years that passed.
 * When Phineas, Ferb, and Isabella were going to fix the time machine with the Candace from a good future, while Isabella was talking to Ferb, the larger eye was in front of the smaller eye.
 * When the future Candace goes to the antique shop to tell Linda about the boys, Linda is standing behind the counter. However, when she's telling Candace about her comeback tour, she's standing in front of the counter.
 * When the older Candace enters the "Super Food and Stuff Mart" the sign on the front disappears but reappears when she drags mom out of the store.
 * The Time Machine was on a stand in the museum, however in these events it is on the floor.
 * The Time Machine that Phineas and Ferb use to travel to the past was on the same spot as the second Time Machine, so the first Time Machine would be destroyed.
 * How did past Isabella know what time Phineas and Ferb needed the wood-steel fusing tool? It's possible since she started time traveling after they realized they needed it, she got the tool for them in the future and back to the time after Baljeet angrily left and gave it to them.
 * Perry gets injured during a failed attempt of escape. He ends up in hospital with broken bones for several months. Why didn't Major Monogram replace him with another agent, and weren't Phineas and Ferb worried at all as they did not know where he was?
 * Although Stacy did not know Spanish language on July 1 ("The Bully Code"), she is the president of Uruguay. It's possible that she may have learned Spanish between Canada Day and Election Day

Continuity

 * Future Candace from a good future busts Phineas and Ferb when they build their first "Big Idea", the Coolest Coaster Ever, on the first day of summer. She also finds out how it disappears.
 * This is the first episode that the future has few plots of the first episode, Rollercoaster.
 * It's About Time!: The time machine from this episode reappears in this episode, along with the appearance of Professor Onassis, who created the original time machine.
 * It is said by Candace that she will date Jeremy through high school and college and then marry him and have two kids, Xavier and Amanda, who are seen in this episode, along with Xavier's brother, Fred. ("The Best Lazy Day Ever", "Swiss Family Phineas", "Spa Day")
 * Future Linda mentions that she's preparing for her Comeback-Comeback-Comeback-Comeback-Comeback-Comeback-Comeback Tour, presumably referring to her Lindana career ("Flop Starz, Ladies and Gentlemen, He is Max Modem! ). She says that if she does two more comeback tours, she gets a free pie.
 * At the end of Charmed Life, Doofenshmirtz holds a long note, along with the music at the end, it sounds the same as My Goody Two-Shoes Brother. ("Tree to Get Ready")
 * In the alternative future, Doofenshmirtz changes everyone names to Joe so he doesn't have to remember any names. Sort of similar to when he names his crocodiles "Susan and Susan". ("The Ballad of Badbeard")
 * Candace shimmies up the holographic tree the same way she did in Backyard Aquarium.

Allusions

 * The title is a play on the oft-parodied sequel title Breakin' 2: Electric Boogaloo. It has been confirmed by Jeff "Swampy" Marsh that the episode's title was originally a more direct reference: "Time Machine 2: Quantum Boogaloo."
 * Back to the Future Part II: The whole plot is a reference to Back to the Future Part II, both Candace and Marty McFly do something to disrupt the space-time continuum and it leads to their town becoming a polluted and corrupt place.
 * When Magior Momogram says thsi is our chance it is a refence to one of those turn back time movies
 * The no children allowed is a reference to the one-child policy in China

Cast

 * Vincent Martella as Phineas (Past & Present)
 * Ashley Tisdale as Candace (Past, Present & Future)
 * Thomas Sangster as Ferb (Past & Present)
 * Alyson Stoner as Isabella (Past & Present)
 * Maulik Pancholy as Baljeet
 * Caroline Rhea as Mom (Past, Present & Future)
 * Kelly Hu as Stacy
 * Dan Povenmire as Dr. Doofenshmirtz (Past & Future)
 * Jeff "Swampy" Marsh as Major Monogram (Future)
 * Dee Bradley Baker as Perry (Past & Future)
 * Tyler Alexander Mann as Future Carl
 * Jennifer Stone as Amanda
 * as Xavier
 * Moises Arias as Fred
 * Jennifer Grey as Librarian (possibly Joe)
 * Bowling For Soup as themselves