3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo (new \DateTime('now', new \DateTimeZone('UTC')))->format('yyyyMMdd');
Output for 5.4.0 - 5.4.25, 5.6.28, 7.0.14 - 7.1.0
14141414FebFeb2727
Output for 7.0.6
16161616MayMay0303
Output for 7.0.5
16161616AprApr0202
Output for 7.0.4
16161616MarMar0909
Output for 7.0.3
16161616MarMar1818
Output for 7.0.2
16161616MarMar2121
Output for 7.0.1
16161616MarMar2323
Output for 7.0.0
16161616MarMar2626
Output for hhvm-3.12.0
16161616MarMar1111
Output for hhvm-3.10.0
16161616MarMar2929
Output for 5.6.21
16161616MayMay0101
Output for 5.6.20
16161616AprApr0909
Output for 5.6.19
16161616MarMar0606
Output for 5.6.18
16161616MarMar1414
Output for 5.6.17
16161616MarMar1919
Output for 5.6.16
16161616MarMar2727
Output for 5.6.15
16161616MarMar2828
Output for 5.6.14
16161616AprApr0101
Output for 5.6.13
16161616AprApr1414
Output for 5.6.12
16161616AprApr1919
Output for 5.6.11
16161616AprApr2222
Output for 5.6.10
16161616AprApr2424
Output for 5.6.9
16161616AprApr2727
Output for 5.6.8
16161616AprApr2929
Output for 5.6.7
16161616MayMay2424
Output for 5.5.35
16161616MayMay2121
Output for 5.5.34
16161616AprApr1010
Output for 5.5.33
16161616MarMar0808
Output for 5.5.32
16161616MarMar1616
Output for 5.5.31
16161616MarMar2020
Output for 5.5.30
16161616MarMar3131
Output for 5.5.29
16161616AprApr1616
Output for 5.5.28
16161616AprApr2020
Output for 5.5.27
16161616AprApr2121
Output for 5.5.26
16161616AprApr2525
Output for 5.5.25
16161616AprApr2828
Output for 5.5.24
16161616AprApr3030
Output for 5.4.41 - 5.4.45
15151515SepSep1313
Output for 5.4.39 - 5.4.40
15151515MayMay0808
Output for 5.4.38
15151515MarMar0202
Output for 5.4.36 - 5.4.37
15151515FebFeb0808
Output for 5.4.34 - 5.4.35
14141414DecDec0404
Output for 5.4.26 - 5.4.32
14141414SepSep0606
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/I9a72 on line 2
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/I9a72 on line 2 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/I9a72 on line 2 Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/I9a72 on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/I9a72 on line 2 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/I9a72 on line 2 Parse error: parse error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/I9a72 on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/I9a72 on line 2 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/I9a72 on line 2 Parse error: parse error, expecting `','' or `';'' in /in/I9a72 on line 2
Process exited with code 255.