3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo date('now'); die; echo $phpdate = strtotime('-1 day'); echo PHP_EOL; $mysqldate = date('Y-m-d H:i:s', $phpdate); function get_day_name($timestamp) { if($date == date('d/m/Y')) { $day_name = 'Today'; } else if($date == date('d/m/Y',time() - (24 * 60 * 60))) { $day_name = 'Yesterday'; } return $day_name; } print date('G:i:s', $phpdate).' '.get_day_name($phpdate); ?>
Output for 5.1.0 - 7.1.0
1220133
Output for 4.3.0 - 5.0.5
12o3