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 "400 years ago: ", $now2 = strtotime("now -400 years"), "\n"; echo "420 years ago: ", $then2 = strtotime("now -420 years"), "\n"; echo "Dif 1: ", ($now-$then) / 60 / 60, " hours\n"; echo "Dif 2: ", $dif2 = ($now2-$then2) / 60 / 60, " hours\n"; echo "Simple: ", $simple = 20*365*24, " hours\n"; echo "Dif1 to dif2 ", $dif2 - $simple, "hours\n"; echo "Dif1 to simple ", $dif2 - $simple, "hours\n";
based on 19AU8
Output for 5.6.28, 7.0.20 - 7.2.0
Now: 1453302634 Then: 822150634 400 years ago: -11169475738 420 years ago: -11800627738 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 7.0.6
Now: 1463832320 Then: 832680320 400 years ago: -11158942452 420 years ago: -11790094452 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 7.0.5
Now: 1459670377 Then: 828518377 400 years ago: -11163104395 420 years ago: -11794256395 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 7.0.4
Now: 1457644060 Then: 826492060 400 years ago: -11165134312 420 years ago: -11796286312 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 7.0.3
Now: 1458340969 Then: 827188969 400 years ago: -11164437403 420 years ago: -11795589403 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 7.0.2
Now: 1458708617 Then: 827556617 400 years ago: -11164069755 420 years ago: -11795221755 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 7.0.1
Now: 1458805932 Then: 827653932 400 years ago: -11163972440 420 years ago: -11795124440 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 7.0.0
Now: 1459068306 Then: 827919906 400 years ago: -11163706466 420 years ago: -11794858466 Dif 1: 175319 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.6.21
Now: 1462200875 Then: 831048875 400 years ago: -11160573897 420 years ago: -11791725897 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.6.20
Now: 1460271725 Then: 829119725 400 years ago: -11162503047 420 years ago: -11793655047 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.6.19
Now: 1457414259 Then: 826262259 400 years ago: -11165364113 420 years ago: -11796516113 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.6.18
Now: 1458051418 Then: 826899418 400 years ago: -11164726954 420 years ago: -11795878954 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.6.17
Now: 1458438551 Then: 827286551 400 years ago: -11164339821 420 years ago: -11795491821 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.6.16
Now: 1459157692 Then: 828009292 400 years ago: -11163617080 420 years ago: -11794769080 Dif 1: 175319 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.6.15
Now: 1459247084 Then: 828098684 400 years ago: -11163527688 420 years ago: -11794679688 Dif 1: 175319 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.6.14
Now: 1460650037 Then: 829498037 400 years ago: -11162124735 420 years ago: -11793276735 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.6.13
Now: 1460738786 Then: 829586786 400 years ago: -11162035986 420 years ago: -11793187986 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.6.12
Now: 1461136621 Then: 829984621 400 years ago: -11161638151 420 years ago: -11792790151 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.6.11
Now: 1461505371 Then: 830353371 400 years ago: -11161269401 420 years ago: -11792421401 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.6.10
Now: 1461599309 Then: 830447309 400 years ago: -11161175463 420 years ago: -11792327463 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.6.9
Now: 1461791811 Then: 830639811 400 years ago: -11160982961 420 years ago: -11792134961 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.6.8
Now: 1461994952 Then: 830842952 400 years ago: -11160779820 420 years ago: -11791931820 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.5.35
Now: 1463965225 Then: 832813225 400 years ago: -11158809547 420 years ago: -11789961547 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.5.34
Now: 1460366215 Then: 829214215 400 years ago: -11162408557 420 years ago: -11793560557 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.5.33
Now: 1457511774 Then: 826359774 400 years ago: -11165266598 420 years ago: -11796418598 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.5.32
Now: 1458238573 Then: 827086573 400 years ago: -11164539799 420 years ago: -11795691799 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.5.31
Now: 1458536597 Then: 827384597 400 years ago: -11164241775 420 years ago: -11795393775 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.5.30
Now: 1459512949 Then: 828360949 400 years ago: -11163261823 420 years ago: -11794413823 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.5.29
Now: 1460876636 Then: 829724636 400 years ago: -11161898136 420 years ago: -11793050136 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.5.28
Now: 1461234985 Then: 830082985 400 years ago: -11161539787 420 years ago: -11792691787 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.5.27
Now: 1461327218 Then: 830175218 400 years ago: -11161447554 420 years ago: -11792599554 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.5.26
Now: 1461695405 Then: 830543405 400 years ago: -11161079367 420 years ago: -11792231367 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.5.25
Now: 1461895021 Then: 830743021 400 years ago: -11160879751 420 years ago: -11792031751 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.5.24
Now: 1464078520 Then: 832926520 400 years ago: -11158696252 420 years ago: -11789848252 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.4.45
Now: 1453302639 Then: 822150639 400 years ago: -11169475733 420 years ago: -11800627733 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.4.44
Now: 1453302640 Then: 822150640 400 years ago: -11169475732 420 years ago: -11800627732 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.4.42 - 5.4.43
Now: 1453302642 Then: 822150642 400 years ago: -11169475730 420 years ago: -11800627730 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.4.41
Now: 1453302643 Then: 822150643 400 years ago: -11169475729 420 years ago: -11800627729 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.4.40
Now: 1453302644 Then: 822150644 400 years ago: -11169475728 420 years ago: -11800627728 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.4.37 - 5.4.39
Now: 1453302645 Then: 822150645 400 years ago: -11169475727 420 years ago: -11800627727 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.4.35 - 5.4.36
Now: 1453302646 Then: 822150646 400 years ago: -11169475726 420 years ago: -11800627726 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.4.34
Now: 1453302647 Then: 822150647 400 years ago: -11169475725 420 years ago: -11800627725 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.3.29, 5.4.29 - 5.4.32
Now: 1453302648 Then: 822150648 400 years ago: -11169475724 420 years ago: -11800627724 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.4.26 - 5.4.28
Now: 1453302649 Then: 822150649 400 years ago: -11169475723 420 years ago: -11800627723 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.3.28, 5.4.23 - 5.4.25
Now: 1453302650 Then: 822150650 400 years ago: -11169475722 420 years ago: -11800627722 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.4.19 - 5.4.22
Now: 1453302651 Then: 822150651 400 years ago: -11169475721 420 years ago: -11800627721 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.3.26 - 5.3.27, 5.4.16 - 5.4.18
Now: 1453302652 Then: 822150652 400 years ago: -11169475720 420 years ago: -11800627720 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours
Output for 5.3.22 - 5.3.25, 5.4.12 - 5.4.15
Now: 1453302653 Then: 822150653 400 years ago: -11169475719 420 years ago: -11800627719 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 120hours Dif1 to simple 120hours