A York Regional Police officer stunned car show goers Thursday night when she laid down an impromptu freestyle rap in front of a roaring crowd.

Const. Amy Oliver was working security at the Strada Car Meet on Thursday when she put on the performance in uniform and all.

The crowd whipped out their phones and recorded the performance, which is now circulating online.

In the videos, Oliver stands on a platform surrounded by a group of people with their hands in the air.

Then, the beat behind Dr. Dre’s 1999 classic ‘Still D.R.E.’ starts to blare through the speakers and Oliver takes the mic.

“Yeah I’m a cop, Region of York, people call me pig but what’s wrong with pork?” she raps, sparking a roar of cheers throughout the crowd.

“I like my donuts Boston cream and my coffee double-double, I try to drink it all before someone starts trouble.”

Jokes aside, Oliver’s rap eventually takes a sincere turn.

“I 100 per cent agree in love and equality. I want everybody to feel free and feel like they can come to me without saying, ‘Ah, police don’t care.’ I wish it would stop. I would put my life on the line for you, black or not,” she says.

“I would’ve taken a bullet for Biggie and 2Pac. So next time you spit something you think I’m not, just remember I’m the one who protected Jenny from the block.”

In an interview with CTV News Toronto Friday, the 29-year-old officer said she’s been rapping since she was in high school and does it now for fun in her free time.

“I don’t compete. I just have fun. I can’t tell you the last time I’ve been on stage, it’s just something I did on the spur of the moment,” Oliver said.

She explained that she knew she was coming into a situation where people might not be receptive to police and saw a chance for an opening.

“It wasn’t a very positive environment when I got there. A lot of people were upset about police presence. They were worried that we were going to start impounding all their vehicles and charging them,” she said. “So I was told, heads-up they might not be happy with you being here, and I understood that. I went along with it and tried to better those relationships and open that communication so we all understand each other.”

She said the crowd opened right up to her after her performance and came up to talk “about anything and everything.”

Speaking to CTV News Toronto on Friday, York Regional Police Const. Andy Pattenden said Oliver has been freestyle rapping in her free time “for years.”

“It’s something she enjoys,” he said.

“She saw this as an opportunity for community engagement with a group that may not have positive feelings toward police officers.”

An Instagram video of Oliver’s performance, posted last night, has already garnered more 20,000 views. A Facebook post, meanwhile, has more than 40,000.

“Legendary night!” one Instagram commenter said.

But it seems Oliver’s rap stardom was merely a passing moment, as it was back to business shortly after she dropped the mic.

“Take in the same cop slapped me with a speeding ticket the same night,” another Instagram commenter wrote, adding a smiley emoji at the end.