version_compare

PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8
version_compare - Compares two "PHP-standardized" version number strings
Manual
Code Examples

Example #1 version_compare examples

PHP Version: