Consider $\mathbb{Z}[x]$, we know that this is not a PID. Now consider the ideal $J = \langle x^2-2, 5\rangle$. I need to prove that $\mathbb{Z}[x]/J \cong \mathbb{Z}_5[x]/\langle x^2-2\rangle$.
Looking for a hint, will complete the proof.
Consider $\mathbb{Z}[x]$, we know that this is not a PID. Now consider the ideal $J = \langle x^2-2, 5\rangle$. I need to prove that $\mathbb{Z}[x]/J \cong \mathbb{Z}_5[x]/\langle x^2-2\rangle$.
Looking for a hint, will complete the proof.
Hint : Consider the composition of surjections $$\Bbb Z[x]\to \Bbb Z_5[x]\to \dfrac{\Bbb Z_5[x]}{\langle x^2-2\rangle}$$and find its kernel. Then apply the first isomorphism theorem.
Additional hint : To find the kernel of a composition $f\circ g$, notice that $$x\in \ker (f\circ g) \Leftrightarrow f(g(x))=0\Leftrightarrow g(x)\in \ker f.$$ By the way this proof strategy works for the general case mentioned by Magdiragdag in the comments.