3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = new DateTime('@1441893482.929'); print $d->format("Y-m-d H:i:s.u"); echo serialize($d);
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
2015-09-10 13:58:02.929000O:8:"DateTime":3:{s:4:"date";s:26:"2015-09-10 13:58:02.929000";s:13:"timezone_type";i:1;s:8:"timezone";s:6:"+00:00";}
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (@1441893482.929) at position 12 (9): Unexpected character in /in/Yt5f5:3 Stack trace: #0 /in/Yt5f5(3): DateTime->__construct('@1441893482.929') #1 {main} thrown in /in/Yt5f5 on line 3
Process exited with code 255.
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (@1441893482.929) at position 12 (9): Unexpected character' in /in/Yt5f5:3 Stack trace: #0 /in/Yt5f5(3): DateTime->__construct('@1441893482.929') #1 {main} thrown in /in/Yt5f5 on line 3
Process exited with code 255.

preferences:
314.19 ms | 402 KiB | 376 Q