This will only install PHP. If you wish to serve a PHP file to the web you will
also need to install a web-server such as Apache, Nginx, or use PHP's built in web-server (php version 5.4+).
If you are in a Ubuntu version below 16.04 and want to use PHP 7 anyway, you can add Ondrej's PPA repo...