Reputation: 1557
Is there any tool that can analyze PHP code and tell if it will work or not with certain PHP versions? For example if I have code developed using PHP5.3 and want a fairly quick way to tell if it contains code that is not available in, say, PHP5.1? I am mainly thinking in terms of static analysis here.
Upvotes: 4
Views: 869
Reputation: 145512
There was PHP_CompatInfo for this. It's outdated now, but was intended specifically for probing scripts against compatibility lists.
The new PHP_CompatInfo 2 with PHP_Reflect are worth investigating however. On Github: https://github.com/llaville/php-compat-info
Upvotes: 2
Reputation: 12618
You can run a PHP server locally with the version you require and just install your software there.
Upvotes: -1