3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo (new \DateTime())->format('dd-mm-YY H:i:s');
Output for 5.6.28, 7.0.14 - 7.1.0
1010-0303-20142014 17: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 hhvm-3.12.0
1111-0303-20162016 22:10:55
Output for hhvm-3.10.0
3030-0303-20162016 11:13:21
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.12 - 5.4.26
1010-0303-20142014 17:48:44
Output for 5.4.0 - 5.4.11
1010-0303-20142014 17:48:45
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.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.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.