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 gsUP0
Output for 5.6.28, 7.0.20 - 7.2.0
Now: 1453300450 Then: 822148450 1484922850 853770850 Dif 1631152000 Dif 2631152000
Output for 7.0.6
Now: 1463832313 Then: 832680313 1495368313 864216313 Dif 1631152000 Dif 2631152000
Output for 7.0.5
Now: 1459670370 Then: 828518370 1491206370 860054370 Dif 1631152000 Dif 2631152000
Output for 7.0.4
Now: 1457644054 Then: 826492054 1489180054 858028054 Dif 1631152000 Dif 2631152000
Output for 7.0.3
Now: 1458340959 Then: 827188959 1489876959 858724959 Dif 1631152000 Dif 2631152000
Output for 7.0.2
Now: 1458708609 Then: 827556609 1490244609 859092609 Dif 1631152000 Dif 2631152000
Output for 7.0.1
Now: 1458805926 Then: 827653926 1490341926 859189926 Dif 1631152000 Dif 2631152000
Output for 7.0.0
Now: 1459068301 Then: 827919901 1490604301 859455901 Dif 1631148400 Dif 2631148400
Output for 5.6.21
Now: 1462200869 Then: 831048869 1493736869 862584869 Dif 1631152000 Dif 2631152000
Output for 5.6.20
Now: 1460271719 Then: 829119719 1491807719 860655719 Dif 1631152000 Dif 2631152000
Output for 5.6.19
Now: 1457414253 Then: 826262253 1488950253 857798253 Dif 1631152000 Dif 2631152000
Output for 5.6.18
Now: 1458051410 Then: 826899410 1489587410 858435410 Dif 1631152000 Dif 2631152000
Output for 5.6.17
Now: 1458438543 Then: 827286543 1489974543 858822543 Dif 1631152000 Dif 2631152000
Output for 5.6.16
Now: 1459157685 Then: 828009285 1490693685 859545285 Dif 1631148400 Dif 2631148400
Output for 5.6.15
Now: 1459247078 Then: 828098678 1490783078 859634678 Dif 1631148400 Dif 2631148400
Output for 5.6.14
Now: 1460650031 Then: 829498031 1492186031 861034031 Dif 1631152000 Dif 2631152000
Output for 5.6.13
Now: 1460738780 Then: 829586780 1492274780 861122780 Dif 1631152000 Dif 2631152000
Output for 5.6.12
Now: 1461136615 Then: 829984615 1492672615 861520615 Dif 1631152000 Dif 2631152000
Output for 5.6.11
Now: 1461505355 Then: 830353355 1493041355 861889355 Dif 1631152000 Dif 2631152000
Output for 5.6.10
Now: 1461599304 Then: 830447304 1493135304 861983304 Dif 1631152000 Dif 2631152000
Output for 5.6.9
Now: 1461791793 Then: 830639793 1493327793 862175793 Dif 1631152000 Dif 2631152000
Output for 5.6.8
Now: 1461994946 Then: 830842946 1493530946 862378946 Dif 1631152000 Dif 2631152000
Output for 5.5.35
Now: 1463965216 Then: 832813216 1495501216 864349216 Dif 1631152000 Dif 2631152000
Output for 5.5.34
Now: 1460366209 Then: 829214209 1491902209 860750209 Dif 1631152000 Dif 2631152000
Output for 5.5.33
Now: 1457511767 Then: 826359767 1489047767 857895767 Dif 1631152000 Dif 2631152000
Output for 5.5.32
Now: 1458238566 Then: 827086566 1489774566 858622566 Dif 1631152000 Dif 2631152000
Output for 5.5.31
Now: 1458536586 Then: 827384586 1490072586 858920586 Dif 1631152000 Dif 2631152000
Output for 5.5.30
Now: 1459512943 Then: 828360943 1491048943 859896943 Dif 1631152000 Dif 2631152000
Output for 5.5.29
Now: 1460876630 Then: 829724630 1492412630 861260630 Dif 1631152000 Dif 2631152000
Output for 5.5.28
Now: 1461234979 Then: 830082979 1492770979 861618979 Dif 1631152000 Dif 2631152000
Output for 5.5.27
Now: 1461327202 Then: 830175202 1492863202 861711202 Dif 1631152000 Dif 2631152000
Output for 5.5.26
Now: 1461695399 Then: 830543399 1493231399 862079399 Dif 1631152000 Dif 2631152000
Output for 5.5.25
Now: 1461895015 Then: 830743015 1493431015 862279015 Dif 1631152000 Dif 2631152000
Output for 5.5.24
Now: 1464078511 Then: 832926511 1495614511 864462511 Dif 1631152000 Dif 2631152000
Output for 5.4.45
Now: 1453300453 Then: 822148453 1484922853 853770853 Dif 1631152000 Dif 2631152000
Output for 5.4.42 - 5.4.44
Now: 1453300454 Then: 822148454 1484922854 853770854 Dif 1631152000 Dif 2631152000
Output for 5.4.41
Now: 1453300455 Then: 822148455 1484922855 853770855 Dif 1631152000 Dif 2631152000
Output for 5.4.39 - 5.4.40
Now: 1453300456 Then: 822148456 1484922856 853770856 Dif 1631152000 Dif 2631152000
Output for 5.4.36 - 5.4.38
Now: 1453300457 Then: 822148457 1484922857 853770857 Dif 1631152000 Dif 2631152000
Output for 5.4.34 - 5.4.35
Now: 1453300458 Then: 822148458 1484922858 853770858 Dif 1631152000 Dif 2631152000
Output for 5.3.29, 5.4.31 - 5.4.32
Now: 1453300459 Then: 822148459 1484922859 853770859 Dif 1631152000 Dif 2631152000
Output for 5.4.27 - 5.4.30
Now: 1453300460 Then: 822148460 1484922860 853770860 Dif 1631152000 Dif 2631152000
Output for 5.4.23 - 5.4.26
Now: 1453300461 Then: 822148461 1484922861 853770861 Dif 1631152000 Dif 2631152000
Output for 5.3.28, 5.4.20 - 5.4.22
Now: 1453300462 Then: 822148462 1484922862 853770862 Dif 1631152000 Dif 2631152000
Output for 5.3.27, 5.4.17 - 5.4.19
Now: 1453300463 Then: 822148463 1484922863 853770863 Dif 1631152000 Dif 2631152000
Output for 5.3.22 - 5.3.26, 5.4.12 - 5.4.16
Now: 1453300464 Then: 822148464 1484922864 853770864 Dif 1631152000 Dif 2631152000