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("ymdHisu"); // note at point on "u"
Output for 7.1.0
140620103456004010
Output for 7.0.14
140620103456003845
Output for 7.0.10
140620103456003191
Output for 7.0.9
140620103456003247
Output for 7.0.8
140620103456003005
Output for 7.0.7
140620103456003562
Output for 7.0.6
140620103456002677
Output for 7.0.5
140620103456003756
Output for 7.0.4
140620103456004267
Output for 7.0.3
140620103456002600
Output for 7.0.2
140620103456003765
Output for 7.0.1
140620103456004030
Output for 7.0.0
140620103456003433
Output for 5.6.28
140620103456004599
Output for 5.6.25
140620103456002939
Output for 5.6.24
140620103456003926
Output for 5.6.23
140620103456004549
Output for 5.6.22
140620103456004322
Output for 5.6.21
140620103456003684
Output for 5.6.20
140620103456004448
Output for 5.6.19
140620103456004281
Output for 5.6.18
140620103456004354
Output for 5.5.19, 5.6.17
140620103456003719
Output for 5.6.16
140620103456004964
Output for 5.6.15
140620103456003515
Output for 5.6.14
140620103456004888
Output for 5.6.13
140620103456003587
Output for 5.6.12
140620103456004656
Output for 5.6.11
140620103456004192
Output for 5.6.10
140620103456003493
Output for 5.6.9
140620103456004662
Output for 5.6.8
140620103456004455
Output for 5.6.7
140620103456004209
Output for 5.6.6
140620103456003807
Output for 5.6.5
140620103456004981
Output for 5.6.4
140620103456004221
Output for 5.6.3
140620103456004493
Output for 5.6.2
140620103456004275
Output for 5.6.1
140620103456003977
Output for 5.6.0
140620103456004518
Output for 5.5.38
140620103456003957
Output for 5.5.37
140620103456004334
Output for 5.5.36
140620103456004527
Output for 5.5.35
140620103456004544
Output for 5.5.34
140620103456004205
Output for 5.5.33
140620103456004653
Output for 5.5.32
140620103456002983
Output for 5.5.31
140620103456003534
Output for 5.5.30
140620103456004005
Output for 5.5.29
140620103456004606
Output for 5.5.28
140620103456003879
Output for 5.5.27
140620103456002964
Output for 5.5.26
140620103456003366
Output for 5.5.25
140620103456002923
Output for 5.5.24
140620103456004786
Output for 5.5.23
140620103456004473
Output for 5.5.18, 5.5.22
140620103456004317
Output for 5.5.21
140620103456004160
Output for 5.5.20
140620103456004019
Output for 5.5.16
140620103456003824
Output for 5.5.15
140620103456004642
Output for 5.5.7, 5.5.14
140620103456004534
Output for 5.5.13
140620103456004817
Output for 5.5.12
140620103456004590
Output for 5.5.11
140620103456003999
Output for 5.5.10
140620103456003460
Output for 5.5.9
140620103456004220
Output for 5.5.8
140620103456004753
Output for 5.5.6
140620103456003591
Output for 5.5.5
140620103456003874
Output for 5.5.4
140620103456003484
Output for 5.5.3
140620103456004669
Output for 5.5.2
140620103456003876
Output for 5.5.1
140620103456004874
Output for 5.5.0
140620103456004554
Output for 5.4.45
140620103456004009
Output for 5.4.44
140620103456004235
Output for 5.4.43
140620103456003427
Output for 5.4.42
140620103456003604
Output for 5.4.41
140620103456004096
Output for 5.4.40
140620103456003813
Output for 5.4.39
140620103456003638
Output for 5.4.38
140620103456003053
Output for 5.4.37
140620103456003309
Output for 5.4.36
140620103456002809
Output for 5.4.35
140620103456003742
Output for 5.4.34
140620103456003819
Output for 5.4.32
140620103456003619
Output for 5.4.31
140620103456003968
Output for 5.4.30
140620103456004149
Output for 5.4.29
140620103456004199
Output for 5.4.28
140620103456002552
Output for 5.4.27
140620103456003808
Output for 5.4.26
140620103456004312
Output for 5.4.25
140620103456003884
Output for 5.4.24
140620103456003621
Output for 5.4.23
140620103456003782
Output for 5.4.22
140620103456003839
Output for 5.4.21
140620103456003916
Output for 5.4.20
140620103456004184
Output for 5.4.19
140620103456003825
Output for 5.4.18
140620103456003396
Output for 5.4.17
140620103456003578
Output for 5.4.16
140620103456004080
Output for 5.4.15
140620103456003761
Output for 5.4.14
140620103456002285
Output for 5.4.13
140620103456002289
Output for 5.4.12
140620103456002039
Output for 5.4.11
140620103456001885
Output for 5.4.10
140620103456002193
Output for 5.4.9
140620103456002108
Output for 5.4.8
140620103456002419
Output for 5.3.29, 5.4.7
140620103456002372
Output for 5.4.6
140620103456002302
Output for 5.4.5
140620103456002249
Output for 5.2.12, 5.4.4
140620103456001413
Output for 5.4.3
140620103456001429
Output for 5.4.2
140620103456002149
Output for 5.4.1
140620103456001822
Output for 5.4.0
140620103456002082
Output for 5.3.28
140620103456001447
Output for 5.3.27
140620103456002022
Output for 5.3.26
140620103456002144
Output for 5.3.25
140620103456002363
Output for 5.3.24
140620103456002203
Output for 5.3.23
140620103456002307
Output for 5.3.22
140620103456002058
Output for 5.3.7, 5.3.21
140620103456002226
Output for 5.3.20
140620103456002377
Output for 5.3.11, 5.3.19
140620103456002142
Output for 5.3.18
140620103456001909
Output for 5.3.17
140620103456001667
Output for 5.3.16
140620103456001430
Output for 5.3.15
140620103456002053
Output for 5.3.14
140620103456002182
Output for 5.3.13
140620103456001511
Output for 5.3.12
140620103456002201
Output for 5.3.10
140620103456002346
Output for 5.3.9
140620103456002341
Output for 5.3.8
140620103456002094
Output for 5.3.6
140620103456002052
Output for 5.3.5
140620103456001811
Output for 5.3.4
140620103456002259
Output for 5.3.3
140620103456002252
Output for 5.3.2
140620103456002381
Output for 5.3.1
140620103456002800
Output for 5.3.0
140620103456001808
Output for 5.2.17
140620103456001524
Output for 5.2.16
140620103456001600
Output for 5.2.15
140620103456001435
Output for 5.2.14
140620103456001179
Output for 5.2.7, 5.2.13
140620103456001734
Output for 5.2.11
140620103456001614
Output for 5.2.10
140620103456001638
Output for 5.2.9
140620103456001887
Output for 5.2.8
140620103456001874
Output for 5.2.6
140620103456001686
Output for 5.2.5
140620103456001952
Output for 5.2.4
140620103456001943
Output for 5.2.3
140620103456001924
Output for 5.2.2
140620103456001916
Output for 5.2.0 - 5.2.1
140620103456u
Output for 5.0.0 - 5.0.5, 5.1.1 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/guQXQ on line 5
Process exited with code 255.
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/guQXQ on line 7
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/guQXQ on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/guQXQ on line 5