3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $i = 6; $endTime =strtotime("-$i+1 months"); echo $endTime; ?>
based on REnfO
Output for 5.6.28, 7.0.20 - 7.2.0
1445059419
Output for 7.0.6
1464960673
Output for 7.0.5
1462242598
Output for 7.0.4
1460292143
Output for 7.0.3
1460985134
Output for 7.0.2
1461350690
Output for 7.0.1
1461456179
Output for 7.0.0
1461721451
Output for 5.6.21
1464857340
Output for 5.6.20
1462834809
Output for 5.6.19
1460040739
Output for 5.6.18
1460692127
Output for 5.6.17
1461087085
Output for 5.6.16
1461814148
Output for 5.6.15
1461903781
Output for 5.6.14
1462171834
Output for 5.6.13
1463309584
Output for 5.6.12
1463704035
Output for 5.6.11
1463988323
Output for 5.6.10
1464167868
Output for 5.6.9
1464358506
Output for 5.6.8
1464559942
Output for 5.6.7
1466868044
Output for 5.5.35
1466598408
Output for 5.5.34
1462938265
Output for 5.5.33
1460158603
Output for 5.5.32
1460872520
Output for 5.5.31
1461183568
Output for 5.5.30
1462083837
Output for 5.5.29
1463446681
Output for 5.5.28
1463801565
Output for 5.5.27
1463896636
Output for 5.5.26
1464262990
Output for 5.5.25
1464457558
Output for 5.5.24
1466728926
Output for 5.4.40 - 5.4.45
1445059428
Output for 5.4.29 - 5.4.39
1445059429
Output for 5.4.21 - 5.4.28
1445059430
Output for 5.4.14 - 5.4.20
1445059431
Output for 5.4.7 - 5.4.13
1445059432
Output for 5.4.0 - 5.4.6
1445059433
Output for 5.3.23 - 5.3.29
1445059434
Output for 5.3.18 - 5.3.22
1445059435