3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //$dat = new DateTime(); //$date_format = "d.m.Y H:i:s"; //$dat = $dat->format($date_format); $dat = date($date_format, strtotime('now')); $che = date($date_format, strtotime('31.05.2013 23:59:59')); echo $dat.'<br>'; echo $che; if($dat > $che) { echo($dat.' > '.$che); }else{ echo($dat.' < '.$che); }
Output for 5.0.4 - 5.6.25, hhvm-3.10.0, 7.0.0 - 7.1.0
Notice: Undefined variable: date_format in /in/ZZcqa on line 6 Notice: Undefined variable: date_format in /in/ZZcqa on line 7 <br> <
Output for hhvm-3.12.0
Notice: Undefined variable: date_format in /in/ZZcqa on line 6 Warning: date() expects parameter 1 to be string, null given in /in/ZZcqa on line 6 Notice: Undefined variable: date_format in /in/ZZcqa on line 7 Warning: date() expects parameter 1 to be string, null given in /in/ZZcqa on line 7 <br> <
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: date_format in /in/ZZcqa on line 6 Notice: Undefined variable: date_format in /in/ZZcqa on line 7 <br> <