3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo (new \DateTime('1990'))->format('Y-m-d');
based on h2f9T
Output for 5.4.0 - 5.4.32, 5.6.28, 7.0.14 - 7.1.0
1990-09-05
Output for 7.0.6
1990-05-03
Output for 7.0.5
1990-04-03
Output for 7.0.4
1990-03-10
Output for 7.0.3
1990-03-18
Output for 7.0.2
1990-03-22
Output for 7.0.1
1990-03-24
Output for 7.0.0
1990-03-27
Output for 5.6.21
1990-05-02
Output for 5.6.20
1990-04-10
Output for 5.6.19
1990-03-07
Output for 5.6.18
1990-03-15
Output for 5.6.17
1990-03-19
Output for 5.6.16
1990-03-28
Output for 5.6.15
1990-03-29
Output for 5.6.14
1990-04-02
Output for 5.6.13
1990-04-15
Output for 5.6.12
1990-04-20
Output for 5.6.11
1990-04-23
Output for 5.6.10
1990-04-25
Output for 5.6.9
1990-04-27
Output for 5.6.8
1990-04-30
Output for 5.5.35
1990-05-22
Output for 5.5.34
1990-04-11
Output for 5.5.33
1990-03-09
Output for 5.5.32
1990-03-17
Output for 5.5.31
1990-03-20
Output for 5.5.30
1990-04-01
Output for 5.5.29
1990-04-17
Output for 5.5.28
1990-04-21
Output for 5.5.27
1990-04-22
Output for 5.5.26
1990-04-26
Output for 5.5.25
1990-04-28
Output for 5.5.24
1990-05-24
Output for 5.4.45
1990-09-17
Output for 5.4.44
1990-08-26
Output for 5.4.43
1990-07-11
Output for 5.4.42
1990-06-20
Output for 5.4.38 - 5.4.41
1990-06-09
Output for 5.4.36 - 5.4.37
1990-02-03
Output for 5.4.35
1990-11-14
Output for 5.4.34
1990-11-13
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/pBtIS on line 3
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/pBtIS on line 3 Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/pBtIS on line 3
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/pBtIS on line 3 Parse error: parse error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/pBtIS on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/pBtIS on line 3 Parse error: parse error, expecting `','' or `';'' in /in/pBtIS on line 3
Process exited with code 255.