follow-up to #8156
I want to start this (probably controversial) discussion now, so when Matomo 4 will come out one day we will have found a consensus :slightly_smiling_face:
In 2 months PHP 5.6 (and also 7.0) will go end of life and not receive security updates anymore (even though it had the double security support duration than a normal PHP version)
Of course there will be Linux distributions that will continue to backport security fixes, most have moved on and only support PHP 7+.
For comparison this are the requirements for other famous PHP applications:
Dropping support for 5.x will allow
Of course one can now check the PHP versions that are most used by Matomo users and see that PHP 5.6 shows up quite often there.
But I'd like to argue that this isn't showing the reality as :
I'll continue to extend this post if I or someone else can think of more reasons to drop PHP 5.x in the next major Matomo release.
PS: I think if we decide so, this should be announced far before the upgrade and the last Matomo 3.x release should include a check that refuses to upgrade and shows an explaination on what to do to.
+1 for dropping 5.x support for Matomo 4
+1 there are even PPAs for older Linux installs if needed.
Requiring PHP 7+ should be doable by the time we release Matomo 4. I'm sure we probably still have 20% PHP5.X usage but that should be fine. @mattab could give more accurate numbers.
Current stats of all Piwik/Matomo instances:
php ratio 5.6 30.81% 7.0 23.42% 7.1 12.04% 5.5 10.55% 7.2 10.09% 5.3 6.68% 5.4 5.03% 5.2 1.33% 7.3 0.06%
Should probably re-run the numbers and look at those who are using Matomo> 3.3.0 or so to restrict to users who keep Matomo somehow updated