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 ", $dif1 - $dif2, "hours\n"; echo "Dif1 to simple ", $dif2 - $simple, "hours\n";
based on p2kjF
Output for 7.0.20 - 7.2.0
Now: 1453302665 Then: 822150665 400 years ago: -11169475707 420 years ago: -11800627707 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 7.0.6
Now: 1463832325 Then: 832680325 400 years ago: -11158942447 420 years ago: -11790094447 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 7.0.5
Now: 1459670381 Then: 828518381 400 years ago: -11163104391 420 years ago: -11794256391 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 7.0.4
Now: 1457644064 Then: 826492064 400 years ago: -11165134308 420 years ago: -11796286308 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 7.0.3
Now: 1458340973 Then: 827188973 400 years ago: -11164437399 420 years ago: -11795589399 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 7.0.2
Now: 1458708621 Then: 827556621 400 years ago: -11164069751 420 years ago: -11795221751 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 7.0.1
Now: 1458805936 Then: 827653936 400 years ago: -11163972436 420 years ago: -11795124436 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 7.0.0
Now: 1459068310 Then: 827919910 400 years ago: -11163706462 420 years ago: -11794858462 Dif 1: 175319 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.6.21
Now: 1462200879 Then: 831048879 400 years ago: -11160573893 420 years ago: -11791725893 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.6.20
Now: 1460271729 Then: 829119729 400 years ago: -11162503043 420 years ago: -11793655043 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.6.19
Now: 1457414263 Then: 826262263 400 years ago: -11165364109 420 years ago: -11796516109 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.6.18
Now: 1458051422 Then: 826899422 400 years ago: -11164726950 420 years ago: -11795878950 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.6.17
Now: 1458438556 Then: 827286556 400 years ago: -11164339816 420 years ago: -11795491816 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.6.16
Now: 1459157695 Then: 828009295 400 years ago: -11163617077 420 years ago: -11794769077 Dif 1: 175319 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.6.15
Now: 1459247087 Then: 828098687 400 years ago: -11163527685 420 years ago: -11794679685 Dif 1: 175319 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.6.14
Now: 1460650041 Then: 829498041 400 years ago: -11162124731 420 years ago: -11793276731 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.6.13
Now: 1460738790 Then: 829586790 400 years ago: -11162035982 420 years ago: -11793187982 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.6.12
Now: 1461136625 Then: 829984625 400 years ago: -11161638147 420 years ago: -11792790147 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.6.11
Now: 1461505375 Then: 830353375 400 years ago: -11161269397 420 years ago: -11792421397 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.6.10
Now: 1461599313 Then: 830447313 400 years ago: -11161175459 420 years ago: -11792327459 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.6.9
Now: 1461791815 Then: 830639815 400 years ago: -11160982957 420 years ago: -11792134957 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.6.8
Now: 1461994956 Then: 830842956 400 years ago: -11160779816 420 years ago: -11791931816 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.5.35
Now: 1463965230 Then: 832813230 400 years ago: -11158809542 420 years ago: -11789961542 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.5.34
Now: 1460366219 Then: 829214219 400 years ago: -11162408553 420 years ago: -11793560553 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.5.33
Now: 1457511778 Then: 826359778 400 years ago: -11165266594 420 years ago: -11796418594 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.5.32
Now: 1458238578 Then: 827086578 400 years ago: -11164539794 420 years ago: -11795691794 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.5.31
Now: 1458536602 Then: 827384602 400 years ago: -11164241770 420 years ago: -11795393770 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.5.30
Now: 1459512952 Then: 828360952 400 years ago: -11163261820 420 years ago: -11794413820 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.5.29
Now: 1460876641 Then: 829724641 400 years ago: -11161898131 420 years ago: -11793050131 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.5.28
Now: 1461234990 Then: 830082990 400 years ago: -11161539782 420 years ago: -11792691782 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.5.27
Now: 1461327222 Then: 830175222 400 years ago: -11161447550 420 years ago: -11792599550 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.5.26
Now: 1461695408 Then: 830543408 400 years ago: -11161079364 420 years ago: -11792231364 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.5.25
Now: 1461895024 Then: 830743024 400 years ago: -11160879748 420 years ago: -11792031748 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.5.24
Now: 1464078523 Then: 832926523 400 years ago: -11158696249 420 years ago: -11789848249 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.4.45
Now: 1453302666 Then: 822150666 400 years ago: -11169475706 420 years ago: -11800627706 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.4.44
Now: 1453302667 Then: 822150667 400 years ago: -11169475705 420 years ago: -11800627705 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.4.41 - 5.4.43
Now: 1453302668 Then: 822150668 400 years ago: -11169475704 420 years ago: -11800627704 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.4.37 - 5.4.40
Now: 1453302669 Then: 822150669 400 years ago: -11169475703 420 years ago: -11800627703 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.4.34 - 5.4.36
Now: 1453302670 Then: 822150670 400 years ago: -11169475702 420 years ago: -11800627702 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.3.29, 5.4.28 - 5.4.32
Now: 1453302671 Then: 822150671 400 years ago: -11169475701 420 years ago: -11800627701 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.4.23 - 5.4.27
Now: 1453302672 Then: 822150672 400 years ago: -11169475700 420 years ago: -11800627700 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.3.28, 5.4.20 - 5.4.22
Now: 1453302673 Then: 822150673 400 years ago: -11169475699 420 years ago: -11800627699 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.3.27, 5.4.17 - 5.4.19
Now: 1453302674 Then: 822150674 400 years ago: -11169475698 420 years ago: -11800627698 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.3.24 - 5.3.26, 5.4.14 - 5.4.16
Now: 1453302675 Then: 822150675 400 years ago: -11169475697 420 years ago: -11800627697 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours
Output for 5.3.22 - 5.3.23, 5.4.12 - 5.4.13
Now: 1453302676 Then: 822150676 400 years ago: -11169475696 420 years ago: -11800627696 Dif 1: 175320 hours Dif 2: 175320 hours Simple: 175200 hours Dif1 to dif2 Notice: Undefined variable: dif1 in /in/iCUMH on line 11 -175320hours Dif1 to simple 120hours