3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo $now = strtotime("now"), "\n"; echo $then = strtotime("now -20 years"), "\n"; echo $now2 = strtotime("now +1 year"), "\n"; echo $then2 = strtotime("now -19 years"), "\n"; echo $now-$then, "\n"; echo $now2-$then2, "\n";
Output for 7.3.1
1453300381 822148381 1484922782 853770782 631152000 631152000
Output for 7.2.1, 7.3.0
1453300382 822148382 1484922782 853770782 631152000 631152000
Output for 5.5.0 - 7.2.0, 7.2.2 - 7.2.13
1453300381 822148381 1484922781 853770781 631152000 631152000
Output for 5.4.45
1453300384 822148384 1484922784 853770784 631152000 631152000
Output for 5.4.44
1453300385 822148385 1484922785 853770785 631152000 631152000
Output for 5.4.41 - 5.4.43
1453300386 822148386 1484922786 853770786 631152000 631152000
Output for 5.4.40
1453300387 822148387 1484922787 853770787 631152000 631152000
Output for 5.4.38 - 5.4.39
1453300388 822148388 1484922788 853770788 631152000 631152000
Output for 5.4.36 - 5.4.37
1453300389 822148389 1484922789 853770789 631152000 631152000
Output for 5.4.34 - 5.4.35
1453300390 822148390 1484922790 853770790 631152000 631152000
Output for 5.3.29, 5.4.30 - 5.4.32
1453300391 822148391 1484922791 853770791 631152000 631152000
Output for 5.4.26 - 5.4.29
1453300392 822148392 1484922792 853770792 631152000 631152000
Output for 5.3.28, 5.4.23 - 5.4.25
1453300393 822148393 1484922793 853770793 631152000 631152000
Output for 5.4.20 - 5.4.22
1453300394 822148394 1484922794 853770794 631152000 631152000
Output for 5.3.27, 5.4.17 - 5.4.19
1453300395 822148395 1484922795 853770795 631152000 631152000
Output for 5.3.24 - 5.3.26, 5.4.13 - 5.4.16
1453300396 822148396 1484922796 853770796 631152000 631152000
Output for 5.3.22 - 5.3.23, 5.4.12
1453300397 822148397 1484922797 853770797 631152000 631152000