A driver sped through Wakefield at speeds of up to 85mph after seeing the police, a court heard.
Alex Michael Noble, 21, was spotted coming at speed towards a police car on Denby Dale Road at 1.45am on July 26.
Prosecutor Heather Gilmour said police turned round to follow but Noble’s car sped up to 60mph in a 30mph zone towards Durkar.
Leeds Crown Court heard Noble’s speed increased towards the roundabout at Pugneys where he reached between 75mph and 85mph in a 40mph zone. He then turned onto Asdale Road where he continued at speed in an area where the limit changes from 40mph to 30mph.
Police later found his car abandoned on the driveway of an unconnected address in Crigglestone.
Noble was found nearby. His car was checked and police found two small bags of cocaine in it.
Noble pleaded guilty to dangerous driving, failing to stop, having no insurance and possession of class A drugs.
Richard Canning, mitigating, said: “He has shown genuine remorse for a moment of panic, a thoroughly stupid incident.”
He said his client had no previous convictions and added: “The roads were clear, there was no damage, no injury, no other road users appear to have been put in danger.”
Noble, of Wakefield Road, Fenay Bridge, Huddersfield, was sentenced to a 12-month community order with 200-hour unpaid work and 15-day activity requirements.
He was also banned from driving for two years and given a 12-month conditional discharge for possession of cocaine.