How do I know my code which version of the language is compatible? Is there a way to figure out which is the minimum version of PHP language that can execute it without error? M
https://3v4l.org/
This online tool shows your code output for more than 150 different PHP versions (every version released since 4.3.0) plus HHVM.
Not sure if it's enough for your purposes.