3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $Y= new DateTime(); $X= new DateTime(null); $S=$X->format('e'); echo($X->format('e') . "\n"); echo($X->format('d/m/Y') . "\n"); $X= new DateTime('@' . $X->format('U')); $X->setTimeZone(new DateTimeZone()); echo($X->format('d/m/Y') . "\n"); echo($X->format('e') . "\n");
based on Pki8U
Output for 7.1.0 - 7.2.0
Europe/Amsterdam 28/12/2015 Fatal error: Uncaught ArgumentCountError: DateTimeZone::__construct() expects exactly 1 parameter, 0 given in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 7.0.20
Europe/Amsterdam 28/12/2015 Fatal error: Uncaught TypeError: DateTimeZone::__construct() expects exactly 1 parameter, 0 given in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 7.0.6
Europe/Amsterdam 21/05/2016 Fatal error: Uncaught TypeError: DateTimeZone::__construct() expects exactly 1 parameter, 0 given in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 7.0.5
Europe/Amsterdam 03/04/2016 Fatal error: Uncaught TypeError: DateTimeZone::__construct() expects exactly 1 parameter, 0 given in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 7.0.4
Europe/Amsterdam 10/03/2016 Fatal error: Uncaught TypeError: DateTimeZone::__construct() expects exactly 1 parameter, 0 given in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 7.0.3
Europe/Amsterdam 18/03/2016 Fatal error: Uncaught TypeError: DateTimeZone::__construct() expects exactly 1 parameter, 0 given in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 7.0.2
Europe/Amsterdam 23/03/2016 Fatal error: Uncaught TypeError: DateTimeZone::__construct() expects exactly 1 parameter, 0 given in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 7.0.1
Europe/Amsterdam 24/03/2016 Fatal error: Uncaught TypeError: DateTimeZone::__construct() expects exactly 1 parameter, 0 given in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 7.0.0
Europe/Amsterdam 27/03/2016 Fatal error: Uncaught TypeError: DateTimeZone::__construct() expects exactly 1 parameter, 0 given in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 5.3.21 - 5.4.45, 5.6.28
Europe/Amsterdam 28/12/2015 Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct() expects exactly 1 parameter, 0 given' in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 5.6.21
Europe/Amsterdam 02/05/2016 Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct() expects exactly 1 parameter, 0 given' in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 5.6.20
Europe/Amsterdam 10/04/2016 Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct() expects exactly 1 parameter, 0 given' in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 5.6.19
Europe/Amsterdam 08/03/2016 Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct() expects exactly 1 parameter, 0 given' in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 5.6.18
Europe/Amsterdam 15/03/2016 Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct() expects exactly 1 parameter, 0 given' in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 5.6.17
Europe/Amsterdam 20/03/2016 Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct() expects exactly 1 parameter, 0 given' in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 5.6.16
Europe/Amsterdam 28/03/2016 Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct() expects exactly 1 parameter, 0 given' in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 5.6.15
Europe/Amsterdam 29/03/2016 Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct() expects exactly 1 parameter, 0 given' in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 5.6.14
Europe/Amsterdam 14/04/2016 Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct() expects exactly 1 parameter, 0 given' in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 5.6.13
Europe/Amsterdam 15/04/2016 Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct() expects exactly 1 parameter, 0 given' in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 5.6.12
Europe/Amsterdam 20/04/2016 Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct() expects exactly 1 parameter, 0 given' in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 5.6.11
Europe/Amsterdam 24/04/2016 Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct() expects exactly 1 parameter, 0 given' in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 5.6.10
Europe/Amsterdam 25/04/2016 Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct() expects exactly 1 parameter, 0 given' in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 5.6.9
Europe/Amsterdam 27/04/2016 Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct() expects exactly 1 parameter, 0 given' in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 5.6.8
Europe/Amsterdam 30/04/2016 Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct() expects exactly 1 parameter, 0 given' in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 5.5.35
Europe/Amsterdam 23/05/2016 Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct() expects exactly 1 parameter, 0 given' in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 5.5.34
Europe/Amsterdam 11/04/2016 Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct() expects exactly 1 parameter, 0 given' in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 5.5.33
Europe/Amsterdam 09/03/2016 Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct() expects exactly 1 parameter, 0 given' in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 5.5.32
Europe/Amsterdam 17/03/2016 Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct() expects exactly 1 parameter, 0 given' in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 5.5.31
Europe/Amsterdam 21/03/2016 Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct() expects exactly 1 parameter, 0 given' in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 5.5.30
Europe/Amsterdam 01/04/2016 Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct() expects exactly 1 parameter, 0 given' in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 5.5.29
Europe/Amsterdam 17/04/2016 Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct() expects exactly 1 parameter, 0 given' in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 5.5.28
Europe/Amsterdam 21/04/2016 Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct() expects exactly 1 parameter, 0 given' in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 5.5.27
Europe/Amsterdam 22/04/2016 Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct() expects exactly 1 parameter, 0 given' in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 5.5.26
Europe/Amsterdam 26/04/2016 Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct() expects exactly 1 parameter, 0 given' in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 5.5.25
Europe/Amsterdam 29/04/2016 Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct() expects exactly 1 parameter, 0 given' in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.
Output for 5.5.24
Europe/Amsterdam 24/05/2016 Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct() expects exactly 1 parameter, 0 given' in /in/tSfAo:8 Stack trace: #0 /in/tSfAo(8): DateTimeZone->__construct() #1 {main} thrown in /in/tSfAo on line 8
Process exited with code 255.