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: ", $dif1 = ($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 ", $dif1 - $dif2, "hours\n"; echo "Dif1 to simple ", $dif1 - $simple, "hours\n";
based on iCUMH
Output for 5.6.28, 7.0.20 - 7.2.0
Now: 1453302694 Then: 822150694 400 years ago: -11169475678 420 years ago: -11800627678 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 7.0.6
Now: 1463832326 Then: 832680326 400 years ago: -11158942446 420 years ago: -11790094446 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 7.0.5
Now: 1459670382 Then: 828518382 400 years ago: -11163104390 420 years ago: -11794256390 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 7.0.4
Now: 1457644066 Then: 826492066 400 years ago: -11165134306 420 years ago: -11796286306 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 7.0.3
Now: 1458340975 Then: 827188975 400 years ago: -11164437397 420 years ago: -11795589397 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 7.0.2
Now: 1458708623 Then: 827556623 400 years ago: -11164069749 420 years ago: -11795221749 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 7.0.1
Now: 1458805938 Then: 827653938 400 years ago: -11163972434 420 years ago: -11795124434 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 7.0.0
Now: 1459068311 Then: 827919911 400 years ago: -11163706461 420 years ago: -11794858461 Dif 1: 175319 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 -1hours Dif1 to simple 119hours
Output for 5.6.21
Now: 1462200880 Then: 831048880 400 years ago: -11160573892 420 years ago: -11791725892 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.6.20
Now: 1460271731 Then: 829119731 400 years ago: -11162503041 420 years ago: -11793655041 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.6.19
Now: 1457414265 Then: 826262265 400 years ago: -11165364107 420 years ago: -11796516107 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.6.18
Now: 1458051423 Then: 826899423 400 years ago: -11164726949 420 years ago: -11795878949 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.6.17
Now: 1458438558 Then: 827286558 400 years ago: -11164339814 420 years ago: -11795491814 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.6.16
Now: 1459157697 Then: 828009297 400 years ago: -11163617075 420 years ago: -11794769075 Dif 1: 175319 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 -1hours Dif1 to simple 119hours
Output for 5.6.15
Now: 1459247089 Then: 828098689 400 years ago: -11163527683 420 years ago: -11794679683 Dif 1: 175319 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 -1hours Dif1 to simple 119hours
Output for 5.6.14
Now: 1460650042 Then: 829498042 400 years ago: -11162124730 420 years ago: -11793276730 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.6.13
Now: 1460738792 Then: 829586792 400 years ago: -11162035980 420 years ago: -11793187980 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.6.12
Now: 1461136626 Then: 829984626 400 years ago: -11161638146 420 years ago: -11792790146 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.6.11
Now: 1461505377 Then: 830353377 400 years ago: -11161269395 420 years ago: -11792421395 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.6.10
Now: 1461599315 Then: 830447315 400 years ago: -11161175457 420 years ago: -11792327457 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.6.9
Now: 1461791817 Then: 830639817 400 years ago: -11160982955 420 years ago: -11792134955 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.6.8
Now: 1461994957 Then: 830842957 400 years ago: -11160779815 420 years ago: -11791931815 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.5.35
Now: 1463965231 Then: 832813231 400 years ago: -11158809541 420 years ago: -11789961541 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.5.34
Now: 1460366221 Then: 829214221 400 years ago: -11162408551 420 years ago: -11793560551 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.5.33
Now: 1457511779 Then: 826359779 400 years ago: -11165266593 420 years ago: -11796418593 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.5.32
Now: 1458238580 Then: 827086580 400 years ago: -11164539792 420 years ago: -11795691792 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.5.31
Now: 1458536604 Then: 827384604 400 years ago: -11164241768 420 years ago: -11795393768 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.5.30
Now: 1459512954 Then: 828360954 400 years ago: -11163261818 420 years ago: -11794413818 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.5.29
Now: 1460876642 Then: 829724642 400 years ago: -11161898130 420 years ago: -11793050130 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.5.28
Now: 1461234991 Then: 830082991 400 years ago: -11161539781 420 years ago: -11792691781 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.5.27
Now: 1461327224 Then: 830175224 400 years ago: -11161447548 420 years ago: -11792599548 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.5.26
Now: 1461695409 Then: 830543409 400 years ago: -11161079363 420 years ago: -11792231363 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.5.25
Now: 1461895025 Then: 830743025 400 years ago: -11160879747 420 years ago: -11792031747 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.5.24
Now: 1464078524 Then: 832926524 400 years ago: -11158696248 420 years ago: -11789848248 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.4.44 - 5.4.45
Now: 1453302698 Then: 822150698 400 years ago: -11169475674 420 years ago: -11800627674 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.4.41 - 5.4.43
Now: 1453302700 Then: 822150700 400 years ago: -11169475672 420 years ago: -11800627672 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.4.40
Now: 1453302701 Then: 822150701 400 years ago: -11169475671 420 years ago: -11800627671 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.4.38 - 5.4.39
Now: 1453302702 Then: 822150702 400 years ago: -11169475670 420 years ago: -11800627670 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.4.36 - 5.4.37
Now: 1453302703 Then: 822150703 400 years ago: -11169475669 420 years ago: -11800627669 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.4.34 - 5.4.35
Now: 1453302704 Then: 822150704 400 years ago: -11169475668 420 years ago: -11800627668 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.3.29, 5.4.31 - 5.4.32
Now: 1453302705 Then: 822150705 400 years ago: -11169475667 420 years ago: -11800627667 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.4.29 - 5.4.30
Now: 1453302706 Then: 822150706 400 years ago: -11169475666 420 years ago: -11800627666 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.4.26 - 5.4.28
Now: 1453302707 Then: 822150707 400 years ago: -11169475665 420 years ago: -11800627665 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.4.23 - 5.4.25
Now: 1453302708 Then: 822150708 400 years ago: -11169475664 420 years ago: -11800627664 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.3.28, 5.4.20 - 5.4.22
Now: 1453302709 Then: 822150709 400 years ago: -11169475663 420 years ago: -11800627663 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.3.27, 5.4.17 - 5.4.19
Now: 1453302710 Then: 822150710 400 years ago: -11169475662 420 years ago: -11800627662 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.3.24 - 5.3.26, 5.4.14 - 5.4.16
Now: 1453302711 Then: 822150711 400 years ago: -11169475661 420 years ago: -11800627661 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours
Output for 5.3.22 - 5.3.23, 5.4.12 - 5.4.13
Now: 1453302712 Then: 822150712 400 years ago: -11169475660 420 years ago: -11800627660 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 0hours Dif1 to simple 120hours