Correct way to add PHP 8.3

I’m looking for the best way to add PHP 8.3 or upgrade PHP 8.2 to 8.3 on Hestia.

I see a couple other topics similar to this but it looks like they ran into issues and had to use different Commands etc, so kind of confusing…
I’m just trying to find the correct way to upgrade or install. thank you.

After I install PHP 8.3 edit something on the back end and save it I get this so I’m not sure. That’s what I got before that’s why I thought I was installing it wrong.

There has been a critical error on this website.

Learn more about troubleshooting WordPress.

I am guessing Beaver Builder is not yet supporting php 8.3

No worries, php 8.3 is installed and I will test things every once in a while, to see when all is supported.