PHP fun fact: misplaced :: triggers the Hebrew error T_PAAMAYIM_NEKUDOTAYIM

pbbakkum · x · 2026-10-22

A beloved piece of PHP trivia: placing :: in the wrong spot makes PHP throw the infamous "unexpected TPAAMAYIMNEKUDOTAYIM" error. The cryptic parser token is actually Hebrew for "double dots twice" — a nod to PHP's Israeli creators Zend, though incomprehensible if you don't speak Hebrew. The author calls it "an elegant weapon for a more civilized age."

Original post →

More from Fun

Fun channel →