WampServer可以通过打开浏览器,并在地址栏输入"http://localhost/"来运行PHP。在WampServer安装目录的"www"文件夹中,创建并保存一个PHP文件,例如"index.php"。
接下来,在浏览器地址栏中输入"http://localhost/index.php",即可运行刚刚创建的PHP文件。如果页面正确显示,则表示WampServer已经成功运行PHP。可以利用WampServer来搭建PHP网站,并进行网站开发和部署。