3v4l.org

run code in 300+ PHP versions simultaneously
<?php $oldTimestamp = strtotime("2014-02-05 19:30:00"); $newTimestamp = strtotime('-2 day', $oldTimestamp); if(time()> $newTimestamp) echo "inschrijving gesloten"; else echo "inschrijving open";

preferences:
30.66 ms | 402 KiB | 5 Q