3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $time = new DateTime(); $time->setTimezone(new \DateTimeZone('EET')); // TODO echo $time->format('c');
Output for 5.6.28, 7.0.12 - 7.1.0
2013-12-11T13:50:06+02:00
Output for 7.0.6
2016-05-03T01:08:51+02:00
Output for 7.0.5
2016-04-02T14:29:18+02:00
Output for 5.5.33, 5.6.19, hhvm-3.12.0, 7.0.4
2016-03-12T04:08:33+02:00
Output for 5.5.31 - 5.5.32, 5.6.17 - 5.6.18, 7.0.1 - 7.0.3
2016-03-12T04:08:34+02:00
Output for 5.6.15 - 5.6.16, hhvm-3.10.0, 7.0.0
2016-03-12T04:08:35+02:00
Output for 5.6.21
2016-05-01T20:13:34+02:00
Output for 5.6.20
2016-04-09T09:44:11+02:00
Output for 5.4.45, 5.5.29 - 5.5.30, 5.6.13 - 5.6.14
2016-03-12T04:08:36+02:00
Output for 5.4.44, 5.5.28, 5.6.11 - 5.6.12
2016-03-12T04:08:37+02:00
Output for 5.4.41 - 5.4.43, 5.5.26 - 5.5.27, 5.6.10
2016-03-12T04:08:38+02:00
Output for 5.4.40, 5.5.24 - 5.5.25, 5.6.8 - 5.6.9
2016-03-12T04:08:39+02:00
Output for 5.4.38 - 5.4.39, 5.5.22 - 5.5.23, 5.6.6 - 5.6.7
2016-03-12T04:08:40+02:00
Output for 5.4.36 - 5.4.37, 5.5.20 - 5.5.21, 5.6.4 - 5.6.5
2016-03-12T04:08:41+02:00
Output for 5.4.34 - 5.4.35, 5.5.18 - 5.5.19, 5.6.0 - 5.6.3
2016-03-12T04:08:42+02:00
Output for 5.5.35
2016-05-21T23:18:53+02:00
Output for 5.5.34
2016-04-10T15:36:24+02:00
Output for 5.3.29, 5.4.30 - 5.4.32, 5.5.14 - 5.5.16
2016-03-12T04:08:43+02:00
Output for 5.4.26 - 5.4.29, 5.5.11 - 5.5.13
2016-03-12T04:08:44+02:00
Output for 5.4.23 - 5.4.25, 5.5.8 - 5.5.10
2016-03-12T04:08:45+02:00
Output for 5.3.28, 5.4.21 - 5.4.22, 5.5.5 - 5.5.7
2016-03-12T04:08:46+02:00
Output for 5.4.18 - 5.4.20, 5.5.1 - 5.5.4
2016-03-12T04:08:47+02:00
Output for 5.3.26 - 5.3.27, 5.4.15 - 5.4.17, 5.5.0
2016-03-12T04:08:48+02:00
Output for 5.3.22 - 5.3.25, 5.4.12 - 5.4.14
2016-03-12T04:08:49+02:00
Output for 5.3.18 - 5.3.21, 5.4.9 - 5.4.11
2016-03-12T04:08:50+02:00
Output for 5.3.15 - 5.3.17, 5.4.5 - 5.4.8
2016-03-12T04:08:51+02:00
Output for 5.3.11 - 5.3.14, 5.4.2 - 5.4.4
2016-03-12T04:08:52+02:00
Output for 5.3.6 - 5.3.10, 5.4.0 - 5.4.1
2016-03-12T04:08:53+02:00
Output for 5.3.3 - 5.3.5
2016-03-12T04:08:54+02:00
Output for 5.3.0 - 5.3.2
2016-03-12T04:08:55+02:00
Output for 5.2.15 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/5GAEn on line 4 2016-03-12T04:08:54+02:00
Output for 5.2.11 - 5.2.14
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/5GAEn on line 4 2016-03-12T04:08:55+02:00
Output for 5.2.6 - 5.2.10
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/5GAEn on line 4 2016-03-12T04:08:56+02:00
Output for 5.2.1 - 5.2.5
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/5GAEn on line 4 2016-03-12T04:08:57+02:00
Output for 5.2.0
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/5GAEn on line 4 2016-03-12T04:08:58+02:00
Output for 5.0.0 - 5.1.6
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/5GAEn on line 4 Fatal error: Class 'DateTime' not found in /in/5GAEn on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/5GAEn on line 4 Fatal error: Cannot instantiate non-existent class: datetime in /in/5GAEn on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/5GAEn on line 4 Fatal error: Cannot instantiate non-existent class: datetime in /in/5GAEn on line 3