Is there a way to determine the minimum version of PHP needed to run a script automatically?

I know http://pear.php.net/package/PHP_CompatInfo - however I am looking for an online service that offers something similar or perhaps better.

I noticed that PHP_CompatInfo has not been updated for some time (2009-01-19)

I would like to be able to download a set of files, or, if necessary, one at a time, and also receive data on what is the minimum version of PHP required to run these files.

Until now, I just cleared all the functions from my files, and then did look-ups on php.net to find out which version would be needed, for example:

filter_var (PHP 5> = 5.2.0)

+6
source share
1 answer

PHP_CompatInfo2 is under development, see the announcement in the list of PEAR developers.

See http://php5.laurent-laville.org/compatinfo/

+2
source

Source: https://habr.com/ru/post/885786/


All Articles