PHILADELPHIA -- Rapper Meek Mill is out of jail after being held behind bars for five months for probation violations.

Mill took off in a helicopter shortly before 7 p.m. Tuesday from the prison outside of Philadelphia.

The Pennsylvania Supreme Court on Tuesday directed a Philadelphia judge who had jailed him to immediately issue an order freeing him on bail while he appeals decade-old drug and gun violations.

Mill was sentenced in November to 2 to 4 years in prison for violating probation.

A team of lawyers and public relations consultants had waged an all-out battle to get him freed on bail.

Philadelphia's district attorney believes Mill should get a new trial because of questions raised about the credibility of his arresting officer.