- var_dump: documentation ( source)
- version_compare: documentation ( source)
<?php
$actual = version_compare('1.0.6.8', '1.0.6.10','>');
// 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);