Moreover, PHP allows you to write in or even enforcec any style: Change a few php.ini settings, and it will become a strictly typed language. Use any pattern or anti-pattern you want.
But you will scarcely use them - because the ecosystem of PHP frameworks, libraries is so vast that you will find something to use for any common use pattern. Which will free you to get into business code faster and easier.
Even further - there are even people who use WordPress as headless CMS by removing its frontend and replacing it with React etc. Everything is that flexible.