public static function compatibleWith($phpVersion) { return version_compare($phpVersion, '5.4.0', '>='); }
/** * @return IIteratorScheme[] */ public static function getAvailableSchemes() { if (self::$schemesInPriorityOrder === null) { if (Generators\GeneratorScheme::compatibleWith(PHP_VERSION)) { self::$schemesInPriorityOrder[] = new Generators\GeneratorScheme(); } if (Standard\IteratorScheme::compatibleWith(PHP_VERSION)) { self::$schemesInPriorityOrder[] = new Standard\IteratorScheme(); } } return self::$schemesInPriorityOrder; }