3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //************** 2017 ************** //SasanicA, Inc. //********************************** $format = 'Y-m-d H:i:s'; $date = date_create_from_format($format, '2009-02-15 15:16:17'); echo date_format($date, $format); $date2 = date('Y-m-d H:i:s'); if($date2 > $date){ echo ' --- YESSS --- '; echo $date2; } else{ echo ' --- NO'; } //end ?>
based on FQat6
Output for 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.30 - 7.3.0beta1
2009-02-15 15:16:17 --- NO