3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url ="[::1]/challenges/flag.php"; if (preg_match ('/[https?|[st]?ftp|dict|gopher|scp|telnet|ldaps?]\:\/\/.*(\d+|[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})/i', $url)) { die('Please do not access by IP.'); } elseif (preg_match ('/localhost/i', $url)) { die ('Please do not access localhost.'); }

preferences:
49.45 ms | 402 KiB | 5 Q