:vim <cword> **/*.php

<cword> works just as intended!