3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test_date = "08/02/2012"; $todays_date = date("d/m/Y"); var_dump(strtotime($test_date)); var_dump(strtotime($todays_date)); if (strtotime($test_date) < strtotime($todays_date)) { echo "Past"; } else { echo "Future"; } ?>

preferences:
33.4 ms | 402 KiB | 5 Q