3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = strtotime("first day of this month"); echo $data; echo strtotime($data . " -1 year");
Output for 5.6.28, 7.0.20 - 7.2.0
1451656429
Output for 7.0.6
1462101497
Output for 7.0.5
1459495248103420159189
Output for 7.0.4
1456864029
Output for 7.0.3
1456869035
Output for 7.0.2
1456805029
Output for 7.0.1
1456816291
Output for 7.0.0
1456823096
Output for 5.6.21
1462112019
Output for 5.6.20
1459491759-6681431983
Output for 5.6.19
1456806907
Output for 5.6.18
1456839126
Output for 5.6.17
1456794246
Output for 5.6.16
1456826048
Output for 5.6.15
1456828997
Output for 5.6.14
145952434875019787992
Output for 5.6.13
1459526691148957883992
Output for 5.6.12
145949243914778165589
Output for 5.6.11
1459515576113772607191
Output for 5.6.10
145952314937184018392
Output for 5.6.9
145954269022699576794
Output for 5.6.8
1459486916156059445588
Output for 5.5.35
1462060870
Output for 5.5.34
1459499785246594808789
Output for 5.5.33
1456817639
Output for 5.5.32
1456853291
Output for 5.5.31
1456805571
Output for 5.5.30
1459510531-45434164781
Output for 5.5.29
1459491751-6933287983
Output for 5.5.28
145950434474894162390
Output for 5.5.27
1459510268-53731847981
Output for 5.5.26
145953277025224011993
Output for 5.5.25
145947309435448760787
Output for 5.5.24
1462088103
Output for 5.4.45
1451656433
Output for 5.4.44
1451656434
Output for 5.4.42 - 5.4.43
1451656436
Output for 5.4.41
1451656437
Output for 5.4.39 - 5.4.40
1451656438
Output for 5.4.38
1451656439
Output for 5.4.35 - 5.4.37
1451656440
Output for 5.3.29, 5.4.31 - 5.4.34
1451656441
Output for 5.4.26 - 5.4.30
1451656442
Output for 5.3.28, 5.4.22 - 5.4.25
1451656443
Output for 5.3.27, 5.4.17 - 5.4.21
1451656444
Output for 5.3.22 - 5.3.26, 5.4.12 - 5.4.16
1451656445
Output for 5.3.21, 5.4.11
1451656446