(CNN) — "Joker," the gritty comic book film about the origins of the crazed Batman villain, has become the highest-grossing R-rated film of all time.
The film, which stars Joaquin Phoenix as a troubled man who turns into a killer clown, has made roughly $788 million at the worldwide box office, Warner Bros. confirmed on Friday. That is enough to eclipse the record set by "Deadpool," which made $783 million globally when it came out in 2016.
Ryan Reynolds, the star of "Deadpool," offered his congratulations on social media Friday.
"R-Rated box office congratulatory posts aren't like the ones you're used to," Reynolds tweeted with a photo of Phoenix's Joker dancing above names of characters from other successful R-rated films like "It" and "Ted."
The film may be the highest-grossing R-rated film globally, but it still has a long way to before beating the highest-grossing R-rated film domestically. That record still belongs to Mel Gibson's biblical drama "The Passion of the Christ," which made $370 million in North America in 2004. "Joker" has so far made $259 million in the US.
"Joker" shattered box office records when it opened earlier this month to $96 million in North America. The film was able to find an audience despite putting critics and authorities on edge over its depiction of violence.
"'Joker' has been a really surprising success," Paul Degarabedian, senior media analyst at Comscore, told CNN Business. "The film found a record-breaking global audience despite security concerns, controversies and a bleak subject matter."
The film from Warner Bros., which like CNN is owned by WarnerMedia, could continue to build momentum as Hollywood heads further into awards season. The film won the Venice Film Festival's top prize and critics have raved about Phoenix's performance, which has led to Oscar talk.
"It would be really surprising if the Academy ignores Phoenix's performance," Shawn Robbins, chief analyst at Boxoffice.com, told CNN Business. "Even though the film had a lot of divisive talk around it, one thing thing everyone seemingly agreed on was that Phoenix put in Oscar-caliber work."