3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date = date("Y-m-d"); $date2 = strtotime('-5 days', $date); echo date("Y-m-d H:i:s", $date2);
Output for 5.1.0 - 7.1.0
Notice: A non well formed numeric value encountered in /in/Z2asM on line 3 1969-12-27 01:33:34
Output for 4.3.0 - 4.4.9, 5.0.3 - 5.0.5
1969-12-27 01:33:34
Output for 5.0.0 - 5.0.2
1969-12-27 00:00:00