<?php
echo $actual = version_compare('1.0.6.8', '1.0.6.10','<')."<br>";
// returns -1 if the first version is lower than the second, 0 if they are equal, and 1 if the second is lower.
$expected = -1;
var_dump($expected, $actual);
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
1<br>int(-1)
string(5) "1<br>"