3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo (new \DateTime())->format('dd-mm-YY H:i:s');
Output for 5.4.1, 5.4.5, 5.4.8, 5.4.13, 5.4.15 - 5.4.26, 5.6.28, 7.0.14 - 7.0.20, 7.1.0 - 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.7
1010-0303-20142014 17:48:43
Output for 7.3.32 - 7.3.33, 8.0.13
1010-0303-20142014 16:48:43
Output for 7.0.6
0303-0505-20162016 09:42:54
Output for 7.0.5
0202-0404-20162016 22:35:00
Output for 7.0.4
1010-0303-20162016 09:07:36
Output for 7.0.3
1818-0303-20162016 09:44:37
Output for 7.0.2
2222-0303-20162016 15:38:21
Output for 7.0.1
2323-0303-20162016 20:23:39
Output for 7.0.0
2626-0303-20162016 21:56:15
Output for 5.6.21
0202-0505-20162016 05:04:38
Output for 5.6.20
0909-0404-20162016 21:31:47
Output for 5.6.19
0707-0303-20162016 17:15:31
Output for 5.6.18
1515-0303-20162016 01:09:46
Output for 5.6.17
1919-0303-20162016 14:00:07
Output for 5.6.16
2727-0303-20162016 23:41:39
Output for 5.6.15
2929-0303-20162016 00:46:51
Output for 5.6.14
0202-0404-20162016 03:07:44
Output for 5.6.13
1515-0404-20162016 07:01:58
Output for 5.6.12
1919-0404-20162016 20:46:32
Output for 5.6.11
2323-0404-20162016 03:50:35
Output for 5.6.10
2525-0404-20162016 05:34:07
Output for 5.6.9
2727-0404-20162016 10:32:17
Output for 5.6.8
2929-0404-20162016 18:37:01
Output for 5.5.35
2222-0505-20162016 08:47:45
Output for 5.5.34
1010-0404-20162016 23:52:05
Output for 5.5.33
0808-0303-20162016 20:12:30
Output for 5.5.32
1717-0303-20162016 02:52:54
Output for 5.5.31
2020-0303-20162016 16:45:57
Output for 5.5.30
0101-0404-20162016 02:42:30
Output for 5.5.29
1616-0404-20162016 21:07:26
Output for 5.5.28
2020-0404-20162016 23:51:41
Output for 5.5.27
2222-0404-20162016 02:21:20
Output for 5.5.26
2626-0404-20162016 08:01:08
Output for 5.5.25
2828-0404-20162016 14:18:59
Output for 5.5.24
2323-0505-20162016 21:40:06
Output for 5.4.45
2020-0909-20152015 22:42:55
Output for 5.4.44
2020-0909-20152015 22:42:50
Output for 5.4.43
2020-0909-20152015 22:42:45
Output for 5.4.42
2020-0909-20152015 22:42:43
Output for 5.4.41
2020-0909-20152015 22:42:41
Output for 5.4.40
2020-0909-20152015 22:42:38
Output for 5.4.39
2020-0909-20152015 22:42:36
Output for 5.4.38
0505-0303-20152015 17:44:56
Output for 5.4.36 - 5.4.37
0505-0303-20152015 17:44:46
Output for 5.4.34 - 5.4.35
0505-0303-20152015 17:44:45
Output for 5.4.32
0707-0909-20142014 09:01:46
Output for 5.4.31
0707-0909-20142014 09:01:43
Output for 5.4.29 - 5.4.30
0707-0909-20142014 09:01:38
Output for 5.4.28
0707-0909-20142014 09:01:37
Output for 5.4.27
0707-0909-20142014 09:01:44
Output for 5.4.0, 5.4.2 - 5.4.4, 5.4.6 - 5.4.7, 5.4.9 - 5.4.12, 5.4.14
1010-0303-20142014 17:48:42
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/b96lN 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/b96lN on line 2 Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/b96lN 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/b96lN on line 2 Parse error: parse error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/b96lN 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/b96lN on line 2 Parse error: parse error, expecting `','' or `';'' in /in/b96lN on line 2
Process exited with code 255.

preferences:
231.88 ms | 402 KiB | 313 Q