3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(strtotime('midnight 7 days ago'));
based on o9RmM
Output for 5.4.7 - 5.4.45, 5.6.28, 7.0.20 - 7.2.0
int(1441058400)
Output for 7.0.6
int(1461621600)
Output for 7.0.5
int(1458946800)
Output for 7.0.4
int(1456959600)
Output for 7.0.3
int(1457650800)
Output for 7.0.2
int(1457910000)
Output for 7.0.1
int(1458082800)
Output for 7.0.0
int(1458342000)
Output for 5.6.21
int(1461448800)
Output for 5.6.20
int(1459548000)
Output for 5.6.19
int(1456700400)
Output for 5.6.18
int(1457305200)
Output for 5.6.17
int(1457737200)
Output for 5.6.16
int(1458428400)
Output for 5.6.15
int(1458514800)
Output for 5.6.14
int(1458860400)
Output for 5.6.13
int(1460066400)
Output for 5.6.12
int(1460412000)
Output for 5.6.11
int(1460671200)
Output for 5.6.10
int(1460844000)
Output for 5.6.9
int(1461103200)
Output for 5.6.8
int(1461276000)
Output for 5.6.7
int(1463436000)
Output for 5.5.35
int(1463263200)
Output for 5.5.34
int(1459634400)
Output for 5.5.33
int(1456786800)
Output for 5.5.32
int(1457478000)
Output for 5.5.31
int(1457823600)
Output for 5.5.30
int(1458774000)
Output for 5.5.29
int(1460152800)
Output for 5.5.28
int(1460498400)
Output for 5.5.27
int(1460584800)
Output for 5.5.26
int(1461016800)
Output for 5.5.25
int(1461189600)
Output for 5.5.24
int(1461362400)
Output for 5.4.2 - 5.4.6
int(1445292000)
Output for 5.3.17 - 5.3.29
int(1442095200)