3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo "Now: ", $now = strtotime("now"), "\n"; echo "Then: ", $then = strtotime("now -20 years"), "\n"; echo $now2 = strtotime("now +1 year"), "\n"; echo $then2 = strtotime("now -19 years"), "\n"; echo "Dif 1 ", $now-$then, "\n"; echo "Dif 2 ", $now2-$then2, "\n";
based on ZfaUJ
Output for 5.6.28, 7.0.20 - 7.1.7, 7.2.0
Now: 1453300464 Then: 822148464 1484922864 853770864 Dif 1 631152000 Dif 2 631152000
Output for 7.1.10

Process exited with code 137.
Output for 7.0.6
Now: 1463832313 Then: 832680313 1495368313 864216313 Dif 1 631152000 Dif 2 631152000
Output for 7.0.5
Now: 1459670371 Then: 828518371 1491206371 860054371 Dif 1 631152000 Dif 2 631152000
Output for 7.0.4
Now: 1457644055 Then: 826492055 1489180055 858028055 Dif 1 631152000 Dif 2 631152000
Output for 7.0.3
Now: 1458340962 Then: 827188962 1489876962 858724962 Dif 1 631152000 Dif 2 631152000
Output for 7.0.2
Now: 1458708610 Then: 827556610 1490244610 859092610 Dif 1 631152000 Dif 2 631152000
Output for 7.0.1
Now: 1458805927 Then: 827653927 1490341927 859189927 Dif 1 631152000 Dif 2 631152000
Output for 7.0.0
Now: 1459068302 Then: 827919902 1490604302 859455902 Dif 1 631148400 Dif 2 631148400
Output for 5.6.21
Now: 1462200869 Then: 831048869 1493736869 862584869 Dif 1 631152000 Dif 2 631152000
Output for 5.6.20
Now: 1460271720 Then: 829119720 1491807720 860655720 Dif 1 631152000 Dif 2 631152000
Output for 5.6.19
Now: 1457414253 Then: 826262253 1488950253 857798253 Dif 1 631152000 Dif 2 631152000
Output for 5.6.18
Now: 1458051411 Then: 826899411 1489587411 858435411 Dif 1 631152000 Dif 2 631152000
Output for 5.6.17
Now: 1458438543 Then: 827286543 1489974543 858822543 Dif 1 631152000 Dif 2 631152000
Output for 5.6.16
Now: 1459157686 Then: 828009286 1490693686 859545286 Dif 1 631148400 Dif 2 631148400
Output for 5.6.15
Now: 1459247078 Then: 828098678 1490783078 859634678 Dif 1 631148400 Dif 2 631148400
Output for 5.6.14
Now: 1460650031 Then: 829498031 1492186031 861034031 Dif 1 631152000 Dif 2 631152000
Output for 5.6.13
Now: 1460738780 Then: 829586780 1492274780 861122780 Dif 1 631152000 Dif 2 631152000
Output for 5.6.12
Now: 1461136616 Then: 829984616 1492672616 861520616 Dif 1 631152000 Dif 2 631152000
Output for 5.6.11
Now: 1461505356 Then: 830353356 1493041356 861889356 Dif 1 631152000 Dif 2 631152000
Output for 5.6.10
Now: 1461599304 Then: 830447304 1493135304 861983304 Dif 1 631152000 Dif 2 631152000
Output for 5.6.9
Now: 1461791794 Then: 830639794 1493327794 862175794 Dif 1 631152000 Dif 2 631152000
Output for 5.6.8
Now: 1461994947 Then: 830842947 1493530947 862378947 Dif 1 631152000 Dif 2 631152000
Output for 5.5.35
Now: 1463965217 Then: 832813217 1495501217 864349217 Dif 1 631152000 Dif 2 631152000
Output for 5.5.34
Now: 1460366210 Then: 829214210 1491902210 860750210 Dif 1 631152000 Dif 2 631152000
Output for 5.5.33
Now: 1457511768 Then: 826359768 1489047768 857895768 Dif 1 631152000 Dif 2 631152000
Output for 5.5.32
Now: 1458238567 Then: 827086567 1489774567 858622567 Dif 1 631152000 Dif 2 631152000
Output for 5.5.31
Now: 1458536587 Then: 827384587 1490072587 858920587 Dif 1 631152000 Dif 2 631152000
Output for 5.5.30
Now: 1459512943 Then: 828360943 1491048943 859896943 Dif 1 631152000 Dif 2 631152000
Output for 5.5.29
Now: 1460876630 Then: 829724630 1492412630 861260630 Dif 1 631152000 Dif 2 631152000
Output for 5.5.28
Now: 1461234980 Then: 830082980 1492770980 861618980 Dif 1 631152000 Dif 2 631152000
Output for 5.5.27
Now: 1461327202 Then: 830175202 1492863202 861711202 Dif 1 631152000 Dif 2 631152000
Output for 5.5.26
Now: 1461695400 Then: 830543400 1493231400 862079400 Dif 1 631152000 Dif 2 631152000
Output for 5.5.25
Now: 1461895015 Then: 830743015 1493431015 862279015 Dif 1 631152000 Dif 2 631152000
Output for 5.5.24
Now: 1464078512 Then: 832926512 1495614512 864462512 Dif 1 631152000 Dif 2 631152000
Output for 5.4.45
Now: 1453300466 Then: 822148466 1484922866 853770866 Dif 1 631152000 Dif 2 631152000
Output for 5.4.44
Now: 1453300467 Then: 822148467 1484922867 853770867 Dif 1 631152000 Dif 2 631152000
Output for 5.4.40 - 5.4.43
Now: 1453300468 Then: 822148468 1484922868 853770868 Dif 1 631152000 Dif 2 631152000
Output for 5.4.36 - 5.4.39
Now: 1453300469 Then: 822148469 1484922869 853770869 Dif 1 631152000 Dif 2 631152000
Output for 5.4.34 - 5.4.35
Now: 1453300470 Then: 822148470 1484922870 853770870 Dif 1 631152000 Dif 2 631152000
Output for 5.3.29, 5.4.26 - 5.4.32
Now: 1453300471 Then: 822148471 1484922871 853770871 Dif 1 631152000 Dif 2 631152000
Output for 5.3.28, 5.4.21 - 5.4.25
Now: 1453300472 Then: 822148472 1484922872 853770872 Dif 1 631152000 Dif 2 631152000
Output for 5.3.26 - 5.3.27, 5.4.16 - 5.4.20
Now: 1453300473 Then: 822148473 1484922873 853770873 Dif 1 631152000 Dif 2 631152000
Output for 5.3.22 - 5.3.25, 5.4.12 - 5.4.15
Now: 1453300474 Then: 822148474 1484922874 853770874 Dif 1 631152000 Dif 2 631152000