3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo strnatcmp(1, 2) . PHP_EOL; // -1 echo strnatcmp(10, 2) . PHP_EOL; // 1

preferences:
29.89 ms | 404 KiB | 5 Q