3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $jsDateTS = 1445600131080 / 1000; $data = new DateTime((string)$jsDateTS); echo $data->format('Y-m-d H:i');
based on 1p2Yt
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1445600131.08) at position 11 (0): Unexpected character in /in/6lg0i:5 Stack trace: #0 /in/6lg0i(5): DateTime->__construct('1445600131.08') #1 {main} thrown in /in/6lg0i on line 5
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (1445600131.08) at position 11 (0): Unexpected character' in /in/6lg0i:5 Stack trace: #0 /in/6lg0i(5): DateTime->__construct('1445600131.08') #1 {main} thrown in /in/6lg0i on line 5
Process exited with code 255.