3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = new \DateTime(); var_dump($d->getTimestamp(), $d->format(\DateTimeInterface::RFC3339_EXTENDED));
Output for 7.3.28, 7.4.0, 8.0.8
int(1626943612) string(29) "2021-07-22T10:46:52.020+02:00"
Output for 7.3.23, 7.4.14, 7.4.16, 8.0.7
int(1626943612) string(29) "2021-07-22T10:46:52.030+02:00"
Output for 7.4.2, 7.4.19, 7.4.21, 8.0.0, 8.0.6
int(1626943612) string(29) "2021-07-22T10:46:52.025+02:00"
Output for 8.0.5
int(1626943612) string(29) "2021-07-22T10:46:52.023+02:00"
Output for 7.3.13, 7.3.20, 7.4.18, 8.0.1, 8.0.3
int(1626943612) string(29) "2021-07-22T10:46:52.021+02:00"
Output for 7.3.0, 8.0.2
int(1626943612) string(29) "2021-07-22T10:46:52.063+02:00"
Output for 7.4.1, 7.4.20
int(1626943612) string(29) "2021-07-22T10:46:52.014+02:00"
Output for 7.4.15
int(1626943612) string(29) "2021-07-22T10:46:52.041+02:00"
Output for 7.3.26, 7.4.7, 7.4.13
int(1626943612) string(29) "2021-07-22T10:46:52.024+02:00"
Output for 7.4.12
int(1626943612) string(29) "2021-07-22T10:46:52.044+02:00"
Output for 7.4.11
int(1626943612) string(29) "2021-07-22T10:46:52.056+02:00"
Output for 7.4.10
int(1626943612) string(29) "2021-07-22T10:46:52.015+02:00"
Output for 7.4.3, 7.4.6, 7.4.9
int(1626943612) string(29) "2021-07-22T10:46:52.022+02:00"
Output for 7.4.8
int(1626943612) string(29) "2021-07-22T10:46:52.016+02:00"
Output for 7.3.21, 7.4.5
int(1626943612) string(29) "2021-07-22T10:46:52.017+02:00"
Output for 7.4.4
int(1626943612) string(29) "2021-07-22T10:46:52.018+02:00"
Output for 7.3.15, 7.3.29
int(1626943612) string(29) "2021-07-22T10:46:52.027+02:00"
Output for 7.3.27
int(1626943612) string(29) "2021-07-22T10:46:52.061+02:00"
Output for 7.3.10, 7.3.24 - 7.3.25
int(1626943612) string(29) "2021-07-22T10:46:52.026+02:00"
Output for 7.3.7, 7.3.19, 7.3.22
int(1626943612) string(29) "2021-07-22T10:46:52.034+02:00"
Output for 7.3.5, 7.3.12, 7.3.18
int(1626943612) string(29) "2021-07-22T10:46:52.029+02:00"
Output for 7.3.8, 7.3.14, 7.3.17
int(1626943612) string(29) "2021-07-22T10:46:52.028+02:00"
Output for 7.3.4, 7.3.16
int(1626943612) string(29) "2021-07-22T10:46:52.032+02:00"
Output for 7.3.11
int(1626943612) string(29) "2021-07-22T10:46:52.035+02:00"
Output for 7.3.9
int(1626943612) string(29) "2021-07-22T10:46:52.036+02:00"
Output for 7.3.6
int(1626943612) string(29) "2021-07-22T10:46:52.040+02:00"
Output for 7.3.2 - 7.3.3
int(1626943612) string(29) "2021-07-22T10:46:52.038+02:00"
Output for 7.3.1
int(1626943612) string(29) "2021-07-22T10:46:52.043+02:00"

preferences:
106.6 ms | 496 KiB | 5 Q