3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set('Europe/Prague'); $time = microtime(true); $micro_time = sprintf("%06d", ($time - floor($time)) * 1000000); $date = new DateTime(date('Y-m-d H:i:s.' . $micro_time, $time)); echo $date->format("Y-m-d H:i:s.u") . " - OK\n"; setlocale(LC_NUMERIC, 'cs_CZ.utf8'); $date = new DateTime(date('Y-m-d H:i:s.' . $micro_time, $time)); echo $date->format("Y-m-d H:i:s.u") . " - BAD!\n";
Output for 7.1.0
2014-05-14 13:19:56.006382 - OK 2014-05-14 13:19:56.006382 - BAD!
Output for 7.0.14
2014-05-14 13:19:56.003936 - OK 2014-05-14 13:19:56.003936 - BAD!
Output for 7.0.10
2014-05-14 13:19:56.003196 - OK 2014-05-14 13:19:56.003196 - BAD!
Output for 7.0.9
2014-05-14 13:19:56.002666 - OK 2014-05-14 13:19:56.002666 - BAD!
Output for 7.0.8
2014-05-14 13:19:56.004131 - OK 2014-05-14 13:19:56.004131 - BAD!
Output for 7.0.7
2014-05-14 13:19:56.003871 - OK 2014-05-14 13:19:56.003871 - BAD!
Output for 7.0.6
2014-05-14 13:19:56.002955 - OK 2014-05-14 13:19:56.002955 - BAD!
Output for 7.0.5
2014-05-14 13:19:56.004144 - OK 2014-05-14 13:19:56.004144 - BAD!
Output for 7.0.4
2014-05-14 13:19:56.002923 - OK 2014-05-14 13:19:56.002923 - BAD!
Output for 7.0.3
2014-05-14 13:19:56.002509 - OK 2014-05-14 13:19:56.002509 - BAD!
Output for 7.0.2
2014-05-14 13:19:56.004143 - OK 2014-05-14 13:19:56.004143 - BAD!
Output for 7.0.1
2014-05-14 13:19:56.004307 - OK 2014-05-14 13:19:56.004307 - BAD!
Output for 7.0.0
2014-05-14 13:19:56.003483 - OK 2014-05-14 13:19:56.003483 - BAD!
Output for hhvm-3.12.0
2014-05-14 13:19:56.192873 - OK 2014-05-14 13:19:56.192873 - BAD!
Output for hhvm-3.10.0
2014-05-14 13:19:56.172430 - OK 2014-05-14 13:19:56.172430 - BAD!
Output for 5.6.28
2014-05-14 13:19:56.004206 - OK 2014-05-14 13:19:56.004206 - BAD!
Output for 5.6.25
2014-05-14 13:19:56.003703 - OK 2014-05-14 13:19:56.003703 - BAD!
Output for 5.6.24
2014-05-14 13:19:56.004302 - OK 2014-05-14 13:19:56.004302 - BAD!
Output for 5.6.23
2014-05-14 13:19:56.004642 - OK 2014-05-14 13:19:56.004642 - BAD!
Output for 5.6.22
2014-05-14 13:19:56.003601 - OK 2014-05-14 13:19:56.003601 - BAD!
Output for 5.6.21
2014-05-14 13:19:56.004122 - OK 2014-05-14 13:19:56.004122 - BAD!
Output for 5.6.20
2014-05-14 13:19:56.004875 - OK 2014-05-14 13:19:56.004875 - BAD!
Output for 5.6.19
2014-05-14 13:19:56.004704 - OK 2014-05-14 13:19:56.004704 - BAD!
Output for 5.6.18
2014-05-14 13:19:56.003983 - OK 2014-05-14 13:19:56.003983 - BAD!
Output for 5.6.17
2014-05-14 13:19:56.003093 - OK 2014-05-14 13:19:56.003093 - BAD!
Output for 5.6.16
2014-05-14 13:19:56.004462 - OK 2014-05-14 13:19:56.004462 - BAD!
Output for 5.6.15
2014-05-14 13:19:56.004667 - OK 2014-05-14 13:19:56.004667 - BAD!
Output for 5.6.14
2014-05-14 13:19:56.004708 - OK 2014-05-14 13:19:56.004708 - BAD!
Output for 5.6.13
2014-05-14 13:19:56.004246 - OK 2014-05-14 13:19:56.004246 - BAD!
Output for 5.6.12
2014-05-14 13:19:56.003411 - OK 2014-05-14 13:19:56.003411 - BAD!
Output for 5.6.11
2014-05-14 13:19:56.003243 - OK 2014-05-14 13:19:56.003243 - BAD!
Output for 5.6.10
2014-05-14 13:19:56.002904 - OK 2014-05-14 13:19:56.002904 - BAD!
Output for 5.6.9
2014-05-14 13:19:56.002857 - OK 2014-05-14 13:19:56.002857 - BAD!
Output for 5.6.8
2014-05-14 13:19:56.004933 - OK 2014-05-14 13:19:56.004933 - BAD!
Output for 5.6.7
2014-05-14 13:19:56.002773 - OK 2014-05-14 13:19:56.002773 - BAD!
Output for 5.6.6
2014-05-14 13:19:56.003910 - OK 2014-05-14 13:19:56.003910 - BAD!
Output for 5.6.5
2014-05-14 13:19:56.003985 - OK 2014-05-14 13:19:56.003985 - BAD!
Output for 5.6.4
2014-05-14 13:19:56.003384 - OK 2014-05-14 13:19:56.003384 - BAD!
Output for 5.6.3
2014-05-14 13:19:56.002767 - OK 2014-05-14 13:19:56.002767 - BAD!
Output for 5.6.2
2014-05-14 13:19:56.002768 - OK 2014-05-14 13:19:56.002768 - BAD!
Output for 5.6.1
2014-05-14 13:19:56.002770 - OK 2014-05-14 13:19:56.002770 - BAD!
Output for 5.6.0
2014-05-14 13:19:56.003223 - OK 2014-05-14 13:19:56.003223 - BAD!
Output for 5.5.38
2014-05-14 13:19:56.003947 - OK 2014-05-14 13:19:56.003947 - BAD!
Output for 5.5.37
2014-05-14 13:19:56.003905 - OK 2014-05-14 13:19:56.003905 - BAD!
Output for 5.5.36
2014-05-14 13:19:56.002973 - OK 2014-05-14 13:19:56.002973 - BAD!
Output for 5.5.35
2014-05-14 13:19:56.003774 - OK 2014-05-14 13:19:56.003774 - BAD!
Output for 5.5.34
2014-05-14 13:19:56.004645 - OK 2014-05-14 13:19:56.004645 - BAD!
Output for 5.5.33
2014-05-14 13:19:56.004168 - OK 2014-05-14 13:19:56.004168 - BAD!
Output for 5.5.32
2014-05-14 13:19:56.004127 - OK 2014-05-14 13:19:56.004127 - BAD!
Output for 5.5.31
2014-05-14 13:19:56.004059 - OK 2014-05-14 13:19:56.004059 - BAD!
Output for 5.5.30
2014-05-14 13:19:56.004158 - OK 2014-05-14 13:19:56.004158 - BAD!
Output for 5.5.29
2014-05-14 13:19:56.003024 - OK 2014-05-14 13:19:56.003024 - BAD!
Output for 5.5.28
2014-05-14 13:19:56.004631 - OK 2014-05-14 13:19:56.004631 - BAD!
Output for 5.5.27
2014-05-14 13:19:56.003349 - OK 2014-05-14 13:19:56.003349 - BAD!
Output for 5.5.26
2014-05-14 13:19:56.002964 - OK 2014-05-14 13:19:56.002964 - BAD!
Output for 5.5.25
2014-05-14 13:19:56.002927 - OK 2014-05-14 13:19:56.002927 - BAD!
Output for 5.5.24
2014-05-14 13:19:56.003736 - OK 2014-05-14 13:19:56.003736 - BAD!
Output for 5.5.23
2014-05-14 13:19:56.004479 - OK 2014-05-14 13:19:56.004479 - BAD!
Output for 5.5.22
2014-05-14 13:19:56.002702 - OK 2014-05-14 13:19:56.002702 - BAD!
Output for 5.5.13, 5.5.21
2014-05-14 13:19:56.002701 - OK 2014-05-14 13:19:56.002701 - BAD!
Output for 5.5.15, 5.5.20
2014-05-14 13:19:56.002722 - OK 2014-05-14 13:19:56.002722 - BAD!
Output for 5.5.19
2014-05-14 13:19:56.002690 - OK 2014-05-14 13:19:56.002690 - BAD!
Output for 5.5.18
2014-05-14 13:19:56.002777 - OK 2014-05-14 13:19:56.002777 - BAD!
Output for 5.5.16
2014-05-14 13:19:56.003401 - OK 2014-05-14 13:19:56.003401 - BAD!
Output for 5.5.10, 5.5.14
2014-05-14 13:19:56.002707 - OK 2014-05-14 13:19:56.002707 - BAD!
Output for 5.5.12
2014-05-14 13:19:56.002931 - OK 2014-05-14 13:19:56.002931 - BAD!
Output for 5.5.11
2014-05-14 13:19:56.002733 - OK 2014-05-14 13:19:56.002733 - BAD!
Output for 5.5.9
2014-05-14 13:19:56.002712 - OK 2014-05-14 13:19:56.002712 - BAD!
Output for 5.5.8
2014-05-14 13:19:56.002862 - OK 2014-05-14 13:19:56.002862 - BAD!
Output for 5.5.7
2014-05-14 13:19:56.002727 - OK 2014-05-14 13:19:56.002727 - BAD!
Output for 5.5.6
2014-05-14 13:19:56.004049 - OK 2014-05-14 13:19:56.004049 - BAD!
Output for 5.5.5
2014-05-14 13:19:56.004656 - OK 2014-05-14 13:19:56.004656 - BAD!
Output for 5.5.4
2014-05-14 13:19:56.003891 - OK 2014-05-14 13:19:56.003891 - BAD!
Output for 5.5.3
2014-05-14 13:19:56.005049 - OK 2014-05-14 13:19:56.005049 - BAD!
Output for 5.5.2
2014-05-14 13:19:56.005095 - OK 2014-05-14 13:19:56.005095 - BAD!
Output for 5.5.1
2014-05-14 13:19:56.004534 - OK 2014-05-14 13:19:56.004534 - BAD!
Output for 5.5.0
2014-05-14 13:19:56.003612 - OK 2014-05-14 13:19:56.003612 - BAD!
Output for 5.4.45
2014-05-14 13:19:56.002593 - OK 2014-05-14 13:19:56.002593 - BAD!
Output for 5.4.44
2014-05-14 13:19:56.003540 - OK 2014-05-14 13:19:56.003540 - BAD!
Output for 5.4.43
2014-05-14 13:19:56.002547 - OK 2014-05-14 13:19:56.002547 - BAD!
Output for 5.4.42
2014-05-14 13:19:56.002577 - OK 2014-05-14 13:19:56.002577 - BAD!
Output for 5.4.41
2014-05-14 13:19:56.002489 - OK 2014-05-14 13:19:56.002489 - BAD!
Output for 5.4.30, 5.4.40
2014-05-14 13:19:56.002356 - OK 2014-05-14 13:19:56.002356 - BAD!
Output for 5.4.39
2014-05-14 13:19:56.002368 - OK 2014-05-14 13:19:56.002368 - BAD!
Output for 5.4.24, 5.4.38
2014-05-14 13:19:56.002365 - OK 2014-05-14 13:19:56.002365 - BAD!
Output for 5.4.37
2014-05-14 13:19:56.003145 - OK 2014-05-14 13:19:56.003145 - BAD!
Output for 5.4.25, 5.4.36
2014-05-14 13:19:56.002357 - OK 2014-05-14 13:19:56.002357 - BAD!
Output for 5.4.35
2014-05-14 13:19:56.002393 - OK 2014-05-14 13:19:56.002393 - BAD!
Output for 5.4.34
2014-05-14 13:19:56.002484 - OK 2014-05-14 13:19:56.002484 - BAD!
Output for 5.4.32
2014-05-14 13:19:56.003298 - OK 2014-05-14 13:19:56.003298 - BAD!
Output for 5.4.20, 5.4.31
2014-05-14 13:19:56.003312 - OK 2014-05-14 13:19:56.003312 - BAD!
Output for 5.3.1, 5.4.29
2014-05-14 13:19:56.002445 - OK 2014-05-14 13:19:56.002445 - BAD!
Output for 5.4.28
2014-05-14 13:19:56.002361 - OK 2014-05-14 13:19:56.002361 - BAD!
Output for 5.4.27
2014-05-14 13:19:56.002336 - OK 2014-05-14 13:19:56.002336 - BAD!
Output for 5.4.26
2014-05-14 13:19:56.002412 - OK 2014-05-14 13:19:56.002412 - BAD!
Output for 5.3.3, 5.4.8, 5.4.23
2014-05-14 13:19:56.002439 - OK 2014-05-14 13:19:56.002439 - BAD!
Output for 5.4.22
2014-05-14 13:19:56.002639 - OK 2014-05-14 13:19:56.002639 - BAD!
Output for 5.4.21
2014-05-14 13:19:56.003886 - OK 2014-05-14 13:19:56.003886 - BAD!
Output for 5.4.19
2014-05-14 13:19:56.003885 - OK 2014-05-14 13:19:56.003885 - BAD!
Output for 5.4.18
2014-05-14 13:19:56.003252 - OK 2014-05-14 13:19:56.003252 - BAD!
Output for 5.4.17
2014-05-14 13:19:56.004220 - OK 2014-05-14 13:19:56.004220 - BAD!
Output for 5.4.16
2014-05-14 13:19:56.003144 - OK 2014-05-14 13:19:56.003144 - BAD!
Output for 5.4.15
2014-05-14 13:19:56.004020 - OK 2014-05-14 13:19:56.004020 - BAD!
Output for 5.4.9, 5.4.14
2014-05-14 13:19:56.002043 - OK 2014-05-14 13:19:56.002043 - BAD!
Output for 5.4.13
2014-05-14 13:19:56.002455 - OK 2014-05-14 13:19:56.002455 - BAD!
Output for 5.4.12
2014-05-14 13:19:56.002487 - OK 2014-05-14 13:19:56.002487 - BAD!
Output for 5.4.11
2014-05-14 13:19:56.002141 - OK 2014-05-14 13:19:56.002141 - BAD!
Output for 5.4.10
2014-05-14 13:19:56.002331 - OK 2014-05-14 13:19:56.002331 - BAD!
Output for 5.4.7
2014-05-14 13:19:56.002177 - OK 2014-05-14 13:19:56.002177 - BAD!
Output for 5.4.6
2014-05-14 13:19:56.002382 - OK 2014-05-14 13:19:56.002382 - BAD!
Output for 5.4.5
2014-05-14 13:19:56.002464 - OK 2014-05-14 13:19:56.002464 - BAD!
Output for 5.4.4
2014-05-14 13:19:56.002106 - OK 2014-05-14 13:19:56.002106 - BAD!
Output for 5.4.3
2014-05-14 13:19:56.001482 - OK 2014-05-14 13:19:56.001482 - BAD!
Output for 5.4.2
2014-05-14 13:19:56.002233 - OK 2014-05-14 13:19:56.002233 - BAD!
Output for 5.4.1
2014-05-14 13:19:56.002432 - OK 2014-05-14 13:19:56.002432 - BAD!
Output for 5.4.0
2014-05-14 13:19:56.001955 - OK 2014-05-14 13:19:56.001955 - BAD!
Output for 5.3.29
2014-05-14 13:19:56.001527 - OK 2014-05-14 13:19:56.001527 - BAD!
Output for 5.3.28
2014-05-14 13:19:56.001331 - OK 2014-05-14 13:19:56.001331 - BAD!
Output for 5.3.27
2014-05-14 13:19:56.002470 - OK 2014-05-14 13:19:56.002470 - BAD!
Output for 5.3.26
2014-05-14 13:19:56.002300 - OK 2014-05-14 13:19:56.002300 - BAD!
Output for 5.3.25
2014-05-14 13:19:56.002150 - OK 2014-05-14 13:19:56.002150 - BAD!
Output for 5.3.24
2014-05-14 13:19:56.001851 - OK 2014-05-14 13:19:56.001851 - BAD!
Output for 5.3.23
2014-05-14 13:19:56.001666 - OK 2014-05-14 13:19:56.001666 - BAD!
Output for 5.3.22
2014-05-14 13:19:56.002402 - OK 2014-05-14 13:19:56.002402 - BAD!
Output for 5.3.21
2014-05-14 13:19:56.002254 - OK 2014-05-14 13:19:56.002254 - BAD!
Output for 5.3.20
2014-05-14 13:19:56.002074 - OK 2014-05-14 13:19:56.002074 - BAD!
Output for 5.3.19
2014-05-14 13:19:56.001808 - OK 2014-05-14 13:19:56.001808 - BAD!
Output for 5.3.18
2014-05-14 13:19:56.001687 - OK 2014-05-14 13:19:56.001687 - BAD!
Output for 5.3.17
2014-05-14 13:19:56.002373 - OK 2014-05-14 13:19:56.002373 - BAD!
Output for 5.3.16
2014-05-14 13:19:56.001888 - OK 2014-05-14 13:19:56.001888 - BAD!
Output for 5.3.15
2014-05-14 13:19:56.001471 - OK 2014-05-14 13:19:56.001471 - BAD!
Output for 5.2.13, 5.3.14
2014-05-14 13:19:56.001693 - OK 2014-05-14 13:19:56.001693 - BAD!
Output for 5.3.13
2014-05-14 13:19:56.001965 - OK 2014-05-14 13:19:56.001965 - BAD!
Output for 5.3.12
2014-05-14 13:19:56.002438 - OK 2014-05-14 13:19:56.002438 - BAD!
Output for 5.3.11
2014-05-14 13:19:56.002319 - OK 2014-05-14 13:19:56.002319 - BAD!
Output for 5.3.10
2014-05-14 13:19:56.002037 - OK 2014-05-14 13:19:56.002037 - BAD!
Output for 5.3.9
2014-05-14 13:19:56.002001 - OK 2014-05-14 13:19:56.002001 - BAD!
Output for 5.3.8
2014-05-14 13:19:56.002409 - OK 2014-05-14 13:19:56.002409 - BAD!
Output for 5.3.7
2014-05-14 13:19:56.002415 - OK 2014-05-14 13:19:56.002415 - BAD!
Output for 5.3.6
2014-05-14 13:19:56.002118 - OK 2014-05-14 13:19:56.002118 - BAD!
Output for 5.3.5
2014-05-14 13:19:56.002058 - OK 2014-05-14 13:19:56.002058 - BAD!
Output for 5.3.4
2014-05-14 13:19:56.002111 - OK 2014-05-14 13:19:56.002111 - BAD!
Output for 5.3.2
2014-05-14 13:19:56.002429 - OK 2014-05-14 13:19:56.002429 - BAD!
Output for 5.3.0
2014-05-14 13:19:56.001732 - OK 2014-05-14 13:19:56.001732 - BAD!
Output for 5.2.17
2014-05-14 13:19:56.001513 - OK 2014-05-14 13:19:56.001513 - BAD!
Output for 5.2.16
2014-05-14 13:19:56.002397 - OK 2014-05-14 13:19:56.002397 - BAD!
Output for 5.2.15
2014-05-14 13:19:56.001740 - OK 2014-05-14 13:19:56.001740 - BAD!
Output for 5.2.14
2014-05-14 13:19:56.001460 - OK 2014-05-14 13:19:56.001460 - BAD!
Output for 5.2.12
2014-05-14 13:19:56.002075 - OK 2014-05-14 13:19:56.002075 - BAD!
Output for 5.2.11
2014-05-14 13:19:56.001545 - OK 2014-05-14 13:19:56.001545 - BAD!
Output for 5.2.10
2014-05-14 13:19:56.001727 - OK 2014-05-14 13:19:56.001727 - BAD!
Output for 5.2.9
2014-05-14 13:19:56.001431 - OK 2014-05-14 13:19:56.001431 - BAD!
Output for 5.2.8
2014-05-14 13:19:56.001750 - OK 2014-05-14 13:19:56.001750 - BAD!
Output for 5.2.7
2014-05-14 13:19:56.001085 - OK 2014-05-14 13:19:56.001085 - BAD!
Output for 5.2.6
2014-05-14 13:19:56.002521 - OK 2014-05-14 13:19:56.002521 - BAD!
Output for 5.2.5
2014-05-14 13:19:56.001971 - OK 2014-05-14 13:19:56.001971 - BAD!
Output for 5.2.4
2014-05-14 13:19:56.001858 - OK 2014-05-14 13:19:56.001858 - BAD!
Output for 5.2.3
2014-05-14 13:19:56.001854 - OK 2014-05-14 13:19:56.001854 - BAD!
Output for 5.2.2
2014-05-14 13:19:56.001584 - OK 2014-05-14 13:19:56.001584 - BAD!
Output for 5.2.0 - 5.2.1
2014-05-14 13:19:56.u - OK 2014-05-14 13:19:56.u - BAD!
Output for 5.1.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/OkRs5 on line 8
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Fatal error: Call to undefined function date_default_timezone_set() in /in/OkRs5 on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: date_default_timezone_set() in /in/OkRs5 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: date_default_timezone_set() in /in/OkRs5 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: date_default_timezone_set() in /in/OkRs5 on line 3