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 date("d/m/Y", strtotime('1343858400')); if (strtotime($test_date) < strtotime($todays_date)) { echo "Past"; } else { echo "Future"; } ?>
Output for 5.1.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
01/01/1970Future
Output for 4.3.0 - 5.0.5
30/11/134391Past