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.5.0 - 7.3.0
Now: 1453300464 Then: 822148464 1484922864 853770864 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