version_compare
symfony/var-dumper
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