3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo time(); echo "\n"; echo strtotime("this week"); echo "\n"; echo time()-strtotime("this week"); echo "\n"; echo time()-(time()-strtotime("this week")); ?>
Output for 5.3.0 - 7.1.0
1374617770 1374444970 172800 1374444970
Output for 4.3.5 - 4.4.9, 5.0.3 - 5.2.17
1374617770 1374617770 0 1374617770
Output for 5.0.0 - 5.0.2
1374617770 1374616800 970 1374616800
Output for 4.3.0 - 4.3.4
1374617770 1375222570 -604800 1375222570