3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('UTC'); $date='1555133436'; $next_date = new DateTime("@$date"); // find out when they can next access the data $next_date->modify('+1 day'); $now = new DateTime(); // now find out how long they must wait $wait = $next_date->diff($now); echo $wait->format("You must wait %h hours and %i minutes to access the data again\n");

preferences:
32.81 ms | 404 KiB | 5 Q