JBZoo\Utils\Sys::isPHP7 PHP Method

isPHP7() public static method

public static isPHP7 ( string $current = PHP_VERSION ) : boolean
$current string
return boolean
    public static function isPHP7($current = PHP_VERSION)
    {
        return self::isPHP('7', $current);
    }

Usage Example

Example #1
0
 public function testIsPHP7()
 {
     isTrue(Sys::isPHP7('7'));
     isTrue(Sys::isPHP7('7.0'));
     isTrue(Sys::isPHP7('7.0.9'));
     isTrue(Sys::isPHP7('7.1'));
     isTrue(Sys::isPHP7('7.1.0alpha1'));
     isFalse(Sys::isPHP7('5.7'));
     isFalse(Sys::isPHP7('5.3'));
 }
All Usage Examples Of JBZoo\Utils\Sys::isPHP7