3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (new \DateTime('now', new \DateTimeZone('Europe/Berlin')))->modify('+30 minutes')->format('Hi'); echo PHP_EOL; echo \DateTime::createFromFormat('P', 'Europe/Berlin')->modify('+30 minutes')->format('Hi');
based on W7Dlo
Output for 5.4.37 - 5.4.45, 5.6.28, 7.0.20 - 7.2.0
1316 1316
Output for 7.0.6
1414 1414
Output for 7.0.5
1012 1012
Output for 7.0.4
2219 2219
Output for 7.0.3
2346 2346
Output for 7.0.2
0600 0600
Output for 7.0.1
0904 0904
Output for 7.0.0
1057 1057
Output for 5.6.21
1706 1706
Output for 5.6.20
0915 0915
Output for 5.6.19
0629 0629
Output for 5.6.18
1527 1527
Output for 5.6.17
0259 0259
Output for 5.6.16
1147 1147
Output for 5.6.15
1237 1237
Output for 5.6.14
1819 1819
Output for 5.6.13
1858 1858
Output for 5.6.12
0927 0927
Output for 5.6.11
1554 1554
Output for 5.6.10
1759 1759
Output for 5.6.9
2326 2326
Output for 5.6.8
0755 0755
Output for 5.5.35
0309 0309
Output for 5.5.34
1128 1128
Output for 5.5.33
0928 0928
Output for 5.5.32
1924 1924
Output for 5.5.31
0610 0610
Output for 5.5.30
1428 1428
Output for 5.5.29
0916 0916
Output for 5.5.28
1247 1247
Output for 5.5.27
1425 1425
Output for 5.5.26
2041 2041
Output for 5.5.25
0407 0407
Output for 5.5.24
1033 1033
Output for 5.4.11 - 5.4.36
1317 1317
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/1UJYg on line 3
Process exited with code 255.