PHP page in WordPress demo

PHP script demo

<?php
$REMOTE_ADDR = $_SERVER['REMOTE_ADDR'];
$REQUEST_TIME = $_SERVER['REQUEST_TIME_FLOAT'];
if ( isset($_SERVER['HTTP_USER_AGENT']) ) {
$USER_AGENT = $_SERVER['HTTP_USER_AGENT'];
} else {
$USER_AGENT = 'NonameUserBot';
}
if ( isset($_SERVER['HTTP_REFERER']) ) {
$HTTP_REFERER = urldecode($_SERVER['HTTP_REFERER']);
} else $HTTP_REFERER = '';

?><h3>Information about your web browser</h3>
<p><strong>IP address:</strong> <?php echo $REMOTE_ADDR;?></p>
<p><em>Time of request:</em> <?php echo date('M d, Y H:i e', $REQUEST_TIME);?></p>
<p><em>User Agent:</em> <?php echo $USER_AGENT?></p>
<?php
if ( $HTTP_REFERER ) {
echo '<p><em>Referral URL: </em>' . htmlspecialchars($HTTP_REFERER, ENT_QUOTES) . '</p>';
}
?>

Demo result

Information about your web browser

IP address:

Time of request: Aug 20, 2019 13:44 UTC

User Agent: