Unfiltered PHP_SELF/REQUEST_URI

<?php
$uri 
getenv('REQUEST_URI');
$uri $_SERVER['REQUEST_URI'];
$uri $PHP_SELF;
$uri filter_input(INPUT_SERVER'REQUEST_URI'FILTER_UNSAFE_RAW);
?>
<a href="<?php echo $uri?>?page=2">Page 2</a>