A teenage driver who allegedly fled the scene of a nasty crash while three of his friends were stuck in a burning car has been granted bail.

Awac Awac, 19, was allegedly behind the wheel of a Honda Civic in Sydney's west when it crashed into a power pole on Bungarribee Road just before 3.30am on Sunday.

The car burst into flames, with three men inside.

Awac Awac, 19, was granted bail in a Sydney court today. He is accused of fleeing the scene after a crash, leaving his friends in a burning car. (9news)

Police allege the Civic drove over a concrete median and onto the wrong side of the road before the crash.

Mr Awac allegedly fled the scene along with a rear passenger.

Three men aged 19, 20 and 22 were left trapped in the car, but were pulled free by bystanders.

The crash took place in Blacktown early on Sunday morning. (9news)

Bystanders pulled the trapped men free. (9news)

They remain in hospital after sustaining serious injuries.

One young man is in a critical condition and another has been told he may never walk again.

The three men trapped in the car have suffered serious injuries. (9news)

Mr Awac covered his face as he left Mount Druitt Local Court today, and refused to answer why he allegedly left his friends in the burning car.

The investigation into the crash is continuing.