If such surplus, or any part thereof, shall remain in the court for the term of three months without being applied for, the court may direct the same to be put out at interest under the direction of the court for the benefit of the defendant, his representative or assigns, to be paid to them by the order of such court.