How can I change the PHP version

Hey gang. Just doing a PHP upgrade to support Connect to Flywheel. I was able to spin up a new site environment in Local, but running the Import utility, I’m getting the following error:

“Allowed memory size of 268435456 bytes exhausted (tried to allocate 310085376 bytes) in /app/public/wp-content/plugins/wordpress-importer/parsers.php on line 66”

Any suggestions?