3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test_date = date("d/m/Y", mktime(0, 0, 0, 2, 8, 2012)); //"08/02/2012"; $todays_date = date("d/m/Y"); echo $test_date. " " .$todays_date; if (strtotime($test_date) < strtotime($todays_date)) { echo "Past"; } else { echo "Future"; } ?>
Output for 5.1.0 - 7.1.0
08/02/2012 27/02/2014Future
Output for 4.3.0 - 5.0.5
08/02/2012 27/02/2014Past