3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo (new \DateTime())->format('Y-m-d H:i:s'); echo date("Y/m/d H:i:s"). substr((string)microtime(), 1, 6);
Output for 7.1.0
2014-03-28 04:23:292014/03/28 04:23:29.00780
Output for 7.0.14
2014-03-28 04:23:292014/03/28 04:23:29.00369
Output for 5.6.0, 7.0.9
2014-03-28 04:23:292014/03/28 04:23:29.00367
Output for 7.0.8
2014-03-28 04:23:292014/03/28 04:23:29.00362
Output for 7.0.7
2014-03-28 04:23:292014/03/28 04:23:29.00343
Output for 7.0.6
2014-03-28 04:23:292014/03/28 04:23:29.00295
Output for 5.4.34, 5.4.38, 5.4.43, 7.0.5
2014-03-28 04:23:292014/03/28 04:23:29.00395
Output for 5.6.2, 7.0.4
2014-03-28 04:23:292014/03/28 04:23:29.00297
Output for 7.0.3
2014-03-28 04:23:292014/03/28 04:23:29.00306
Output for 5.5.11, 7.0.2
2014-03-28 04:23:292014/03/28 04:23:29.00321
Output for 7.0.1
2014-03-28 04:23:292014/03/28 04:23:29.00339
Output for 5.5.4, 7.0.0
2014-03-28 04:23:292014/03/28 04:23:29.00388
Output for hhvm-3.12.0
2014-03-28 04:23:292014/03/28 04:23:29.17671
Output for hhvm-3.10.0
2014-03-28 04:23:292014/03/28 04:23:29.16593
Output for 5.6.28
2014-03-28 04:23:292014/03/28 04:23:29.00433
Output for 5.4.27, 5.6.24
2014-03-28 04:23:292014/03/28 04:23:29.00284
Output for 5.6.23
2014-03-28 04:23:292014/03/28 04:23:29.00510
Output for 5.6.22
2014-03-28 04:23:292014/03/28 04:23:29.00315
Output for 5.6.21
2014-03-28 04:23:292014/03/28 04:23:29.00254
Output for 5.6.20
2014-03-28 04:23:292014/03/28 04:23:29.00320
Output for 5.5.9, 5.6.19
2014-03-28 04:23:292014/03/28 04:23:29.00335
Output for 5.6.18
2014-03-28 04:23:292014/03/28 04:23:29.00464
Output for 5.5.30, 5.6.17
2014-03-28 04:23:292014/03/28 04:23:29.00493
Output for 5.6.16
2014-03-28 04:23:292014/03/28 04:23:29.00460
Output for 5.6.15
2014-03-28 04:23:292014/03/28 04:23:29.00429
Output for 5.5.16, 5.6.14
2014-03-28 04:23:292014/03/28 04:23:29.00403
Output for 5.5.21, 5.6.13
2014-03-28 04:23:292014/03/28 04:23:29.00435
Output for 5.6.12
2014-03-28 04:23:292014/03/28 04:23:29.00334
Output for 5.6.11
2014-03-28 04:23:292014/03/28 04:23:29.00397
Output for 5.5.1, 5.6.10
2014-03-28 04:23:292014/03/28 04:23:29.00348
Output for 5.6.9
2014-03-28 04:23:292014/03/28 04:23:29.00364
Output for 5.6.8
2014-03-28 04:23:292014/03/28 04:23:29.00463
Output for 5.6.7
2014-03-28 04:23:292014/03/28 04:23:29.00300
Output for 5.6.6
2014-03-28 04:23:292014/03/28 04:23:29.00423
Output for 5.6.5
2014-03-28 04:23:292014/03/28 04:23:29.00455
Output for 5.6.4
2014-03-28 04:23:292014/03/28 04:23:29.00447
Output for 5.6.3
2014-03-28 04:23:292014/03/28 04:23:29.00422
Output for 5.6.1
2014-03-28 04:23:292014/03/28 04:23:29.00400
Output for 5.5.38
2014-03-28 04:23:292014/03/28 04:23:29.00550
Output for 5.5.37
2014-03-28 04:23:292014/03/28 04:23:29.00379
Output for 5.5.36
2014-03-28 04:23:292014/03/28 04:23:29.00274
Output for 5.4.15, 5.4.21, 5.5.35
2014-03-28 04:23:292014/03/28 04:23:29.00273
Output for 5.5.33 - 5.5.34
2014-03-28 04:23:292014/03/28 04:23:29.00419
Output for 5.5.32
2014-03-28 04:23:292014/03/28 04:23:29.00326
Output for 5.4.41, 5.5.31
2014-03-28 04:23:292014/03/28 04:23:29.00431
Output for 5.5.29
2014-03-28 04:23:292014/03/28 04:23:29.00404
Output for 5.5.26, 5.5.28
2014-03-28 04:23:292014/03/28 04:23:29.00412
Output for 5.5.12, 5.5.27
2014-03-28 04:23:292014/03/28 04:23:29.00341
Output for 5.4.45, 5.5.25
2014-03-28 04:23:292014/03/28 04:23:29.00385
Output for 5.5.24
2014-03-28 04:23:292014/03/28 04:23:29.00352
Output for 5.5.23
2014-03-28 04:23:292014/03/28 04:23:29.00458
Output for 5.5.22
2014-03-28 04:23:292014/03/28 04:23:29.00371
Output for 5.5.20
2014-03-28 04:23:292014/03/28 04:23:29.00418
Output for 5.5.19
2014-03-28 04:23:292014/03/28 04:23:29.00444
Output for 5.5.18
2014-03-28 04:23:292014/03/28 04:23:29.00421
Output for 5.5.15
2014-03-28 04:23:292014/03/28 04:23:29.00453
Output for 5.5.14
2014-03-28 04:23:292014/03/28 04:23:29.00488
Output for 5.5.13
2014-03-28 04:23:292014/03/28 04:23:29.00318
Output for 5.5.10
2014-03-28 04:23:292014/03/28 04:23:29.00314
Output for 5.5.8
2014-03-28 04:23:292014/03/28 04:23:29.00466
Output for 5.5.7
2014-03-28 04:23:292014/03/28 04:23:29.00229
Output for 5.5.6
2014-03-28 04:23:292014/03/28 04:23:29.00304
Output for 5.4.28, 5.5.5
2014-03-28 04:23:292014/03/28 04:23:29.00247
Output for 5.5.3
2014-03-28 04:23:292014/03/28 04:23:29.00276
Output for 5.5.2
2014-03-28 04:23:292014/03/28 04:23:29.00244
Output for 5.5.0
2014-03-28 04:23:292014/03/28 04:23:29.00271
Output for 5.4.44
2014-03-28 04:23:292014/03/28 04:23:29.00346
Output for 5.4.42
2014-03-28 04:23:292014/03/28 04:23:29.00594
Output for 5.4.40
2014-03-28 04:23:292014/03/28 04:23:29.00354
Output for 5.4.39
2014-03-28 04:23:292014/03/28 04:23:29.00282
Output for 5.4.37
2014-03-28 04:23:292014/03/28 04:23:29.00407
Output for 5.4.36
2014-03-28 04:23:292014/03/28 04:23:29.00345
Output for 5.4.35
2014-03-28 04:23:292014/03/28 04:23:29.00387
Output for 5.4.32
2014-03-28 04:23:292014/03/28 04:23:29.00338
Output for 5.4.31
2014-03-28 04:23:292014/03/28 04:23:29.00325
Output for 5.4.30
2014-03-28 04:23:292014/03/28 04:23:29.00399
Output for 5.4.29
2014-03-28 04:23:292014/03/28 04:23:29.00330
Output for 5.4.26
2014-03-28 04:23:292014/03/28 04:23:29.00263
Output for 5.4.25
2014-03-28 04:23:292014/03/28 04:23:29.00210
Output for 5.4.24
2014-03-28 04:23:292014/03/28 04:23:29.00255
Output for 5.4.23
2014-03-28 04:23:292014/03/28 04:23:29.00242
Output for 5.4.22
2014-03-28 04:23:292014/03/28 04:23:29.00241
Output for 5.4.20
2014-03-28 04:23:292014/03/28 04:23:29.00355
Output for 5.4.16, 5.4.19
2014-03-28 04:23:292014/03/28 04:23:29.00236
Output for 5.4.18
2014-03-28 04:23:292014/03/28 04:23:29.00220
Output for 5.4.17
2014-03-28 04:23:292014/03/28 04:23:29.00214
Output for 5.4.14
2014-03-28 04:23:292014/03/28 04:23:29.00124
Output for 5.4.13
2014-03-28 04:23:292014/03/28 04:23:29.00149
Output for 5.4.12
2014-03-28 04:23:292014/03/28 04:23:29.00127
Output for 5.4.11
2014-03-28 04:23:292014/03/28 04:23:29.00154
Output for 5.4.10
2014-03-28 04:23:292014/03/28 04:23:29.00129
Output for 5.4.9
2014-03-28 04:23:292014/03/28 04:23:29.00132
Output for 5.4.1, 5.4.3, 5.4.8
2014-03-28 04:23:292014/03/28 04:23:29.00128
Output for 5.4.7
2014-03-28 04:23:292014/03/28 04:23:29.00131
Output for 5.4.6
2014-03-28 04:23:292014/03/28 04:23:29.00110
Output for 5.4.5
2014-03-28 04:23:292014/03/28 04:23:29.00119
Output for 5.4.4
2014-03-28 04:23:292014/03/28 04:23:29.00142
Output for 5.4.2
2014-03-28 04:23:292014/03/28 04:23:29.00122
Output for 5.4.0
2014-03-28 04:23:292014/03/28 04:23:29.00165
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/2ZCo4 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/2ZCo4 on line 2 Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/2ZCo4 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/2ZCo4 on line 2 Parse error: parse error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/2ZCo4 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/2ZCo4 on line 2 Parse error: parse error, expecting `','' or `';'' in /in/2ZCo4 on line 2
Process exited with code 255.