3v4l.org

run code in 300+ PHP versions simultaneously
<?php $versions = ['7', '7.2', '8','8.2', '8.2.3', '8.3', '8.2.3.8.alpha']; while ($version1 = array_pop($versions)) { foreach ($versions as $version2) { echo $version1.' '.(version_compare($version1,$version2) < 0 ? '<' : '>=').' '.$version2."\n"; } }
Output for 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.28, 8.4.1 - 8.4.14, 8.5.0
8.2.3.8.alpha >= 7 8.2.3.8.alpha >= 7.2 8.2.3.8.alpha >= 8 8.2.3.8.alpha >= 8.2 8.2.3.8.alpha >= 8.2.3 8.2.3.8.alpha < 8.3 8.3 >= 7 8.3 >= 7.2 8.3 >= 8 8.3 >= 8.2 8.3 >= 8.2.3 8.2.3 >= 7 8.2.3 >= 7.2 8.2.3 >= 8 8.2.3 >= 8.2 8.2 >= 7 8.2 >= 7.2 8.2 >= 8 8 >= 7 8 >= 7.2 7.2 >= 7
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.

preferences:
86.69 ms | 409 KiB | 5 Q