3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime('now'); echo $date->format('YY-MM-DD HH:II:SS');
Output for 5.2.0 - 5.2.17, 5.3.0 - 5.3.17, 5.4.0 - 5.4.1, 5.5.0 - 5.5.23, 5.5.36 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
20172017-SepSep-MonMon 1616:11:thth
Output for 7.3.32 - 7.3.33, 8.0.13
20172017-SepSep-MonMon 1414:00:thth
Output for 5.5.35
20162016-MayMay-SunSun 0606:11:ndnd
Output for 5.5.34
20162016-AprApr-SunSun 2121:11:thth
Output for 5.5.33
20162016-MarMar-TueTue 1717:00:thth
Output for 5.5.32
20162016-MarMar-WedWed 2323:00:thth
Output for 5.5.31
20162016-MarMar-SunSun 1313:00:thth
Output for 5.5.30
20162016-MarMar-ThuThu 2323:11:stst
Output for 5.5.29
20162016-AprApr-SatSat 1818:11:thth
Output for 5.5.28
20162016-AprApr-WedWed 2121:11:thth
Output for 5.5.27
20162016-AprApr-ThuThu 2323:11:stst
Output for 5.5.26
20162016-AprApr-TueTue 0505:11:thth
Output for 5.5.25
20162016-AprApr-ThuThu 1111:11:thth
Output for 5.5.24
20162016-MayMay-MonMon 1818:11:rdrd
Output for 5.4.8 - 5.4.45
20152015-SepSep-TueTue 1717:11:thth
Output for 5.4.7
20152015-OctOct-TueTue 0101:00:thth
Output for 5.4.6
20152015-OctOct-TueTue 0303:00:thth
Output for 5.4.5
20152015-OctOct-TueTue 0404:00:thth
Output for 5.4.4
20152015-OctOct-TueTue 0606:00:thth
Output for 5.4.3
20152015-OctOct-TueTue 0707:00:thth
Output for 5.4.2
20152015-OctOct-TueTue 0909:00:thth
Output for 5.3.18 - 5.3.29
20152015-OctOct-FriFri 1010:11:ndnd
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/nggI3 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/nggI3 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/nggI3 on line 3

preferences:
302.97 ms | 401 KiB | 457 Q