3v4l.org

run code in 300+ PHP versions simultaneously
<?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);

preferences:
40.12 ms | 402 KiB | 5 Q