<?php

$future_unix_time = "1542807180";

$now = new DateTime();
$now->add(new DateInterval('PT3H'));
$check_time = DateTime::createFromFormat('U', $future_unix_time);
// echo $now->format('M-d-Y H:i:s');
if($now->format('U') <= $check_time)
	$state = "less";
else
	$state = "greater";
	
echo sprintf("%s is %s than %s", $now->format('Y-m-d H:i:s'), $state, $check_time->format('Y-m-d H:i:s'));	