Error Upgrading PHP on WordPress site

php
wordpress

#1

I update the PHP in my WordPress workspace from version 5 to 7, as outlined in Wordpress Upgrade to Php 7 problem. The update appears to be successful . When I run the project the browser shows the raw PHP codenot rendering WP Admin menu. What is wrong and how do I fix it?