3v4l.org

run code in 200+ PHP versions simultaneously
<?php $date_now = new DateTime(); echo $date_now(); $date2 = new DateTime("01/02/2016"); if ($date_now > $date2) { echo 'greater than'; }else{ echo 'Less than'; }
based on 5rQVP
Output for 7.2.0 - 7.4.6
Fatal error: Uncaught Error: Function name must be a string in /in/PBZkD:3 Stack trace: #0 {main} thrown in /in/PBZkD on line 3
Process exited with code 255.