version_compare

Supported Versions: PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8
Compares two "PHP-standardized" version number strings
<?php version_compare(string $version1, string $version2, ?string $operator = null): int|bool
<?php     public function testEmitsConnectionWithInheritedContextOptions()

    {

        if (defined('HHVM_VERSION') && version_compare(HHVM_VERSION, '3.13', '<')) {


            $this->markTestSkipped('Not supported on legacy HHVM < 3.13');

        }
<?php     public function testEmitsConnectionWithInheritedContextOptions()

    {

        if (defined('HHVM_VERSION') && version_compare(HHVM_VERSION, '3.13', '<')) {


            $this->markTestSkipped('Not supported on legacy HHVM < 3.13');

        }
<?php     public function testEmitsConnectionWithInheritedContextOptions()

    {

        if (defined('HHVM_VERSION') && version_compare(HHVM_VERSION, '3.13', '<')) {


            $this->markTestSkipped('Not supported on legacy HHVM < 3.13');

        }
<?php         $info = ob_get_clean();



        if (preg_match('/OpenSSL Library Version => OpenSSL ([\d\.]+)/', $info, $match)) {

            return version_compare($match[1], '1.1.1', '>=');

        }

        return false;

    }