3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo json_encode(new DateTime('now GMT'));
Output for 8.3.6
{"date":"2015-10-08 12:28:14.010003","timezone_type":2,"timezone":"GMT"}
Output for 8.3.5
{"date":"2015-10-08 12:28:14.014942","timezone_type":2,"timezone":"GMT"}
Output for 8.3.4
{"date":"2015-10-08 12:28:14.008634","timezone_type":2,"timezone":"GMT"}
Output for 8.3.3
{"date":"2015-10-08 12:28:14.007330","timezone_type":2,"timezone":"GMT"}
Output for 8.0.5, 8.3.2
{"date":"2015-10-08 12:28:14.003686","timezone_type":2,"timezone":"GMT"}
Output for 8.3.1
{"date":"2015-10-08 12:28:14.003673","timezone_type":2,"timezone":"GMT"}
Output for 8.1.6, 8.3.0
{"date":"2015-10-08 12:28:14.003960","timezone_type":2,"timezone":"GMT"}
Output for 8.2.18
{"date":"2015-10-08 12:28:14.006779","timezone_type":2,"timezone":"GMT"}
Output for 8.2.17
{"date":"2015-10-08 12:28:14.007414","timezone_type":2,"timezone":"GMT"}
Output for 8.2.16
{"date":"2015-10-08 12:28:14.006550","timezone_type":2,"timezone":"GMT"}
Output for 8.2.15
{"date":"2015-10-08 12:28:14.003734","timezone_type":2,"timezone":"GMT"}
Output for 8.2.14
{"date":"2015-10-08 12:28:14.003700","timezone_type":2,"timezone":"GMT"}
Output for 8.2.13
{"date":"2015-10-08 12:28:14.004012","timezone_type":2,"timezone":"GMT"}
Output for 8.2.12
{"date":"2015-10-08 12:28:14.004745","timezone_type":2,"timezone":"GMT"}
Output for 8.2.11
{"date":"2015-10-08 12:28:14.004184","timezone_type":2,"timezone":"GMT"}
Output for 8.2.10
{"date":"2015-10-08 12:28:14.005859","timezone_type":2,"timezone":"GMT"}
Output for 8.2.9
{"date":"2015-10-08 12:28:14.003976","timezone_type":2,"timezone":"GMT"}
Output for 8.2.8
{"date":"2015-10-08 12:28:14.004098","timezone_type":2,"timezone":"GMT"}
Output for 8.2.7
{"date":"2015-10-08 12:28:14.004406","timezone_type":2,"timezone":"GMT"}
Output for 8.2.6
{"date":"2015-10-08 12:28:14.005515","timezone_type":2,"timezone":"GMT"}
Output for 8.2.5
{"date":"2015-10-08 12:28:14.004003","timezone_type":2,"timezone":"GMT"}
Output for 8.2.4
{"date":"2015-10-08 12:28:14.005730","timezone_type":2,"timezone":"GMT"}
Output for 8.2.3
{"date":"2015-10-08 12:28:14.003829","timezone_type":2,"timezone":"GMT"}
Output for 8.2.2
{"date":"2015-10-08 12:28:14.004151","timezone_type":2,"timezone":"GMT"}
Output for 8.2.1
{"date":"2015-10-08 12:28:14.003694","timezone_type":2,"timezone":"GMT"}
Output for 8.2.0
{"date":"2015-10-08 12:28:14.004305","timezone_type":2,"timezone":"GMT"}
Output for 8.1.28
{"date":"2015-10-08 12:28:14.009925","timezone_type":2,"timezone":"GMT"}
Output for 8.1.27
{"date":"2015-10-08 12:28:14.008425","timezone_type":2,"timezone":"GMT"}
Output for 8.1.26
{"date":"2015-10-08 12:28:14.003867","timezone_type":2,"timezone":"GMT"}
Output for 8.1.25
{"date":"2015-10-08 12:28:14.003814","timezone_type":2,"timezone":"GMT"}
Output for 8.1.24
{"date":"2015-10-08 12:28:14.004244","timezone_type":2,"timezone":"GMT"}
Output for 8.1.23
{"date":"2015-10-08 12:28:14.005057","timezone_type":2,"timezone":"GMT"}
Output for 8.1.22
{"date":"2015-10-08 12:28:14.003665","timezone_type":2,"timezone":"GMT"}
Output for 8.1.21
{"date":"2015-10-08 12:28:14.003925","timezone_type":2,"timezone":"GMT"}
Output for 8.1.20
{"date":"2015-10-08 12:28:14.004085","timezone_type":2,"timezone":"GMT"}
Output for 8.1.19
{"date":"2015-10-08 12:28:14.003762","timezone_type":2,"timezone":"GMT"}
Output for 8.1.18
{"date":"2015-10-08 12:28:14.003622","timezone_type":2,"timezone":"GMT"}
Output for 8.0.24, 8.1.17
{"date":"2015-10-08 12:28:14.003559","timezone_type":2,"timezone":"GMT"}
Output for 8.1.16
{"date":"2015-10-08 12:28:14.003612","timezone_type":2,"timezone":"GMT"}
Output for 8.1.15
{"date":"2015-10-08 12:28:14.003534","timezone_type":2,"timezone":"GMT"}
Output for 8.1.14
{"date":"2015-10-08 12:28:14.003827","timezone_type":2,"timezone":"GMT"}
Output for 8.1.13
{"date":"2015-10-08 12:28:14.003417","timezone_type":2,"timezone":"GMT"}
Output for 8.1.12
{"date":"2015-10-08 12:28:14.003772","timezone_type":2,"timezone":"GMT"}
Output for 8.1.11
{"date":"2015-10-08 12:28:14.003545","timezone_type":2,"timezone":"GMT"}
Output for 8.1.10
{"date":"2015-10-08 12:28:14.003553","timezone_type":2,"timezone":"GMT"}
Output for 8.1.9
{"date":"2015-10-08 12:28:14.003911","timezone_type":2,"timezone":"GMT"}
Output for 8.1.8
{"date":"2015-10-08 12:28:14.004123","timezone_type":2,"timezone":"GMT"}
Output for 8.1.7
{"date":"2015-10-08 12:28:14.003309","timezone_type":2,"timezone":"GMT"}
Output for 8.1.5
{"date":"2015-10-08 12:28:14.003679","timezone_type":2,"timezone":"GMT"}
Output for 8.1.4
{"date":"2015-10-08 12:28:14.006632","timezone_type":2,"timezone":"GMT"}
Output for 8.1.3
{"date":"2015-10-08 12:28:14.004469","timezone_type":2,"timezone":"GMT"}
Output for 8.1.2
{"date":"2015-10-08 12:28:14.003903","timezone_type":2,"timezone":"GMT"}
Output for 8.1.1
{"date":"2015-10-08 12:28:14.003596","timezone_type":2,"timezone":"GMT"}
Output for 8.1.0
{"date":"2015-10-08 12:28:14.003502","timezone_type":2,"timezone":"GMT"}
Output for 8.0.30
{"date":"2015-10-08 12:28:14.003517","timezone_type":2,"timezone":"GMT"}
Output for 8.0.29
{"date":"2015-10-08 12:28:14.003511","timezone_type":2,"timezone":"GMT"}
Output for 8.0.28
{"date":"2015-10-08 12:28:14.003273","timezone_type":2,"timezone":"GMT"}
Output for 8.0.27
{"date":"2015-10-08 12:28:14.003666","timezone_type":2,"timezone":"GMT"}
Output for 8.0.26
{"date":"2015-10-08 12:28:14.003354","timezone_type":2,"timezone":"GMT"}
Output for 8.0.25
{"date":"2015-10-08 12:28:14.003623","timezone_type":2,"timezone":"GMT"}
Output for 8.0.23
{"date":"2015-10-08 12:28:14.003413","timezone_type":2,"timezone":"GMT"}
Output for 8.0.22
{"date":"2015-10-08 12:28:14.005341","timezone_type":2,"timezone":"GMT"}
Output for 8.0.21
{"date":"2015-10-08 12:28:14.003513","timezone_type":2,"timezone":"GMT"}
Output for 8.0.20
{"date":"2015-10-08 12:28:14.003038","timezone_type":2,"timezone":"GMT"}
Output for 8.0.19
{"date":"2015-10-08 12:28:14.004579","timezone_type":2,"timezone":"GMT"}
Output for 8.0.18
{"date":"2015-10-08 12:28:14.003452","timezone_type":2,"timezone":"GMT"}
Output for 8.0.17
{"date":"2015-10-08 12:28:14.003499","timezone_type":2,"timezone":"GMT"}
Output for 8.0.16
{"date":"2015-10-08 12:28:14.003361","timezone_type":2,"timezone":"GMT"}
Output for 8.0.15
{"date":"2015-10-08 12:28:14.003785","timezone_type":2,"timezone":"GMT"}
Output for 8.0.14
{"date":"2015-10-08 12:28:14.003429","timezone_type":2,"timezone":"GMT"}
Output for 8.0.13
{"date":"2015-10-08 10:28:14.002330","timezone_type":2,"timezone":"GMT"}
Output for 8.0.12
{"date":"2015-10-08 12:28:14.003444","timezone_type":2,"timezone":"GMT"}
Output for 8.0.11
{"date":"2015-10-08 12:28:14.003519","timezone_type":2,"timezone":"GMT"}
Output for 8.0.10
{"date":"2015-10-08 12:28:14.003648","timezone_type":2,"timezone":"GMT"}
Output for 8.0.9
{"date":"2015-10-08 12:28:14.003672","timezone_type":2,"timezone":"GMT"}
Output for 8.0.8
{"date":"2015-10-08 12:28:14.008204","timezone_type":2,"timezone":"GMT"}
Output for 8.0.7
{"date":"2015-10-08 12:28:14.003769","timezone_type":2,"timezone":"GMT"}
Output for 8.0.6
{"date":"2015-10-08 12:28:14.003479","timezone_type":2,"timezone":"GMT"}
Output for 8.0.3
{"date":"2015-10-08 12:28:14.012733","timezone_type":2,"timezone":"GMT"}
Output for 8.0.2
{"date":"2015-10-08 12:28:14.009686","timezone_type":2,"timezone":"GMT"}
Output for 8.0.1
{"date":"2015-10-08 12:28:14.003507","timezone_type":2,"timezone":"GMT"}
Output for 8.0.0
{"date":"2015-10-08 12:28:14.008584","timezone_type":2,"timezone":"GMT"}
Output for 7.4.33
{"date":"2015-10-08 12:28:14.001984","timezone_type":2,"timezone":"GMT"}
Output for 7.4.32
{"date":"2015-10-08 12:28:14.002903","timezone_type":2,"timezone":"GMT"}
Output for 7.4.30
{"date":"2015-10-08 12:28:14.002784","timezone_type":2,"timezone":"GMT"}
Output for 7.4.29
{"date":"2015-10-08 12:28:14.003104","timezone_type":2,"timezone":"GMT"}
Output for 7.4.28
{"date":"2015-10-08 12:28:14.003800","timezone_type":2,"timezone":"GMT"}
Output for 7.4.27
{"date":"2015-10-08 12:28:14.003077","timezone_type":2,"timezone":"GMT"}
Output for 7.4.26
{"date":"2015-10-08 12:28:14.004367","timezone_type":2,"timezone":"GMT"}
Output for 7.4.25
{"date":"2015-10-08 12:28:14.003183","timezone_type":2,"timezone":"GMT"}
Output for 7.4.24
{"date":"2015-10-08 12:28:14.003457","timezone_type":2,"timezone":"GMT"}
Output for 7.4.23
{"date":"2015-10-08 12:28:14.003119","timezone_type":2,"timezone":"GMT"}
Output for 7.4.22
{"date":"2015-10-08 12:28:14.008894","timezone_type":2,"timezone":"GMT"}
Output for 7.4.21
{"date":"2015-10-08 12:28:14.007151","timezone_type":2,"timezone":"GMT"}
Output for 7.4.20
{"date":"2015-10-08 12:28:14.003114","timezone_type":2,"timezone":"GMT"}
Output for 7.4.16
{"date":"2015-10-08 12:28:14.007911","timezone_type":2,"timezone":"GMT"}
Output for 7.4.15
{"date":"2015-10-08 12:28:14.008672","timezone_type":2,"timezone":"GMT"}
Output for 7.4.14
{"date":"2015-10-08 12:28:14.008818","timezone_type":2,"timezone":"GMT"}
Output for 7.4.13
{"date":"2015-10-08 12:28:14.008499","timezone_type":2,"timezone":"GMT"}
Output for 7.4.12
{"date":"2015-10-08 12:28:14.009610","timezone_type":2,"timezone":"GMT"}
Output for 7.4.11
{"date":"2015-10-08 12:28:14.008292","timezone_type":2,"timezone":"GMT"}
Output for 7.4.10
{"date":"2015-10-08 12:28:14.011281","timezone_type":2,"timezone":"GMT"}
Output for 7.4.9
{"date":"2015-10-08 12:28:14.008096","timezone_type":2,"timezone":"GMT"}
Output for 7.4.8
{"date":"2015-10-08 12:28:14.011945","timezone_type":2,"timezone":"GMT"}
Output for 7.4.7
{"date":"2015-10-08 12:28:14.012169","timezone_type":2,"timezone":"GMT"}
Output for 7.4.6
{"date":"2015-10-08 12:28:14.000274","timezone_type":2,"timezone":"GMT"}
Output for 7.4.5
{"date":"2015-10-08 12:28:14.001993","timezone_type":2,"timezone":"GMT"}
Output for 7.4.4
{"date":"2015-10-08 12:28:14.008680","timezone_type":2,"timezone":"GMT"}
Output for 7.4.3
{"date":"2015-10-08 12:28:14.010628","timezone_type":2,"timezone":"GMT"}
Output for 7.3.11, 7.4.1
{"date":"2015-10-08 12:28:14.000184","timezone_type":2,"timezone":"GMT"}
Output for 7.4.0
{"date":"2015-10-08 12:28:14.000169","timezone_type":2,"timezone":"GMT"}
Output for 7.3.33
{"date":"2015-10-08 10:28:14.003105","timezone_type":2,"timezone":"GMT"}
Output for 7.3.32
{"date":"2015-10-08 10:28:14.002442","timezone_type":2,"timezone":"GMT"}
Output for 7.3.31
{"date":"2015-10-08 12:28:14.003601","timezone_type":2,"timezone":"GMT"}
Output for 7.3.30
{"date":"2015-10-08 12:28:14.003717","timezone_type":2,"timezone":"GMT"}
Output for 7.3.29
{"date":"2015-10-08 12:28:14.007400","timezone_type":2,"timezone":"GMT"}
Output for 7.3.28
{"date":"2015-10-08 12:28:14.007638","timezone_type":2,"timezone":"GMT"}
Output for 7.3.27
{"date":"2015-10-08 12:28:14.008711","timezone_type":2,"timezone":"GMT"}
Output for 7.3.26
{"date":"2015-10-08 12:28:14.009366","timezone_type":2,"timezone":"GMT"}
Output for 7.3.25
{"date":"2015-10-08 12:28:14.008536","timezone_type":2,"timezone":"GMT"}
Output for 7.3.24
{"date":"2015-10-08 12:28:14.012616","timezone_type":2,"timezone":"GMT"}
Output for 7.3.23
{"date":"2015-10-08 12:28:14.008445","timezone_type":2,"timezone":"GMT"}
Output for 7.3.21
{"date":"2015-10-08 12:28:14.009809","timezone_type":2,"timezone":"GMT"}
Output for 7.3.20
{"date":"2015-10-08 12:28:14.011190","timezone_type":2,"timezone":"GMT"}
Output for 7.3.19
{"date":"2015-10-08 12:28:14.010522","timezone_type":2,"timezone":"GMT"}
Output for 7.3.18
{"date":"2015-10-08 12:28:14.004314","timezone_type":2,"timezone":"GMT"}
Output for 7.3.17
{"date":"2015-10-08 12:28:14.008101","timezone_type":2,"timezone":"GMT"}
Output for 7.3.16
{"date":"2015-10-08 12:28:14.008971","timezone_type":2,"timezone":"GMT"}
Output for 7.3.13
{"date":"2015-10-08 12:28:14.000215","timezone_type":2,"timezone":"GMT"}
Output for 7.3.12
{"date":"2015-10-08 12:28:14.000195","timezone_type":2,"timezone":"GMT"}
Output for 7.3.8, 7.3.10
{"date":"2015-10-08 12:28:14.000125","timezone_type":2,"timezone":"GMT"}
Output for 7.3.9
{"date":"2015-10-08 12:28:14.000150","timezone_type":2,"timezone":"GMT"}
Output for 7.3.7
{"date":"2015-10-08 12:28:14.000137","timezone_type":2,"timezone":"GMT"}
Output for 7.3.6
{"date":"2015-10-08 12:28:14.000160","timezone_type":2,"timezone":"GMT"}
Output for 7.2.11, 7.3.5
{"date":"2015-10-08 12:28:14.000123","timezone_type":2,"timezone":"GMT"}
Output for 7.3.4
{"date":"2015-10-08 12:28:14.000173","timezone_type":2,"timezone":"GMT"}
Output for 7.1.4, 7.3.3
{"date":"2015-10-08 12:28:14.000130","timezone_type":2,"timezone":"GMT"}
Output for 7.1.29, 7.2.9, 7.3.2
{"date":"2015-10-08 12:28:14.000144","timezone_type":2,"timezone":"GMT"}
Output for 7.2.12, 7.2.15, 7.3.1
{"date":"2015-10-08 12:28:14.000097","timezone_type":2,"timezone":"GMT"}
Output for 7.1.8, 7.2.3, 7.3.0
{"date":"2015-10-08 12:28:14.000085","timezone_type":2,"timezone":"GMT"}
Output for 7.2.33
{"date":"2015-10-08 12:28:14.010811","timezone_type":2,"timezone":"GMT"}
Output for 7.2.32
{"date":"2015-10-08 12:28:14.012327","timezone_type":2,"timezone":"GMT"}
Output for 7.2.31
{"date":"2015-10-08 12:28:14.010106","timezone_type":2,"timezone":"GMT"}
Output for 7.2.30
{"date":"2015-10-08 12:28:14.009035","timezone_type":2,"timezone":"GMT"}
Output for 7.2.29
{"date":"2015-10-08 12:28:14.008922","timezone_type":2,"timezone":"GMT"}
Output for 7.2.26
{"date":"2015-10-08 12:28:14.000168","timezone_type":2,"timezone":"GMT"}
Output for 7.2.25
{"date":"2015-10-08 12:28:14.000166","timezone_type":2,"timezone":"GMT"}
Output for 7.2.18, 7.2.24
{"date":"2015-10-08 12:28:14.000221","timezone_type":2,"timezone":"GMT"}
Output for 7.2.23
{"date":"2015-10-08 12:28:14.000127","timezone_type":2,"timezone":"GMT"}
Output for 7.2.22
{"date":"2015-10-08 12:28:14.000147","timezone_type":2,"timezone":"GMT"}
Output for 7.2.21
{"date":"2015-10-08 12:28:14.000143","timezone_type":2,"timezone":"GMT"}
Output for 7.1.16, 7.2.20
{"date":"2015-10-08 12:28:14.000113","timezone_type":2,"timezone":"GMT"}
Output for 7.2.19
{"date":"2015-10-08 12:28:14.000112","timezone_type":2,"timezone":"GMT"}
Output for 7.2.17
{"date":"2015-10-08 12:28:14.000151","timezone_type":2,"timezone":"GMT"}
Output for 7.2.16
{"date":"2015-10-08 12:28:14.000131","timezone_type":2,"timezone":"GMT"}
Output for 7.2.14
{"date":"2015-10-08 12:28:14.000115","timezone_type":2,"timezone":"GMT"}
Output for 7.2.13
{"date":"2015-10-08 12:28:14.000178","timezone_type":2,"timezone":"GMT"}
Output for 7.1.1, 7.2.8, 7.2.10
{"date":"2015-10-08 12:28:14.000091","timezone_type":2,"timezone":"GMT"}
Output for 7.2.7
{"date":"2015-10-08 12:28:14.000105","timezone_type":2,"timezone":"GMT"}
Output for 7.1.25, 7.1.27, 7.2.6
{"date":"2015-10-08 12:28:14.000146","timezone_type":2,"timezone":"GMT"}
Output for 7.2.5
{"date":"2015-10-08 12:28:14.000117","timezone_type":2,"timezone":"GMT"}
Output for 7.2.4
{"date":"2015-10-08 12:28:14.000090","timezone_type":2,"timezone":"GMT"}
Output for 7.1.22, 7.2.2
{"date":"2015-10-08 12:28:14.000088","timezone_type":2,"timezone":"GMT"}
Output for 7.2.1
{"date":"2015-10-08 12:28:14.000104","timezone_type":2,"timezone":"GMT"}
Output for 7.2.0
{"date":"2015-10-08 12:28:14.000152","timezone_type":2,"timezone":"GMT"}
Output for 7.1.33
{"date":"2015-10-08 12:28:14.000199","timezone_type":2,"timezone":"GMT"}
Output for 7.1.32
{"date":"2015-10-08 12:28:14.000098","timezone_type":2,"timezone":"GMT"}
Output for 7.1.15, 7.1.31
{"date":"2015-10-08 12:28:14.000082","timezone_type":2,"timezone":"GMT"}
Output for 7.1.19, 7.1.30
{"date":"2015-10-08 12:28:14.000089","timezone_type":2,"timezone":"GMT"}
Output for 7.1.28
{"date":"2015-10-08 12:28:14.000186","timezone_type":2,"timezone":"GMT"}
Output for 7.1.26
{"date":"2015-10-08 12:28:14.000106","timezone_type":2,"timezone":"GMT"}
Output for 7.1.10, 7.1.24
{"date":"2015-10-08 12:28:14.000110","timezone_type":2,"timezone":"GMT"}
Output for 7.1.23
{"date":"2015-10-08 12:28:14.000087","timezone_type":2,"timezone":"GMT"}
Output for 7.1.21
{"date":"2015-10-08 12:28:14.000086","timezone_type":2,"timezone":"GMT"}
Output for 7.1.20
{"date":"2015-10-08 12:28:14.000149","timezone_type":2,"timezone":"GMT"}
Output for 7.1.18
{"date":"2015-10-08 12:28:14.000116","timezone_type":2,"timezone":"GMT"}
Output for 7.1.17
{"date":"2015-10-08 12:28:14.000084","timezone_type":2,"timezone":"GMT"}
Output for 7.1.14
{"date":"2015-10-08 12:28:14.000095","timezone_type":2,"timezone":"GMT"}
Output for 7.1.13
{"date":"2015-10-08 12:28:14.000164","timezone_type":2,"timezone":"GMT"}
Output for 7.1.7, 7.1.12
{"date":"2015-10-08 12:28:14.000107","timezone_type":2,"timezone":"GMT"}
Output for 7.1.11
{"date":"2015-10-08 12:28:14.000083","timezone_type":2,"timezone":"GMT"}
Output for 7.1.5, 7.1.9
{"date":"2015-10-08 12:28:14.000094","timezone_type":2,"timezone":"GMT"}
Output for 7.1.6
{"date":"2015-10-08 12:28:14.000122","timezone_type":2,"timezone":"GMT"}
Output for 5.4.30 - 5.4.45, 5.5.14 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.3
{"date":"2015-10-08 12:28:14.000000","timezone_type":2,"timezone":"GMT"}
Output for 7.1.2
{"date":"2015-10-08 12:28:14.000148","timezone_type":2,"timezone":"GMT"}
Output for 7.1.0
{"date":"2015-10-08 12:28:14.000114","timezone_type":2,"timezone":"GMT"}
Output for 5.4.0 - 5.4.29, 5.5.0 - 5.5.13
{"date":"2015-10-08 12:28:14","timezone_type":2,"timezone":"GMT"}

preferences:
319.89 ms | 402 KiB | 376 Q