@ 2016-01-01T05:06:28Z <?php
$timestamp = NULL;
$date = (new DateTime())->setTimestamp($timestamp);
echo $date->format('U = Y-m-d H:i:s') . "\n";
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 8.1.0 - 8.1.28 , 8.2.0 - 8.2.18 , 8.3.0 - 8.3.6 Deprecated: DateTime::setTimestamp(): Passing null to parameter #1 ($timestamp) of type int is deprecated in /in/D2SdL on line 5
0 = 1970-01-01 01:00:00
Output for 5.5.24 - 5.5.35 , 5.6.8 - 5.6.28 , 7.0.0 - 7.0.20 , 7.1.0 - 7.1.10 , 7.2.0 - 7.2.33 , 7.3.16 - 7.3.31 , 7.4.0 - 7.4.33 , 8.0.0 - 8.0.12 , 8.0.14 - 8.0.30 0 = 1970-01-01 01:00:00
Output for 7.3.32 - 7.3.33 , 8.0.13 0 = 1970-01-01 00:00:00
preferences:dark mode live preview
147.4 ms | 401 KiB | 181 Q