In each and every version of php, some new features are added and some features are stopped.
Example:
<?php
$hex = hex2bin("6578616d706c65206865782064617461");
var_dump($hex);
?>
will need php 5.4.0 and above, as hex2bin was introduced in php 5.4.0.
It is tedious to check version dependency manually in php.net for each and every built-in functions used in php code. Is there any automated/semi-automated way to identify the minimum version (and maximum version if applicable) of php installation would be needed to execute any given php code?