3v4l.org

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

preferences:
44.52 ms | 1977 KiB | 5 Q