3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = strtotime('now'); $start = strtotime('1 January 2021'); $end = strtotime('31 January 2021'); if ($now >= $start && $now <= $end): echo 'true'; else: echo 'false'; endif; echo "\n"; $now = strtotime('now'); $start = strtotime('1 November 2020'); $end = strtotime('31 January 2021'); if ($now >= $start && $now <= $end): echo 'true'; else: echo 'false'; endif;

preferences:
28.59 ms | 404 KiB | 5 Q