3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); //require_once('flag.php'); $s1 = $_GET[md5($_SERVER['REMOTE_ADDRESS'])]; $s2 = $_GET[md5($_SERVER['HTTP_USER_AGENT'])]; if ($s1!=$s2) { if (md5($s1)===hash('md5',$s2)) { if (hash('sha512',$s1,true)!= hash('sha512',$s2,true)) { define("FLAG","123"); echo 'You got it'.FLAG; } } } ?>

preferences:
38.06 ms | 402 KiB | 5 Q