3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_server = array(); var_dump( strpos( $_server['SCRIPT_NAME'], 'php.cgi' ) );

preferences:
72.71 ms | 405 KiB | 5 Q