a colloquial exclamation meaning 'what on earth is this?' used to express surprise, puzzlement, or mild disgust.
机の上に変な液体がこぼれていて、なんだこりゃ!
There was a weird liquid spilled on the desk — what on earth is this!
新しいメニューを見て、思わず「なんだこりゃ」とつぶやいた。
Looking at the new menu, I couldn't help but mutter, 'What on earth is this?'
子どもが作った工作を見て「なんだこりゃ」と笑ってしまった。
I laughed and said 'what is this?' when I saw the craft the child made.