I've been developing a component, and have been trying to find some information, to no avail, of having my component perform a check of the PHP version before install. If PHP is greater than 7, then install. But, if PHP is less than 7 (such as 5.6) then show an error that PHP 7 is required, then stop the install.
I already figure that this will go into script.php in the preflight, but I'm struggling trying to find something to use to do the check.
Any suggestions?