3v4l.org

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

preferences:
41 ms | 402 KiB | 5 Q