3v4l.org

run code in 300+ PHP versions simultaneously
<?php $QUERYSTRING = "test.ai"; if( (substr(strtolower($QUERYSTRING), -3) != ".ai") && (substr(strtolower($QUERYSTRING), -4) != ".eps")) { echo "not allowed"; } else { echo "allowed"; }

preferences:
36.97 ms | 402 KiB | 5 Q