3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $t = new DateTime('@1453729049.252064'); echo $t->format('Y-m-d\TH:i:s.uP');
based on KnRlq
Output for 7.1.0 - 7.2.0
2016-01-25T13:37:29.252064+00:00
Output for 7.0.0 - 7.0.20
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (@1453729049.252064) at position 16 (6): Unexpected character in /in/0sAQO:3 Stack trace: #0 /in/0sAQO(3): DateTime->__construct('@1453729049.252...') #1 {main} thrown in /in/0sAQO on line 3
Process exited with code 255.
Output for 5.3.22 - 5.6.28
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (@1453729049.252064) at position 16 (6): Unexpected character' in /in/0sAQO:3 Stack trace: #0 /in/0sAQO(3): DateTime->__construct('@1453729049.252...') #1 {main} thrown in /in/0sAQO on line 3
Process exited with code 255.