3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month = 05; $day = 07; $year = 2014; $dateString = sprintf("%u/%u/%u", $month, $day, $year); $exp = new DateTime($dateString); $now = new DateTime(); if ( $exp > $now ) echo "in future"; else echo "in past";

preferences:
45.06 ms | 402 KiB | 5 Q