NEW YORK City quietly agreed about two years ago to pay 18-B lawyers a premium of up to $20 an hour for working night shifts in the Family and Criminal Courts.

That little-known piece of information emerged during the first day of testimony yesterday in the New York County Lawyers’ Association challenge to the constitutionality of New York’s 16-year-old compensation schedule for court-appointed attorneys.