3v4l.org

run code in 300+ PHP versions simultaneously
<?php $today = date('Y-n-j'); $last1 = "2021-11-1"; if($today > strtotime($last1)) echo 'true';

preferences:
65.63 ms | 459 KiB | 5 Q