3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $jsDateTS = strtotime(1445600131080) * 1000; $data = new DateTime( 1445600131080 * 1000); echo $data->format('Y-m-d H:i');
based on MbPfo
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1445600131080000) at position 14 (0): Unexpected character in /in/nSPP3:5 Stack trace: #0 /in/nSPP3(5): DateTime->__construct('144560013108000...') #1 {main} thrown in /in/nSPP3 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 (1445600131080000) at position 14 (0): Unexpected character' in /in/nSPP3:5 Stack trace: #0 /in/nSPP3(5): DateTime->__construct('144560013108000...') #1 {main} thrown in /in/nSPP3 on line 5
Process exited with code 255.