3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $sunday_before_epoch = strtotime('+100000 weeks', strtotime('last sunday', strtotime('epoch'))); echo date('l Y-m-d H:i:s', $sunday_before_epoch);
based on GiTTd
Output for 4.3.0 - 5.0.5, 5.2.6 - 7.2.0
Sunday 3886-07-11 00:00:00
Output for 5.1.3 - 5.2.5
Thursday 1970-01-01 01:00:00
Output for 5.1.0 - 5.1.2
Sunday 1915-05-02 22:58:59