brew install php@7.3 //On mac run this on terminal
//On Linux run following commands
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y php7.3
//Make sure php version is correctly installed
php -v
php --version
//For Windows simply follow this tutorial
//https://www.youtube.com/watch?v=IlyLvicVQNA