Companies and governments around the world are racing to patch vulnerabilities in the widely used PHP programming language, as experts reported a surge in hacking attempts following their disclosure.