In this post I am going to explain to you how we can install PHP 7.3 in your Ubuntu. PHP 7.3 is under development and going to release soon, but we can install PHP 7.3 and test all the feature in the development phase using ondrej/php.

Please follow below steps to install the latest version of PHP 7.3

Step 1. Open the terminal and add ondrej/php package which has latest PHP version to add run below command.

after adding repository run update command again

Step 2. Now we can add the latest version of PHP to do that run below command in terminal

Step 3.  Once Install process is complete check the version of PHP in terminal using below command.

Step 4. Now if you want to add any PHP extension run command on terminal like shown in below code snippet

Eg. If you want to install Curl, MySQL extension and PHP FPM extension run below command

Now if you want to restart PHP run below command to restart

Hope this post helps you.