3v4l.org

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

preferences:
51.45 ms | 402 KiB | 5 Q