3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $n = new DateTime(); echo $n->format('d-M-Y'); //17-Oct-2013
Output for 5.6.28, 7.0.12 - 7.1.0
24-Oct-2013
Output for 7.0.6
03-May-2016
Output for 7.0.5
02-Apr-2016
Output for 7.0.4
09-Mar-2016
Output for 7.0.3
17-Mar-2016
Output for 7.0.2
21-Mar-2016
Output for 7.0.1
23-Mar-2016
Output for 7.0.0
26-Mar-2016
Output for hhvm-3.12.0
11-Mar-2016
Output for hhvm-3.10.0
29-Mar-2016
Output for 5.6.21
01-May-2016
Output for 5.6.20
09-Apr-2016
Output for 5.6.19
06-Mar-2016
Output for 5.6.18
14-Mar-2016
Output for 5.6.17
19-Mar-2016
Output for 5.6.16
27-Mar-2016
Output for 5.6.15
28-Mar-2016
Output for 5.6.14
01-Apr-2016
Output for 5.6.13
14-Apr-2016
Output for 5.6.12
19-Apr-2016
Output for 5.6.11
22-Apr-2016
Output for 5.6.10
24-Apr-2016
Output for 5.6.9
27-Apr-2016
Output for 5.6.8
29-Apr-2016
Output for 5.5.35
21-May-2016
Output for 5.5.34
10-Apr-2016
Output for 5.5.33
08-Mar-2016
Output for 5.5.32
15-Mar-2016
Output for 5.5.31
20-Mar-2016
Output for 5.5.30
31-Mar-2016
Output for 5.5.29
16-Apr-2016
Output for 5.5.28
20-Apr-2016
Output for 5.5.27
21-Apr-2016
Output for 5.5.26
25-Apr-2016
Output for 5.5.25
28-Apr-2016
Output for 5.5.24
30-Apr-2016
Output for 5.2.0 - 5.4.45
19-Feb-2016
Output for 5.0.0 - 5.0.5, 5.1.1 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/mtbXu on line 3
Process exited with code 255.
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/mtbXu on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/mtbXu on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/mtbXu on line 3