I was confused about the "php" == 0, until I found http://php.net/manual/en/types.comparisons.php. So "php" == 0 is true and "php" == true is true, but 0 == true is false. Yikes! It seems like comparisons in PHP are as bad as they are in JS.
I have a hard time believing this is real. Does WTF do any verification?