3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $t = microtime(true); $micro = sprintf("%06d",($t - floor($t)) * 1000000); $d = new DateTime( date('Y-m-d H:i:s.'.$micro,$t) ); print $d->format("Y-m-d H:i:s.u");
Output for 7.1.0
2013-12-17 16:04:11.004688
Output for 7.0.14
2013-12-17 16:04:11.003814
Output for 7.0.10
2013-12-17 16:04:11.004261
Output for 7.0.9
2013-12-17 16:04:11.004076
Output for 7.0.8
2013-12-17 16:04:11.004064
Output for 7.0.7
2013-12-17 16:04:11.004108
Output for 7.0.6
2013-12-17 16:04:11.003089
Output for 7.0.5
2013-12-17 16:04:11.003521
Output for 7.0.4
2013-12-17 16:04:11.003726
Output for 7.0.3
2013-12-17 16:04:11.003645
Output for 7.0.2
2013-12-17 16:04:11.003953
Output for 7.0.1
2013-12-17 16:04:11.003762
Output for 7.0.0
2013-12-17 16:04:11.002861
Output for hhvm-3.12.0
2013-12-17 16:04:11.189774
Output for hhvm-3.10.0
2013-12-17 16:04:11.156564
Output for 5.6.28
2013-12-17 16:04:11.004549
Output for 5.6.25
2013-12-17 16:04:11.004271
Output for 5.6.24
2013-12-17 16:04:11.004221
Output for 5.6.23
2013-12-17 16:04:11.003927
Output for 5.6.22
2013-12-17 16:04:11.003501
Output for 5.6.21
2013-12-17 16:04:11.004550
Output for 5.6.20
2013-12-17 16:04:11.002904
Output for 5.6.19
2013-12-17 16:04:11.003904
Output for 5.6.18
2013-12-17 16:04:11.003611
Output for 5.6.17
2013-12-17 16:04:11.003966
Output for 5.6.16
2013-12-17 16:04:11.004473
Output for 5.6.15
2013-12-17 16:04:11.004045
Output for 5.6.14
2013-12-17 16:04:11.004410
Output for 5.6.13
2013-12-17 16:04:11.005403
Output for 5.6.12
2013-12-17 16:04:11.003171
Output for 5.6.11
2013-12-17 16:04:11.004024
Output for 5.6.10
2013-12-17 16:04:11.004451
Output for 5.6.9
2013-12-17 16:04:11.004378
Output for 5.6.8
2013-12-17 16:04:11.003205
Output for 5.6.7
2013-12-17 16:04:11.004091
Output for 5.6.6
2013-12-17 16:04:11.006957
Output for 5.6.5
2013-12-17 16:04:11.004654
Output for 5.6.4
2013-12-17 16:04:11.004206
Output for 5.6.3
2013-12-17 16:04:11.004889
Output for 5.6.2
2013-12-17 16:04:11.004195
Output for 5.6.1
2013-12-17 16:04:11.003917
Output for 5.6.0
2013-12-17 16:04:11.004216
Output for 5.5.38
2013-12-17 16:04:11.004852
Output for 5.5.37
2013-12-17 16:04:11.006941
Output for 5.5.36
2013-12-17 16:04:11.004621
Output for 5.5.35
2013-12-17 16:04:11.003900
Output for 5.5.34
2013-12-17 16:04:11.004350
Output for 5.5.33
2013-12-17 16:04:11.003041
Output for 5.5.32
2013-12-17 16:04:11.003635
Output for 5.5.31
2013-12-17 16:04:11.003849
Output for 5.5.30
2013-12-17 16:04:11.003254
Output for 5.5.29
2013-12-17 16:04:11.004431
Output for 5.5.28
2013-12-17 16:04:11.004585
Output for 5.5.27
2013-12-17 16:04:11.003972
Output for 5.5.26
2013-12-17 16:04:11.004103
Output for 5.5.25
2013-12-17 16:04:11.004523
Output for 5.5.24
2013-12-17 16:04:11.004676
Output for 5.5.23
2013-12-17 16:04:11.004251
Output for 5.5.22
2013-12-17 16:04:11.002876
Output for 5.5.21
2013-12-17 16:04:11.004542
Output for 5.5.20
2013-12-17 16:04:11.004358
Output for 5.5.19
2013-12-17 16:04:11.003470
Output for 5.5.18
2013-12-17 16:04:11.003550
Output for 5.5.16
2013-12-17 16:04:11.004610
Output for 5.5.15
2013-12-17 16:04:11.004786
Output for 5.5.14
2013-12-17 16:04:11.004560
Output for 5.5.13
2013-12-17 16:04:11.003851
Output for 5.5.12
2013-12-17 16:04:11.003144
Output for 5.5.11
2013-12-17 16:04:11.004695
Output for 5.5.9 - 5.5.10
2013-12-17 16:04:11.004622
Output for 5.5.8
2013-12-17 16:04:11.003427
Output for 5.5.7
2013-12-17 16:04:11.004625
Output for 5.5.6
2013-12-17 16:04:11.004057
Output for 5.5.5
2013-12-17 16:04:11.003408
Output for 5.5.4
2013-12-17 16:04:11.004416
Output for 5.5.3
2013-12-17 16:04:11.004054
Output for 5.5.2
2013-12-17 16:04:11.004894
Output for 5.5.1
2013-12-17 16:04:11.003262
Output for 5.5.0
2013-12-17 16:04:11.005032
Output for 5.4.45
2013-12-17 16:04:11.003858
Output for 5.4.44
2013-12-17 16:04:11.003796
Output for 5.4.43
2013-12-17 16:04:11.003693
Output for 5.4.42
2013-12-17 16:04:11.004336
Output for 5.4.41
2013-12-17 16:04:11.003398
Output for 5.4.40
2013-12-17 16:04:11.002818
Output for 5.4.39
2013-12-17 16:04:11.003772
Output for 5.4.38
2013-12-17 16:04:11.003719
Output for 5.4.26, 5.4.37
2013-12-17 16:04:11.003643
Output for 5.4.36
2013-12-17 16:04:11.003938
Output for 5.4.35
2013-12-17 16:04:11.003571
Output for 5.4.34
2013-12-17 16:04:11.003585
Output for 5.4.32
2013-12-17 16:04:11.003978
Output for 5.4.31
2013-12-17 16:04:11.004131
Output for 5.4.20, 5.4.30
2013-12-17 16:04:11.004112
Output for 5.4.29
2013-12-17 16:04:11.003957
Output for 5.4.28
2013-12-17 16:04:11.003278
Output for 5.4.27
2013-12-17 16:04:11.003778
Output for 5.4.25
2013-12-17 16:04:11.003583
Output for 5.4.24
2013-12-17 16:04:11.002954
Output for 5.4.23
2013-12-17 16:04:11.003943
Output for 5.4.22
2013-12-17 16:04:11.004220
Output for 5.4.21
2013-12-17 16:04:11.004121
Output for 5.4.19
2013-12-17 16:04:11.003922
Output for 5.4.18
2013-12-17 16:04:11.003806
Output for 5.4.17
2013-12-17 16:04:11.002738
Output for 5.4.16
2013-12-17 16:04:11.002871
Output for 5.4.15
2013-12-17 16:04:11.003551
Output for 5.4.9, 5.4.14
2013-12-17 16:04:11.001362
Output for 5.4.13
2013-12-17 16:04:11.001319
Output for 5.4.12
2013-12-17 16:04:11.001332
Output for 5.4.11
2013-12-17 16:04:11.001233
Output for 5.4.10
2013-12-17 16:04:11.001291
Output for 5.4.8
2013-12-17 16:04:11.001944
Output for 5.4.7
2013-12-17 16:04:11.001317
Output for 5.4.6
2013-12-17 16:04:11.001279
Output for 5.4.5
2013-12-17 16:04:11.001415
Output for 5.4.4
2013-12-17 16:04:11.001230
Output for 5.4.3
2013-12-17 16:04:11.001749
Output for 5.4.2
2013-12-17 16:04:11.001384
Output for 5.4.1
2013-12-17 16:04:11.001322
Output for 5.4.0
2013-12-17 16:04:11.001437
Output for 5.3.29
2013-12-17 16:04:11.002087
Output for 5.3.28
2013-12-17 16:04:11.002196
Output for 5.3.27
2013-12-17 16:04:11.001470
Output for 5.3.26
2013-12-17 16:04:11.001532
Output for 5.3.25
2013-12-17 16:04:11.001744
Output for 5.3.24
2013-12-17 16:04:11.001430
Output for 5.3.23
2013-12-17 16:04:11.001346
Output for 5.3.22
2013-12-17 16:04:11.001902
Output for 5.3.21
2013-12-17 16:04:11.001467
Output for 5.3.20
2013-12-17 16:04:11.001440
Output for 5.3.19
2013-12-17 16:04:11.001476
Output for 5.3.18
2013-12-17 16:04:11.001405
Output for 5.3.17
2013-12-17 16:04:11.001863
Output for 5.3.16
2013-12-17 16:04:11.001964
Output for 5.3.15
2013-12-17 16:04:11.001466
Output for 5.3.14
2013-12-17 16:04:11.001449
Output for 5.3.13
2013-12-17 16:04:11.001630
Output for 5.3.12
2013-12-17 16:04:11.001586
Output for 5.3.11
2013-12-17 16:04:11.001873
Output for 5.3.10
2013-12-17 16:04:11.001302
Output for 5.3.9
2013-12-17 16:04:11.001769
Output for 5.3.8
2013-12-17 16:04:11.001447
Output for 5.3.7
2013-12-17 16:04:11.001425
Output for 5.3.5 - 5.3.6
2013-12-17 16:04:11.001338
Output for 5.3.4
2013-12-17 16:04:11.001323
Output for 5.3.3
2013-12-17 16:04:11.001379
Output for 5.3.2
2013-12-17 16:04:11.001461
Output for 5.3.1
2013-12-17 16:04:11.001355
Output for 5.3.0
2013-12-17 16:04:11.001318
Output for 5.2.17
2013-12-17 16:04:11.001136
Output for 5.2.16
2013-12-17 16:04:11.001255
Output for 5.2.15
2013-12-17 16:04:11.001046
Output for 5.2.14
2013-12-17 16:04:11.001104
Output for 5.2.13
2013-12-17 16:04:11.001027
Output for 5.2.12
2013-12-17 16:04:11.001153
Output for 5.2.11
2013-12-17 16:04:11.001180
Output for 5.2.10
2013-12-17 16:04:11.001321
Output for 5.2.9
2013-12-17 16:04:11.001081
Output for 5.2.8
2013-12-17 16:04:11.001049
Output for 5.2.7
2013-12-17 16:04:11.001636
Output for 5.2.6
2013-12-17 16:04:11.001091
Output for 5.2.5
2013-12-17 16:04:11.001197
Output for 5.2.4
2013-12-17 16:04:11.001763
Output for 5.2.3
2013-12-17 16:04:11.001497
Output for 5.2.2
2013-12-17 16:04:11.001821
Output for 5.2.0 - 5.2.1
2013-12-17 16:04:11.u
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/tlDav on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/tlDav on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/tlDav on line 4