Result Size: 625 x 571
<!DOCTYPE html>
<html>
<body>

<?php
// Variable to check
$ip = "127.0.0.1";

// Validate ip
if (filter_var($ip, FILTER_VALIDATE_IP)) {
    echo("$ip is a valid IP address");
} else {
    echo("$ip is not a valid IP address");
}
?>


</body>
</html>