The man accused of a stabbing murder in Sydney’s inner west last night has allegedly tried to escape from Newtown Local Court.

The 28-year-old was due to face court this afternoon over last night’s fatal stabbing in Camperdown but allegedly tried to clamber out of the dock before his matter was due to be heard.

The escape attempt was unsuccessful, but the courthouse was briefly put into lock down.

The 28-year-old man was charged overnight with one count of murder and two counts of being armed with intent to commit a serious indictable offence.

Police allege he stabbed a 51-year-old in the nearby suburb of Camperdown just after 9pm. It is believed the pair were not known to each other and that the victim was waiting for a bus at the intersection of Salisbury Road and Church Street.

He was today refused bail.