3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $begin = strtotime('-4 weeks'); $end = strtotime('+4 weeks'); // $iterator = new DateInterval(); var_dump($begin);die(); new DatePeriod();
Output for 5.6.28, 7.0.14 - 7.1.10
int(1404144748)
Output for 7.0.6
int(1459846527)
Output for 7.0.5
int(1457217506)
Output for 7.0.4
int(1455182421)
Output for 7.0.3
int(1455876009)
Output for 7.0.2
int(1456243085)
Output for 7.0.1
int(1456345840)
Output for 7.0.0
int(1456610550)
Output for 5.6.21
int(1459743291)
Output for 5.6.20
int(1457818734)
Output for 5.6.19
int(1454952384)
Output for 5.6.18
int(1455587734)
Output for 5.6.17
int(1455977601)
Output for 5.6.16
int(1456703975)
Output for 5.6.15
int(1456793693)
Output for 5.6.14
int(1457147561)
Output for 5.6.13
int(1458284882)
Output for 5.6.12
int(1458680335)
Output for 5.6.11
int(1458964743)
Output for 5.6.10
int(1459140268)
Output for 5.6.9
int(1459331052)
Output for 5.6.8
int(1459533240)
Output for 5.5.35
int(1461484904)
Output for 5.5.34
int(1457913619)
Output for 5.5.33
int(1455049340)
Output for 5.5.32
int(1455764968)
Output for 5.5.31
int(1456073828)
Output for 5.5.30
int(1457059886)
Output for 5.5.29
int(1458422156)
Output for 5.5.28
int(1458778661)
Output for 5.5.27
int(1458873638)
Output for 5.5.26
int(1459235549)
Output for 5.5.25
int(1459431453)
Output for 5.5.24
int(1461617447)
Output for 5.4.45
int(1440408173)
Output for 5.4.44
int(1440408169)
Output for 5.4.43
int(1440408163)
Output for 5.4.42
int(1433107919)
Output for 5.4.41
int(1431259046)
Output for 5.4.40
int(1429162208)
Output for 5.4.39
int(1429162207)
Output for 5.4.38
int(1422658370)
Output for 5.4.36 - 5.4.37
int(1420587769)
Output for 5.4.35
int(1413548253)
Output for 5.4.34
int(1413496181)
Output for 5.3.29, 5.4.32
int(1406810939)
Output for 5.4.18 - 5.4.31
int(1404144752)
Output for 5.3.25 - 5.3.28, 5.4.0 - 5.4.17
int(1404144753)
Output for 5.3.4 - 5.3.24
int(1404144754)
Output for 5.1.3 - 5.3.3
int(1404144755)
Output for 4.3.1 - 4.4.9, 5.0.3 - 5.1.2
int(1404144756)
Output for 5.0.0 - 5.0.2
int(1404079200)
Output for 4.3.0
int(1440408162)