3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $start = microtime(1); for ($i =0; $i < 10000; $i++) { mt_rand(); } echo (microtime(1) - $start) . "\n"; $start = microtime(1); for ($i =0; $i < 10000; $i++) { md5(mt_rand()); } echo (microtime(1) - $start) . "\n"; $start = microtime(1); for ($i =0; $i < 10000; $i++) { md5(microtime(true)); } echo (microtime(1) - $start) . "\n"; $start = microtime(1); for ($i =0; $i < 10000; $i++) { uniqid(true); } echo (microtime(1) - $start) . "\n";
Output for 7.1.0
0.00031089782714844 0.003756046295166 0.0070149898529053 -0.44416403770447
Output for 7.0.14
0.00037097930908203 0.0044307708740234 0.0079071521759033 0.56958484649658
Output for 7.0.10
0.00033998489379883 0.00313401222229 0.007044792175293 0.56652212142944
Output for 7.0.9
0.00020694732666016 0.0027010440826416 0.0056378841400146 0.55128288269043
Output for 7.0.8
0.00022411346435547 0.0029110908508301 0.0063621997833252 0.5407350063324
Output for 7.0.7
0.00020694732666016 0.0027048587799072 0.0055580139160156 0.5421838760376
Output for 7.0.6
0.00025391578674316 0.0033531188964844 0.0067629814147949 0.54215216636658
Output for 7.0.5
0.00032687187194824 0.0042550563812256 0.0089051723480225 0.56098914146423
Output for 7.0.4
0.00025391578674316 0.0032520294189453 0.0070209503173828 0.55634498596191
Output for 7.0.3
0.00029802322387695 0.0039470195770264 0.0081250667572021 0.54466795921326
Output for 7.0.2
0.00020718574523926 0.0026350021362305 0.005526065826416 0.55110311508179
Output for 7.0.1
0.00031399726867676 0.0036029815673828 0.0063240528106689 0.56171083450317
Output for 7.0.0
0.00020909309387207 0.0026659965515137 0.0055110454559326 0.54603409767151
Output for 5.6.25
0.00078797340393066 0.0052790641784668 0.0098390579223633 0.54440712928772
Output for 5.6.24
0.00082492828369141 0.0059208869934082 0.010282039642334 0.54377579689026
Output for 5.6.23
0.0005028247833252 0.0034651756286621 0.0070819854736328 0.54157495498657
Output for 5.6.22
0.00077009201049805 0.0052728652954102 0.010114192962646 0.54636883735657
Output for 5.6.21
0.00066399574279785 0.0047509670257568 0.0085909366607666 0.54208898544312
Output for 5.6.20
0.00065898895263672 0.0045790672302246 0.0084729194641113 0.55046987533569
Output for 5.6.19
0.00069904327392578 0.0048341751098633 0.0089387893676758 0.56253910064697
Output for 5.6.18
0.0007789134979248 0.0072481632232666 0.011135101318359 0.5476508140564
Output for 5.6.17
0.00080108642578125 0.0052869319915771 0.0081989765167236 0.54351091384888
Output for 5.6.16
0.00078201293945312 0.0055999755859375 0.010146141052246 0.55001783370972
Output for 5.6.15
0.00079798698425293 0.0051698684692383 0.0081348419189453 0.54552102088928
Output for 5.6.14
0.00078105926513672 0.0053970813751221 0.0097699165344238 0.55953311920166
Output for 5.6.13
0.00075984001159668 0.0052578449249268 0.0099098682403564 0.54317498207092
Output for 5.6.12
0.00075793266296387 0.0050771236419678 0.0094540119171143 0.55600810050964
Output for 5.6.11
0.00080704689025879 0.0054709911346436 0.010426998138428 0.55257797241211
Output for 5.6.10
0.00083398818969727 0.0056610107421875 0.010413885116577 0.56452512741089
Output for 5.6.9
0.00071382522583008 0.0052211284637451 0.0093779563903809 0.54560613632202
Output for 5.6.8
0.00065493583679199 0.0042569637298584 0.0090718269348145 0.54732584953308
Output for 5.6.7
0.00049901008605957 0.0034449100494385 0.0065319538116455 0.55935502052307
Output for 5.6.6
0.00089216232299805 0.0061609745025635 0.011323928833008 0.54696416854858
Output for 5.6.5
0.00061702728271484 0.0042738914489746 0.0078451633453369 0.54805397987366
Output for 5.6.4
0.00078201293945312 0.0052289962768555 0.010144948959351 0.54866504669189
Output for 5.6.3
0.00083780288696289 0.0058350563049316 0.010898113250732 0.54366302490234
Output for 5.6.2
0.00079488754272461 0.0054159164428711 0.0085189342498779 0.5584888458252
Output for 5.6.1
0.00084304809570312 0.006080150604248 0.010440111160278 0.55839395523071
Output for 5.6.0
0.00086307525634766 0.0058600902557373 0.010879993438721 0.55566382408142
Output for 5.5.38
0.00079512596130371 0.0080440044403076 0.010830163955688 0.56513595581055
Output for 5.5.37
0.00049686431884766 0.0037248134613037 0.0069310665130615 0.54046702384949
Output for 5.5.36
0.00051999092102051 0.0035970211029053 0.0066590309143066 0.53820109367371
Output for 5.5.35
0.00072193145751953 0.0052230358123779 0.0094249248504639 0.54344391822815
Output for 5.5.34
0.00075197219848633 0.0052869319915771 0.0096898078918457 0.54457211494446
Output for 5.5.33
0.00065517425537109 0.0044898986816406 0.0084290504455566 0.54374313354492
Output for 5.5.32
0.00092792510986328 0.0048120021820068 0.0066299438476562 0.55412602424622
Output for 5.5.31
0.00078892707824707 0.0055639743804932 0.010544061660767 0.54523491859436
Output for 5.5.30
0.00092005729675293 0.0056440830230713 0.0093410015106201 0.54742312431335
Output for 5.5.29
0.00093507766723633 0.0062978267669678 0.011770009994507 0.54645895957947
Output for 5.5.28
0.00083398818969727 0.0050818920135498 0.0084547996520996 0.54395294189453
Output for 5.5.27
0.00073790550231934 0.0053610801696777 0.0099959373474121 0.56301593780518
Output for 5.5.26
0.00082993507385254 0.0054891109466553 0.010313987731934 0.56389904022217
Output for 5.5.25
0.00077700614929199 0.0052139759063721 0.0097861289978027 0.54593300819397
Output for 5.5.24
0.00074601173400879 0.0046310424804688 0.0085129737854004 0.54456615447998
Output for 5.5.23
0.00081610679626465 0.0060210227966309 0.011065006256104 0.56101679801941
Output for 5.5.22
0.00063014030456543 0.0044240951538086 0.0086019039154053 0.56278586387634
Output for 5.5.21
0.00082206726074219 0.0057880878448486 0.010719060897827 0.5681312084198
Output for 5.5.20
0.00087499618530273 0.0059890747070312 0.010916948318481 0.56852388381958
Output for 5.5.19
0.00075411796569824 0.005403995513916 0.010004043579102 0.56586909294128
Output for 5.5.18
0.00072216987609863 0.0048010349273682 0.0090007781982422 0.55836200714111
Output for 5.5.16
0.00083708763122559 0.0060899257659912 0.010503053665161 0.55894780158997
Output for 5.5.15
0.00063610076904297 0.0041329860687256 0.0085539817810059 0.57460594177246
Output for 5.5.14
0.0006098747253418 0.0043709278106689 0.0082070827484131 0.54370498657227
Output for 5.5.13
0.00041413307189941 0.0029890537261963 0.00553297996521 0.54718589782715
Output for 5.5.12
0.0005640983581543 0.0039458274841309 0.0077259540557861 0.54051184654236
Output for 5.5.11
0.00069308280944824 0.0036978721618652 0.0067281723022461 0.5429151058197
Output for 5.5.10
0.00049495697021484 0.0035479068756104 0.0066308975219727 0.538498878479
Output for 5.5.9
0.00049805641174316 0.0035979747772217 0.0069169998168945 0.53955507278442
Output for 5.5.8
0.00049901008605957 0.0035429000854492 0.0067288875579834 0.55087900161743
Output for 5.5.7
0.00087690353393555 0.0061008930206299 0.011559009552002 0.54981207847595
Output for 5.5.6
0.00086402893066406 0.0061759948730469 0.011246919631958 0.54795789718628
Output for 5.5.5
0.0006248950958252 0.0037839412689209 0.0068471431732178 0.54471397399902
Output for 5.5.4
0.00080418586730957 0.0055348873138428 0.010465145111084 0.55027604103088
Output for 5.5.3
0.00084805488586426 0.0061671733856201 0.01046895980835 0.55152106285095
Output for 5.5.2
0.00065088272094727 0.0046801567077637 0.0080380439758301 0.56682205200195
Output for 5.5.1
0.00075197219848633 0.0052878856658936 0.0098400115966797 0.54780292510986
Output for 5.5.0
0.00068306922912598 0.0047459602355957 0.0082700252532959 0.56292295455933
Output for 5.4.45
0.0013999938964844 0.008436918258667 0.01480507850647 0.55864810943604
Output for 5.4.44
0.00073909759521484 0.0048799514770508 0.0088560581207275 0.54659509658813
Output for 5.4.43
0.00080704689025879 0.0052890777587891 0.0097081661224365 0.54840683937073
Output for 5.4.42
0.00089788436889648 0.0047950744628906 0.0087490081787109 0.546306848526
Output for 5.4.41
0.00090193748474121 0.0054640769958496 0.0080859661102295 0.54404401779175
Output for 5.4.40
0.00075602531433105 0.0050091743469238 0.0092039108276367 0.54902696609497
Output for 5.4.39
0.00074601173400879 0.0049059391021729 0.0090799331665039 0.55350804328918
Output for 5.4.38
0.0009000301361084 0.0057258605957031 0.010350942611694 0.54358291625977
Output for 5.4.37
0.0006721019744873 0.004749059677124 0.0080869197845459 0.57784485816956
Output for 5.4.36
0.00061607360839844 0.0039999485015869 0.0074169635772705 0.54461216926575
Output for 5.4.35
0.00090503692626953 0.0056521892547607 0.0088989734649658 0.55211710929871
Output for 5.4.34
0.00083494186401367 0.0055007934570312 0.0099859237670898 0.54479384422302
Output for 5.4.32
0.00087690353393555 0.0052030086517334 0.0087959766387939 0.56937193870544
Output for 5.4.31
0.00072193145751953 0.0041279792785645 0.0065488815307617 0.55261611938477
Output for 5.4.30
0.00053715705871582 0.0035660266876221 0.0065310001373291 0.53930687904358
Output for 5.4.29
0.00056004524230957 0.0034799575805664 0.0060708522796631 0.54339814186096
Output for 5.4.28
0.00059986114501953 0.0045340061187744 0.0091800689697266 0.5517909526825
Output for 5.4.27
0.00066900253295898 0.0044260025024414 0.007267951965332 0.53810620307922
Output for 5.4.26
0.00090980529785156 0.0054340362548828 0.0097670555114746 0.54066610336304
Output for 5.4.25
0.00055098533630371 0.0035250186920166 0.0065770149230957 0.53756093978882
Output for 5.4.24
0.0007779598236084 0.0052139759063721 0.0097770690917969 0.55203104019165
Output for 5.4.23
0.00086116790771484 0.0055999755859375 0.011343955993652 0.55731320381165
Output for 5.4.22
0.00092101097106934 0.0064311027526855 0.0103440284729 0.55432391166687
Output for 5.4.21
0.00070381164550781 0.0046069622039795 0.0095460414886475 0.54677700996399
Output for 5.4.20
0.00069999694824219 0.0045628547668457 0.0086269378662109 0.56164813041687
Output for 5.4.19
0.001039981842041 0.0047838687896729 0.0083408355712891 0.56638479232788
Output for 5.4.18
0.0007328987121582 0.0049619674682617 0.0093040466308594 0.54473090171814
Output for 5.4.17
0.0005500316619873 0.0036680698394775 0.0068819522857666 0.54434490203857
Output for 5.4.16
0.0010130405426025 0.0058679580688477 0.010450124740601 0.56407690048218
Output for 5.4.15
0.0010061264038086 0.0061080455780029 0.01124119758606 0.56456613540649
Output for 5.4.14
0.00075912475585938 0.0051729679107666 0.0092852115631104 0.54594802856445
Output for 5.4.13
0.00098800659179688 0.0061202049255371 0.010692119598389 0.54602193832397
Output for 5.4.12
0.00093483924865723 0.0062131881713867 0.011948108673096 0.54644107818604
Output for 5.4.11
0.00080418586730957 0.0064599514007568 0.0085740089416504 0.55706214904785
Output for 5.4.10
0.00095582008361816 0.006044864654541 0.011129140853882 0.54597496986389
Output for 5.4.9
0.00086498260498047 0.0052981376647949 0.0098309516906738 0.54385495185852
Output for 5.4.8
0.00082087516784668 0.0059890747070312 0.0098049640655518 0.54838895797729
Output for 5.4.7
0.00087618827819824 0.0057651996612549 0.010270833969116 0.54623413085938
Output for 5.4.6
0.00094699859619141 0.0060470104217529 0.010801792144775 0.55397486686707
Output for 5.4.5
0.00055098533630371 0.0036168098449707 0.0065610408782959 0.54340600967407
Output for 5.4.4
0.00094199180603027 0.0060851573944092 0.011222124099731 0.56303119659424
Output for 5.4.3
0.0010080337524414 0.0061421394348145 0.011475086212158 0.55995416641235
Output for 5.4.2
0.00089097023010254 0.0055608749389648 0.010236024856567 0.55193519592285
Output for 5.4.1
0.00054097175598145 0.003648042678833 0.0067100524902344 0.54369401931763
Output for 5.4.0
0.00077700614929199 0.0053689479827881 0.0095310211181641 0.54245591163635
Output for 5.3.29
0.00088381767272949 0.0059969425201416 0.0089290142059326 0.54405903816223
Output for 5.3.28
0.0010499954223633 0.0073390007019043 0.0088889598846436 0.54649996757507
Output for 5.3.27
0.00089406967163086 0.0070750713348389 0.010462999343872 0.55804300308228
Output for 5.3.26
0.0010361671447754 0.008242130279541 0.012140035629272 0.5461688041687
Output for 5.3.25
0.00098705291748047 0.0080649852752686 0.010610818862915 0.56079196929932
Output for 5.3.24
0.00085997581481934 0.0068910121917725 0.010426044464111 0.54682087898254
Output for 5.3.23
0.001187801361084 0.008026123046875 0.01178503036499 0.56245899200439
Output for 5.3.22
0.0018889904022217 0.0083229541778564 0.012671947479248 0.54896998405457
Output for 5.3.21
0.00086116790771484 0.0061159133911133 0.009246826171875 0.55138301849365
Output for 5.3.20
0.00069713592529297 0.0054671764373779 0.0071752071380615 0.55894088745117
Output for 5.3.19
0.00065422058105469 0.004622220993042 0.007227897644043 0.54943680763245
Output for 5.3.18
0.0011589527130127 0.0076689720153809 0.011729001998901 0.55290102958679
Output for 5.3.17
0.00118088722229 0.0079159736633301 0.010890007019043 0.57257008552551
Output for 5.3.16
0.0011088848114014 0.0073339939117432 0.011198997497559 0.55160999298096
Output for 5.3.15
0.0010359287261963 0.0066649913787842 0.0079150199890137 0.56657910346985
Output for 5.3.14
0.0010969638824463 0.0064630508422852 0.0099139213562012 0.55765295028687
Output for 5.3.13
0.00086402893066406 0.0058391094207764 0.009037971496582 0.54604411125183
Output for 5.3.12
0.00083518028259277 0.0056829452514648 0.0089461803436279 0.54453992843628
Output for 5.3.11
0.0011031627655029 0.0070450305938721 0.01121187210083 0.54887294769287
Output for 5.3.10
0.0011360645294189 0.0075650215148926 0.0121910572052 0.54713606834412
Output for 5.3.9
0.00088191032409668 0.0058391094207764 0.0093321800231934 0.54969811439514
Output for 5.3.8
0.00076699256896973 0.0048861503601074 0.0076010227203369 0.55633902549744
Output for 5.3.7
0.0014519691467285 0.0062699317932129 0.0096859931945801 0.56176996231079
Output for 5.3.6
0.001162052154541 0.0073750019073486 0.01131010055542 0.56635713577271
Output for 5.3.5
0.00083303451538086 0.0053009986877441 0.0092039108276367 0.54325008392334
Output for 5.3.4
0.00078511238098145 0.0050139427185059 0.0078129768371582 0.5532557964325
Output for 5.3.3
0.0011739730834961 0.0074560642242432 0.010408163070679 0.54881691932678
Output for 5.3.2
0.0010058879852295 0.0066471099853516 0.01081395149231 0.56076002120972
Output for 5.3.1
0.0011599063873291 0.0076549053192139 0.012002944946289 0.55913901329041
Output for 5.3.0
0.0010390281677246 0.0061478614807129 0.010012865066528 0.55254316329956
Output for 5.2.17
0.0011758804321289 0.0067181587219238 0.0089280605316162 0.55466198921204
Output for 5.2.16
0.0015051364898682 0.0092549324035645 0.013049125671387 0.54641103744507
Output for 5.2.15
0.0012900829315186 0.0080029964447021 0.011840105056763 0.55961394309998
Output for 5.2.14
0.00078701972961426 0.0048680305480957 0.0077719688415527 0.5463080406189
Output for 5.2.13
0.0013270378112793 0.0082459449768066 0.011937856674194 0.55331897735596
Output for 5.2.12
0.0013329982757568 0.0078229904174805 0.0097470283508301 0.54703402519226
Output for 5.2.11
0.0012030601501465 0.0077438354492188 0.011812925338745 0.55416202545166
Output for 5.2.10
0.0013790130615234 0.0086221694946289 0.012764930725098 0.55041885375977
Output for 5.2.9
0.0014839172363281 0.0078020095825195 0.010901212692261 0.55468893051147
Output for 5.2.8
0.00078320503234863 0.0049140453338623 0.0078780651092529 0.54424786567688
Output for 5.2.7
0.00079989433288574 0.0057029724121094 0.0087578296661377 0.5434889793396
Output for 5.2.6
0.00095295906066895 0.005958080291748 0.0083439350128174 0.54610419273376
Output for 5.2.5
0.0007789134979248 0.0048849582672119 0.0070290565490723 0.54242205619812
Output for 5.2.4
0.00079798698425293 0.005018949508667 0.0071868896484375 0.53867506980896
Output for 5.2.3
0.00080490112304688 0.0048010349273682 0.0070829391479492 0.54047799110413
Output for 5.2.2
0.00078392028808594 0.018037080764771 0.020829916000366 0.53724908828735
Output for 5.2.1
0.0014138221740723 0.030785083770752 0.038026094436646 0.54419183731079
Output for 5.2.0
0.00088095664978027 0.019381999969482 0.027980089187622 0.56058692932129
Output for 5.1.6
0.00088405609130859 0.019952058792114 0.026679992675781 0.56089496612549
Output for 5.1.5
0.0015480518341064 0.030157089233398 0.033545017242432 0.55155897140503
Output for 5.1.4
0.0015308856964111 0.033557891845703 0.03758692741394 0.57611012458801
Output for 5.1.3
0.0015170574188232 0.024441003799438 0.035394906997681 0.57075500488281
Output for 5.1.2
0.0030820369720459 0.032680988311768 0.0401930809021 0.56638813018799
Output for 5.1.1
0.0013449192047119 0.027809143066406 0.031800031661987 0.54679417610168
Output for 5.1.0
0.0011279582977295 0.025184869766235 0.033612966537476 0.55740904808044
Output for 5.0.5
0.0017609596252441 0.023521900177002 0.031687021255493 0.54766392707825
Output for 5.0.4
0.0029699802398682 0.035824060440063 0.041985988616943 0.55980706214905
Output for 5.0.3
0.0025491714477539 0.031700849533081 0.035696029663086 0.54903888702393
Output for 5.0.2
0.0026390552520752 0.03220796585083 0.037223100662231 0.56633305549622
Output for 5.0.1
0.003054141998291 0.034357070922852 0.042588949203491 0.55793309211731
Output for 5.0.0
0.0027170181274414 0.030767917633057 0.03901195526123 0.55964398384094
Output for 4.4.9
0.001338 0.018561 0.019974 0.546803
Output for 4.4.8
0.00164 0.021426 0.022507 0.548673
Output for 4.4.7
0.002548 0.02487 0.024954 0.543512
Output for 4.4.6
0.002989 0.03711 0.032987 0.543361
Output for 4.4.5
0.002849 0.030536 0.02728 0.548722
Output for 4.4.4
0.002772 0.031499 0.030887 0.546439
Output for 4.4.3
0.001407 0.01888 0.020651 0.551927
Output for 4.4.2
0.002708 0.034102 0.031324 0.569385
Output for 4.4.1
0.001675 0.019909 0.022097 0.552614
Output for 4.4.0
0.001449 0.019047 0.020887 0.569728
Output for 4.3.11
0.002849 0.034607 0.0341 0.54778
Output for 4.3.10
0.002971 0.035704 0.035301 0.566559
Output for 4.3.9
0.001827 0.019524 0.023121 0.549692
Output for 4.3.8
0.002166 0.026532 0.031618 0.571458
Output for 4.3.7
0.002996 0.034504 0.036793 0.571329
Output for 4.3.6
0.002662 0.031367 0.032855 0.550311
Output for 4.3.5
0.001433 0.018184 0.021599 0.571706
Output for 4.3.4
0.002475 0.026137 0.026572 0.548727
Output for 4.3.3
0.002388 0.029251 0.031982 0.548144
Output for 4.3.2
0.029877 0.048801 0.022433 0.554196
Output for 4.3.1
0.018717 0.035275 0.022142 0.549308
Output for 4.3.0
0.034806 0.04815 0.026071 0.554467