3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo (new \DateTime())->format('dd/mm/YYYY H:i:s');
Output for 5.5.0 - 5.5.23, 5.5.36 - 5.5.38, 5.6.0 - 5.6.6, 5.6.22 - 5.6.27, 5.6.29 - 5.6.30, 7.0.7 - 7.0.13, 7.0.15 - 7.0.19, 7.0.21 - 7.0.26, 7.1.1 - 7.1.4, 7.1.8 - 7.1.9, 7.1.11 - 7.1.20, 7.2.6 - 7.2.33, 7.3.12 - 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
0404/1212/2017201720172017 19:07:59
Output for 7.3.32 - 7.3.33, 8.0.13
0404/1212/2017201720172017 18:07:59
Output for 5.6.28, 7.0.14, 7.0.20, 7.1.0, 7.1.5 - 7.1.7, 7.1.10, 7.2.0
2222/0707/2014201420142014 17:42:57
Output for 7.0.6
0303/0505/2016201620162016 02:53:26
Output for 7.0.5
0202/0404/2016201620162016 16:08:40
Output for 7.0.4
1010/0303/2016201620162016 01:43:29
Output for 7.0.3
1818/0303/2016201620162016 01:54:36
Output for 7.0.2
2121/0303/2016201620162016 12:28:44
Output for 7.0.1
2323/0303/2016201620162016 12:41:46
Output for 7.0.0
2626/0303/2016201620162016 15:07:50
Output for 5.6.21
0101/0505/2016201620162016 21:55:11
Output for 5.6.20
0909/0404/2016201620162016 11:20:37
Output for 5.6.19
0707/0303/2016201620162016 00:09:03
Output for 5.6.18
1414/0303/2016201620162016 12:21:02
Output for 5.6.17
1919/0303/2016201620162016 06:22:44
Output for 5.6.16
2727/0303/2016201620162016 16:52:04
Output for 5.6.15
2828/0303/2016201620162016 17:45:32
Output for 5.6.14
0101/0404/2016201620162016 20:22:18
Output for 5.6.13
1515/0404/2016201620162016 00:11:57
Output for 5.6.12
1919/0404/2016201620162016 13:21:52
Output for 5.6.11
2222/0404/2016201620162016 20:38:26
Output for 5.6.10
2424/0404/2016201620162016 22:17:52
Output for 5.6.9
2727/0404/2016201620162016 03:28:45
Output for 5.6.8
2929/0404/2016201620162016 11:05:40
Output for 5.6.7
2424/0505/2016201620162016 22:12:17
Output for 5.5.35
2222/0505/2016201620162016 01:19:17
Output for 5.5.34
1010/0404/2016201620162016 17:17:16
Output for 5.5.33
0808/0303/2016201620162016 12:34:02
Output for 5.5.32
1616/0303/2016201620162016 18:16:14
Output for 5.5.31
2020/0303/2016201620162016 09:15:17
Output for 5.5.30
3131/0303/2016201620162016 19:46:33
Output for 5.5.29
1616/0404/2016201620162016 14:19:05
Output for 5.5.28
2020/0404/2016201620162016 16:39:03
Output for 5.5.27
2121/0404/2016201620162016 19:08:43
Output for 5.5.26
2626/0404/2016201620162016 00:45:11
Output for 5.5.25
2828/0404/2016201620162016 06:45:28
Output for 5.5.24
3030/0404/2016201620162016 14:13:40
Output for 5.4.45
2121/0909/2015201520152015 11:52:36
Output for 5.4.44
2121/0909/2015201520152015 11:52:32
Output for 5.4.43
2121/0909/2015201520152015 04:09:04
Output for 5.4.42
2121/0909/2015201520152015 04:08:29
Output for 5.4.41
2121/0909/2015201520152015 04:07:45
Output for 5.4.40
2121/0909/2015201520152015 04:06:45
Output for 5.4.39
2121/0909/2015201520152015 04:06:01
Output for 5.4.38
0505/0303/2015201520152015 06:44:35
Output for 5.4.37
0505/0303/2015201520152015 06:44:29
Output for 5.4.34 - 5.4.36
0505/0303/2015201520152015 06:44:28
Output for 5.4.32
1414/0909/2014201420142014 01:00:59
Output for 5.4.31
1414/0909/2014201420142014 01:00:58
Output for 5.4.29 - 5.4.30
2222/0707/2014201420142014 17:43:00
Output for 5.4.9 - 5.4.28
2222/0707/2014201420142014 17:43:01
Output for 5.4.0 - 5.4.8
2222/0707/2014201420142014 17:43:02
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/3ZbVM on line 2
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/3ZbVM on line 2 Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/3ZbVM on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1, 5.0.0 - 5.0.5
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/3ZbVM on line 2 Parse error: parse error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/3ZbVM 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/3ZbVM on line 2 Parse error: parse error, expecting `','' or `';'' in /in/3ZbVM on line 2
Process exited with code 255.

preferences:
286.05 ms | 401 KiB | 381 Q