3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo date('Y-m-d',strtotime('-1 saturday')); echo "\n"; echo date('Y-m-d H:i:s');
Output for 5.1.0 - 5.6.19, 5.6.21 - 7.1.0
2014-05-10 2014-05-11 15:05:26
Output for 5.6.20
2014-05-10 2014-05-11 15:05:27
Output for 4.3.0 - 5.0.5
1970-01-01 2014-05-11 15:05:26