My company website is hosted on PHP 5.4 and when I tried integrating latest version of Piwik (3.0.4), it didn’t work. As of now it is not feasible to upgrade the PHP version of my server, I need to know which versions of Piwik will work with PHP 5.4 and where I will get the older versions of Piwik.
The 2.x versions should work with PHP 5.4.
The latest one is 2.17.0, which you can get here: https://builds.piwik.org/
Just keep in mind that it isn’t maintained any more, so please only use it as a temporary solution until you can update to an up to date PHP version.