3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo $phpdate = strtotime('-2 day'); echo PHP_EOL; $mysqldate = date('Y-m-d H:i:s', $phpdate); $phpdate = time(); echo $last_midnight = $now - ($now % (24*60*60)); ?>
Output for 5.0.4 - 5.4.17, 5.4.19 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
1387231239 Notice: Undefined variable: now in /in/tYgdX on line 11 Notice: Undefined variable: now in /in/tYgdX on line 11 0
Output for 5.4.18, hhvm-3.10.0
1387231240 Notice: Undefined variable: now in /in/tYgdX on line 11 Notice: Undefined variable: now in /in/tYgdX on line 11 0
Output for 4.3.10 - 4.4.9, 5.0.3
1387231239 Notice: Undefined variable: now in /in/tYgdX on line 11 Notice: Undefined variable: now in /in/tYgdX on line 11 0
Output for 5.0.2
1387148400 Notice: Undefined variable: now in /in/tYgdX on line 11 Notice: Undefined variable: now in /in/tYgdX on line 11 0
Output for 5.0.0 - 5.0.1
1387148400 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/tYgdX on line 5 PHP_EOL Notice: Undefined variable: now in /in/tYgdX on line 11 Notice: Undefined variable: now in /in/tYgdX on line 11 0
Output for 4.3.0 - 4.3.9
1387231239 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/tYgdX on line 5 PHP_EOL Notice: Undefined variable: now in /in/tYgdX on line 11 Notice: Undefined variable: now in /in/tYgdX on line 11 0