Install php 5.3 or 5.4 on Ubuntu 16.04 Xenial and apache
<p>I want to Install php 5.3 or 5.4 on Ubuntu 16.04 Xenial and Apache.<br>
A tutorial points me to use PPA but they are not helping me in what I need. </p>

<p>I know that PHP 5.3 and 4 are obsolete but I need this for a project and is this possible? If yes then please teach me how in a step by step procedure with Apache2.</p>