3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $jsDateTS = strtotime(1445600131080) * 1000; echo new DateTime('F j, Y, g:i a', $jsDateTS );
based on 2KFvO
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught TypeError: DateTime::__construct() expects parameter 2 to be DateTimeZone, integer given in /in/lPfLe:5 Stack trace: #0 /in/lPfLe(5): DateTime->__construct('F j, Y, g:i a', -58026360812000) #1 {main} thrown in /in/lPfLe on line 5
Process exited with code 255.
Output for 5.3.19 - 5.6.21
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct() expects parameter 2 to be DateTimeZone, integer given' in /in/lPfLe:5 Stack trace: #0 /in/lPfLe(5): DateTime->__construct('F j, Y, g:i a', -58026360812000) #1 {main} thrown in /in/lPfLe on line 5
Process exited with code 255.