Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

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

I would like to be able to upload a set of files, or if needed, one at a time, and receive data back on what the expected minimum version of PHP is required to run those files.

Until now, I have simply scraped all functions from my files, and then done look-ups on php.net to see what version would be needed for example:

filter_var (PHP 5 >= 5.2.0)

like image 893
Creativehavoc Avatar asked Apr 13 '11 05:04

Creativehavoc


1 Answers

PHP_CompatInfo2 is under development, see the announcement on the PEAR developer list.

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

like image 77
cweiske Avatar answered Sep 27 '22 17:09

cweiske