3v4l.org

run code in 300+ PHP versions simultaneously
<?php $firstActivationDate = new DateTime('2020-06-30T00:00:00'); $paymentWindow = (new DateTime())->modify('+1 day'); if ($paymentWindow < $firstActivationDate) { $paymentWindow = $firstActivationDate; } var_dump($paymentWindow);
based on N6O8b
Output for 8.0.0alpha2
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.010710" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 8.0.0alpha1
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.017786" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.7
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.009247" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.6
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.008797" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.5
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.008547" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.4
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.009326" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.3
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.009021" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.2
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.008374" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.1
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.008946" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.4.0
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.015426" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.19
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.008327" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.18
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.009363" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.17
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.008297" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.16
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.010629" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.15
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.008617" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.14
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.008059" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.13
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.008586" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.12
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.008963" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.11
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.008548" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.10
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.010126" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.9
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.008052" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.8
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.007929" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.7
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.010529" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.6
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.010111" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.5
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.008579" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.4
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.008509" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.3
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.008415" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.2
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.009190" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.1
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.009414" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.0
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.029765" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.31
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.008418" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.30
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.021596" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.29
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.012450" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.28
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.008348" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.27
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.008650" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.26
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.009447" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.25
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.008630" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.24
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.009044" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.23
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.008619" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.22
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.008261" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.21
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.008806" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.20
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.009261" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.19
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.008887" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.18
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.008402" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.17
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.012938" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.16
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.009735" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.15
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.009457" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.14
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.027430" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.13
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.008472" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.12
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.009307" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.11
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.009123" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.10
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.016128" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.9
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.019022" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.8
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.019183" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.7
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.008868" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.6
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.008998" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.5
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.009031" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.4
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.008756" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.3
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.009481" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.2
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.009118" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.1
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.009404" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.0
object(DateTime)#2 (3) { ["date"]=> string(26) "2020-07-01 13:29:36.008866" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }