Requirements : FreeBSD with working pkg setup
If you are using Apache don’t forget to add mod_php83 in the list or you may expose your php scripts sources after the install
Then just run this :
pkg install php83 php83-{pkg query -a %n | grep php81- | sed s/php81-//g | paste -sd "," -}
Of course you may change PHP versions according to your wish 😉