I had a subdomain and tried changing the php version in the cyberpanel control panel without any success. I found a discussion about the issue here.
The ultimate solution wound up being that I had to change the vhosts file directly for the subdomain. Any other attempts to change the php version did nothing other than changing the vhosts file. Once I did that, the version finally changed.