A Virginia college student told police she was “doing cocaine with the devil” when she flew into a psychotic rage and fatally knifed her best friend and roommate more than 30 times, a report said.

Luisa Ines Tudela Harris Cutting, 21, pleaded guilty on Monday to the Jan. 24 slaying of Alexa Cannon and was sentenced to 20 years in prison, the Roanoke Times reported.

Cutting admitted to stabbing Cannon to death in the off-campus apartment the two students shared near Radford University in southern Virginia.

Cutting had been bingeing on a cocktail of drugs — including cocaine, mushrooms, Adderall, Xanax and marijuana, according to the report.

During her confession to police, Cutting allegedly made rambling statements about the Apocalypse and recited the Hail Mary prayer a number of times in Spanish, according to the report.

She also repeatedly tried to shove her entire hand in her mouth, the newspaper reported.

During her sentencing Monday, Cutting offered a brief statement, asking for forgiveness and expressing regret for the killing.

“There are no words for this tragedy and my heart is filled with sorrow and grief,” she said.

Prior to the killing, Cannon shared glowing social media posts about Cutting, saying she was her best friend.

A post on Cannon’s Facebook page from July 2018 read: “So incredibly proud of my best friend, Luisa Cutting for becoming Latinos Student Alliance’s President! I know you’re going to be amazing with everything you do! Love you more!!”

“Love you so so much,” Cutting wrote in response to Cannon’s Facebook post.