By Ann Singer, Staff Writer

What do “How I Met Your Mother” and “Les Misérables” have in common? Jason Segel and Neil Patrick Harris of course!

In an episode of “Inside the Actors Studio” with the cast of HIMYM, an audience member asked Segel and Harris to reenact the song “Confrontation” in honor of the musical’s return to Broadway this past month.

In case you didn’t already know, HIMYM is a sitcom about five friends living it up in New York City. The show surrounds the narrator, Ted Mosby and his future self telling his kids how he met their mother.

Since its premier in 2005, the show has gathered a loyal crowd and just recently aired the season finale on March 31 to mixed reviews.

Even after a failed 2006 revival of the play, and the 2012 Oscar-nominated film, however, producer Cameron Mackintosh hoped the “Les Mis” brand has not been overused so much that it would discourage people to come see a new live version.

But Segal and Harris have no problem bringing the classic to life in a truly entertaining, hilarious way.

As Alyson Hannigan (who plays Lily in the show) points out in the video, it’s been a long time since they last performed the song on the “The Megan Mullally Show” in 2006. Nevertheless, previously claiming it a song they love and frequent often, Segel and Harris didn’t hesitate a moment before diving right into the roles of Jean Valjean and Javert.

Halfway though, Cobie Smulders (who plays Robin in the show), who was sitting between the two, had to move out of the way and out of the intensity.