3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $jsDateTS = 1445603955079 /1445603865; $data = new DateTime(1445603865 / 1000); echo $data->format("d-m-Y");
based on p5k62
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1445603.865) at position 6 (3): Double time specification in /in/AqTd2:5 Stack trace: #0 /in/AqTd2(5): DateTime->__construct('1445603.865') #1 {main} thrown in /in/AqTd2 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 (1445603.865) at position 6 (3): Double time specification' in /in/AqTd2:5 Stack trace: #0 /in/AqTd2(5): DateTime->__construct('1445603.865') #1 {main} thrown in /in/AqTd2 on line 5
Process exited with code 255.