3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date_now = date("Y-m-d"); // this format is string comparable if ('2023-04-08' > '2023-03-18') { echo 'greater than'; }else{ echo 'Less than'; }

preferences:
43.67 ms | 402 KiB | 5 Q