<?php
var_dump(date_create(strtotime('+10 days')));
- Output for 5.5.24 - 5.5.30, 5.5.32, 5.5.34 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.1, 7.0.3, 7.0.5 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
- bool(false)
- Output for 7.0.4
- object(DateTime)#1 (3) {
["date"]=>
string(26) "5624-03-10 14:58:50.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
- Output for 7.0.2
- object(DateTime)#1 (3) {
["date"]=>
string(26) "6222-03-23 14:59:56.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
- Output for 5.5.33
- object(DateTime)#1 (3) {
["date"]=>
string(26) "2833-03-09 14:58:37.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
- Output for 5.5.31
- object(DateTime)#1 (3) {
["date"]=>
string(26) "3962-03-21 14:59:39.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
preferences:
129.1 ms | 401 KiB | 198 Q