3v4l.org

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