So he pretended to be insane in their presence; and while he was in their hands he acted like a madman, making marks on the doors of the gate and letting saliva run down his beard.
NIV
And he changed his behavior before them, and pretended to be insane in their [Philistine] hands, and scribbled on the gate doors, and drooled on his beard.
AMP
And he changed his behaviour before them, and feigned himself mad in their hands, and scrabbled on the doors of the gate, and let his spittle fall down upon his beard.
KJV
"The LORD has appointed you priest in place of Jehoiada to be in charge of the house of the LORD; you should put any crazy person who acts like a prophet into the stocks and neck-irons."
NIV
The Lord has made you [Zephaniah] priest instead of Jehoiada the [deputy] priest, that you should have oversight in the house of the Lord over every madman who makes himself a prophet, that you should put him in the stocks and collar.
AMP
The LORD hath made thee priest in the stead of Jehoiada the priest, that ye should be officers in the house of the LORD, for every man that is mad, and maketh himself a prophet, that thou shouldest put him in prison, and in the stocks.
KJV