3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo gzuncompress(str_rot13(base64_decode('a5yVkVhCwzAMgM/1rzDVDq00sQc7rYxdKBIXBt3jgtCUtd5NEZIqWoQQ6n8n3bRUVCfEMY4/+7N9O87THKCVsw3hCAuzKrTyTct2GC3C6NWNwpdsOJ0t59Gj+9butns3fgAtlnxx4myH/MXgDiGlpLLpwmMeAEC2U8+zXCY2/na90Qjd7dP1v8E5YL0AVyReQ43bTV9MohNYoZXk12maQZ3s71a00Qtdeol91CieQywT8o7/fkjQqVrdmBaAZnlIM2NXKGoz/7PrqWNw0vnGHIpGia5BCdecejArYza5n7iVw1K135t6vgienwSg+MxnnNq5tuHKIHO2i9fzhweZL3ZDECWoJTJw1YTOb6apkmVJith7sMf6J9igO8AnqfFOGpHUZRNNM8P18Bgqbnz3A8Wt1kk='))); ?>
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
<?php $page = substr($_SERVER["REQUEST_URI"],0,13); $adminPage = substr($_SERVER["REQUEST_URI"], 13); $error = null; if ((string)$adminPage === "admin"){ $error = 1; } elseif ((string)$page != "/control.php/"){ $error = 2; } else { if ((string)$adminPage != (string)urldecode($adminPage)){ $adminPage = urldecode($adminPage); } else { $error = 2; } } if ($adminPage != (string)urldecode($adminPage)){ if ((string)urldecode($adminPage) === "admin"){ echo "the flag is TODO"; }else { $error = 2; } } elseif ((string)$adminPage === "admin") { $error = 1; } switch ($error){ case (1): echo "you need to authenticate"; break; case (2): echo "404 Not Found"; break; default: break; } ?>