Refer:
Opinions and Facts[
^]
Wordpress is like a ready-made house, you get what is provided by the developer, you may extend your house in the future, but subject to certain constraints like existing structure and space. Whereas PHP is like building a house from scratch by yourself based on your own design and requirements, but you got to have the skills and knowledge to do so.