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(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.00019407272338867 -0.0024869441986084 -0.56319499015808
Output for 7.0.14
0.00037002563476562 0.0080058574676514 -0.22964382171631
Output for 7.0.10
0.0002589225769043 0.0070381164550781 0.54373288154602
Output for 7.0.9
0.00023293495178223 0.0062830448150635 0.54546809196472
Output for 7.0.8
0.0002589225769043 0.0070598125457764 0.54700899124146
Output for 7.0.7
0.00033903121948242 0.0089290142059326 0.54550194740295
Output for 7.0.6
0.00027298927307129 0.0065457820892334 0.5566098690033
Output for 7.0.5
0.00030803680419922 0.0079660415649414 0.56428003311157
Output for 7.0.4
0.00033998489379883 0.008882999420166 0.56360483169556
Output for 7.0.3
0.00034213066101074 0.0089988708496094 0.56580400466919
Output for 7.0.2
0.0002131462097168 0.0071849822998047 0.58799695968628
Output for 7.0.1
0.00034999847412109 0.0090911388397217 0.54878902435303
Output for 7.0.0
0.00029706954956055 0.0078499317169189 0.55218911170959
Output for hhvm-3.12.0
0.001230001449585 0.010844230651855 0.85049200057983
Output for hhvm-3.10.0
0.0013949871063232 0.010998010635376 0.84257411956787
Output for 5.6.28
0.00105881690979 0.011067867279053 -0.42008996009827
Output for 5.6.25
0.00071597099304199 0.0094149112701416 0.56367182731628
Output for 5.6.24
0.00085210800170898 0.01028299331665 0.54473495483398
Output for 5.6.23
0.00072407722473145 0.0078291893005371 0.53750395774841
Output for 5.6.22
0.00081396102905273 0.010389089584351 0.54697799682617
Output for 5.6.21
0.00087904930114746 0.011226892471313 0.55269289016724
Output for 5.6.20
0.00077009201049805 0.0087158679962158 0.55076503753662
Output for 5.6.19
0.0006721019744873 0.0076260566711426 0.5633111000061
Output for 5.6.18
0.0013730525970459 0.016857147216797 0.5549488067627
Output for 5.6.17
0.00075316429138184 0.0098609924316406 0.54747295379639
Output for 5.6.16
0.00082898139953613 0.010828018188477 0.54433393478394
Output for 5.6.15
0.00074005126953125 0.0081491470336914 0.56386709213257
Output for 5.6.14
0.00071597099304199 0.0092699527740479 0.54547500610352
Output for 5.6.13
0.00066089630126953 0.0077087879180908 0.55346918106079
Output for 5.6.12
0.00076198577880859 0.0098929405212402 0.54701805114746
Output for 5.6.11
0.00082302093505859 0.010966062545776 0.55308699607849
Output for 5.6.10
0.00064802169799805 0.0077230930328369 0.53603506088257
Output for 5.6.9
0.00053596496582031 0.0071148872375488 0.54086494445801
Output for 5.6.8
0.00081920623779297 0.010022878646851 0.54328203201294
Output for 5.6.7
0.00050115585327148 0.0065131187438965 0.5449321269989
Output for 5.6.6
0.00084090232849121 0.010442018508911 0.5652060508728
Output for 5.6.5
0.00065994262695312 0.0094089508056641 0.54860901832581
Output for 5.6.4
0.00088095664978027 0.010873079299927 0.56627202033997
Output for 5.6.3
0.0007939338684082 0.0095171928405762 0.55040311813354
Output for 5.6.2
0.00065207481384277 0.0084779262542725 0.54893898963928
Output for 5.6.1
0.00096297264099121 0.0088949203491211 0.56234788894653
Output for 5.6.0
0.00065994262695312 0.008368968963623 0.54434490203857
Output for 5.5.38
0.0006709098815918 0.0093569755554199 0.54549908638
Output for 5.5.37
0.00084900856018066 0.011127948760986 0.56229901313782
Output for 5.5.36
0.00067281723022461 0.0084009170532227 0.54303789138794
Output for 5.5.35
0.00075817108154297 0.0098388195037842 0.56820917129517
Output for 5.5.34
0.00073885917663574 0.01000714302063 0.55796885490417
Output for 5.5.33
0.00082302093505859 0.01087498664856 0.57172107696533
Output for 5.5.32
0.0013000965118408 0.016402006149292 0.5679349899292
Output for 5.5.31
0.00070500373840332 0.0095279216766357 0.54440903663635
Output for 5.5.30
0.00077486038208008 0.010308980941772 0.56520795822144
Output for 5.5.29
0.00084209442138672 0.010411024093628 0.56830096244812
Output for 5.5.28
0.00074005126953125 0.0091788768768311 0.55170702934265
Output for 5.5.27
0.0006260871887207 0.0085048675537109 0.54408097267151
Output for 5.5.26
0.0007328987121582 0.010882139205933 0.5534200668335
Output for 5.5.25
0.00051498413085938 0.0066251754760742 0.53833699226379
Output for 5.5.24
0.00049591064453125 0.0068769454956055 0.53763008117676
Output for 5.5.23
0.00071287155151367 0.0094480514526367 0.55299496650696
Output for 5.5.22
0.00079894065856934 0.010096073150635 0.55941295623779
Output for 5.5.21
0.00078606605529785 0.010518074035645 0.54714798927307
Output for 5.5.20
0.00083208084106445 0.010461807250977 0.55164289474487
Output for 5.5.19
0.00085806846618652 0.011263132095337 0.55618691444397
Output for 5.5.18
0.00067806243896484 0.0096848011016846 0.55074405670166
Output for 5.5.16
0.00094199180603027 0.010846138000488 0.55845999717712
Output for 5.5.15
0.00077199935913086 0.008465051651001 0.54329514503479
Output for 5.5.14
0.00081896781921387 0.010794878005981 0.57057213783264
Output for 5.5.13
0.00085806846618652 0.011359930038452 0.56281113624573
Output for 5.5.12
0.00081992149353027 0.010893821716309 0.5638439655304
Output for 5.5.11
0.0007469654083252 0.010051012039185 0.56400918960571
Output for 5.5.10
0.00050806999206543 0.0065839290618896 0.54538702964783
Output for 5.5.9
0.00074386596679688 0.0097470283508301 0.55223798751831
Output for 5.5.8
0.00070500373840332 0.009505033493042 0.54874610900879
Output for 5.5.7
0.00075602531433105 0.0094940662384033 0.55800890922546
Output for 5.5.6
0.00075197219848633 0.0099091529846191 0.55663299560547
Output for 5.5.5
0.00077605247497559 0.010463953018188 0.55364298820496
Output for 5.5.4
0.00068902969360352 0.0091540813446045 0.5461540222168
Output for 5.5.3
0.00070405006408691 0.009131908416748 0.56181502342224
Output for 5.5.2
0.00073909759521484 0.008709192276001 0.55569100379944
Output for 5.5.1
0.00065493583679199 0.0087780952453613 0.55471301078796
Output for 5.5.0
0.00088691711425781 0.010640144348145 0.5667769908905
Output for 5.4.45
0.00073790550231934 0.0092170238494873 0.54625105857849
Output for 5.4.44
0.00076198577880859 0.0082798004150391 0.54750108718872
Output for 5.4.43
0.00078201293945312 0.0096421241760254 0.54443693161011
Output for 5.4.42
0.00054693222045898 0.0065348148345947 0.54081392288208
Output for 5.4.41
0.00085902214050293 0.010158061981201 0.54191088676453
Output for 5.4.40
0.00057315826416016 0.0067999362945557 0.53789401054382
Output for 5.4.39
0.00095391273498535 0.010040998458862 0.55797100067139
Output for 5.4.38
0.00078701972961426 0.0077950954437256 0.55136704444885
Output for 5.4.37
0.00076603889465332 0.0094637870788574 0.55874800682068
Output for 5.4.36
0.0009160041809082 0.010630130767822 0.56894993782043
Output for 5.4.35
0.00093317031860352 0.0095698833465576 0.5521719455719
Output for 5.4.34
0.00076699256896973 0.0094349384307861 0.5589771270752
Output for 5.4.32
0.0008540153503418 0.0089340209960938 0.55878305435181
Output for 5.4.31
0.0007779598236084 0.0090630054473877 0.55120611190796
Output for 5.4.30
0.00088882446289062 0.010385990142822 0.56330299377441
Output for 5.4.29
0.00084614753723145 0.010373115539551 0.56690979003906
Output for 5.4.28
0.00082898139953613 0.010650873184204 0.55111289024353
Output for 5.4.27
0.0009458065032959 0.011016130447388 0.55165505409241
Output for 5.4.26
0.00077104568481445 0.0096018314361572 0.55174684524536
Output for 5.4.25
0.00093197822570801 0.010752201080322 0.55560803413391
Output for 5.4.24
0.00082087516784668 0.0099678039550781 0.55071091651917
Output for 5.4.23
0.00075483322143555 0.0091040134429932 0.54858207702637
Output for 5.4.22
0.00068402290344238 0.0081028938293457 0.54463219642639
Output for 5.4.21
0.00094294548034668 0.010612010955811 0.54450821876526
Output for 5.4.20
0.00087785720825195 0.010274887084961 0.56908702850342
Output for 5.4.19
0.00090813636779785 0.0094759464263916 0.54392385482788
Output for 5.4.18
0.0008089542388916 0.0077331066131592 0.54729294776917
Output for 5.4.17
0.00097203254699707 0.0083701610565186 0.55539107322693
Output for 5.4.16
0.0009300708770752 0.011250972747803 0.56817698478699
Output for 5.4.15
0.00094103813171387 0.011151075363159 0.55028986930847
Output for 5.4.14
0.00083303451538086 0.010524034500122 0.54906511306763
Output for 5.4.13
0.00082516670227051 0.0084371566772461 0.55091190338135
Output for 5.4.12
0.00084900856018066 0.010487794876099 0.56162309646606
Output for 5.4.11
0.00089001655578613 0.010607004165649 0.54318904876709
Output for 5.4.10
0.0009758472442627 0.010947942733765 0.56254816055298
Output for 5.4.9
0.00090599060058594 0.010990142822266 0.54499793052673
Output for 5.4.8
0.00060081481933594 0.0072159767150879 0.54192090034485
Output for 5.4.7
0.00065183639526367 0.0073449611663818 0.55350804328918
Output for 5.4.6
0.00075793266296387 0.0084519386291504 0.55875492095947
Output for 5.4.5
0.00050902366638184 0.0073668956756592 0.53780508041382
Output for 5.4.4
0.00054717063903809 0.0068280696868896 0.53880190849304
Output for 5.4.3
0.00053191184997559 0.0067000389099121 0.53718209266663
Output for 5.4.2
0.00092387199401855 0.011088132858276 0.54262399673462
Output for 5.4.1
0.00087690353393555 0.010859966278076 0.54711985588074
Output for 5.4.0
0.00080108642578125 0.0095629692077637 0.54310488700867
Output for 5.3.29
0.0010678768157959 0.011992216110229 0.57396697998047
Output for 5.3.28
0.0011379718780518 0.01015305519104 0.55430293083191
Output for 5.3.27
0.00093388557434082 0.011399984359741 0.57035303115845
Output for 5.3.26
0.0010528564453125 0.010277032852173 0.59114599227905
Output for 5.3.25
0.0009620189666748 0.010277986526489 0.54879879951477
Output for 5.3.24
0.0006709098815918 0.0079581737518311 0.56038594245911
Output for 5.3.23
0.0011119842529297 0.012670040130615 0.55353903770447
Output for 5.3.22
0.0010039806365967 0.010313987731934 0.54465103149414
Output for 5.3.21
0.0009300708770752 0.010096073150635 0.55223703384399
Output for 5.3.20
0.0010178089141846 0.010223865509033 0.54625701904297
Output for 5.3.19
0.00077080726623535 0.0082039833068848 0.54694414138794
Output for 5.3.18
0.0010941028594971 0.01169490814209 0.54650211334229
Output for 5.3.17
0.00083613395690918 0.0093140602111816 0.54035305976868
Output for 5.3.16
0.00075292587280273 0.0098628997802734 0.55096793174744
Output for 5.3.15
0.00083208084106445 0.0093700885772705 0.54564189910889
Output for 5.3.14
0.00067400932312012 0.007361888885498 0.54063582420349
Output for 5.3.13
0.0012249946594238 0.0079300403594971 0.55358004570007
Output for 5.3.12
0.00093197822570801 0.0097799301147461 0.54916095733643
Output for 5.3.11
0.0010998249053955 0.01134204864502 0.56675696372986
Output for 5.3.10
0.0016469955444336 0.011523962020874 0.54773592948914
Output for 5.3.9
0.0011768341064453 0.011700868606567 0.54857707023621
Output for 5.3.8
0.0011968612670898 0.012123107910156 0.55161190032959
Output for 5.3.7
0.0012660026550293 0.011085987091064 0.55986905097961
Output for 5.3.6
0.0011160373687744 0.009904146194458 0.55430293083191
Output for 5.3.5
0.0012350082397461 0.010015964508057 0.5467529296875
Output for 5.3.4
0.0010039806365967 0.01007604598999 0.55837607383728
Output for 5.3.3
0.00083303451538086 0.007537841796875 0.54246497154236
Output for 5.3.2
0.0011680126190186 0.012089014053345 0.55488085746765
Output for 5.3.1
0.0011029243469238 0.011189937591553 0.55371499061584
Output for 5.3.0
0.00118088722229 0.012101888656616 0.55149984359741
Output for 5.2.17
0.00096893310546875 0.0092809200286865 0.55396890640259
Output for 5.2.16
0.0013949871063232 0.012665033340454 0.54674410820007
Output for 5.2.15
0.0010960102081299 0.010403156280518 0.54490900039673
Output for 5.2.14
0.00096797943115234 0.0095109939575195 0.54532980918884
Output for 5.2.13
0.00136399269104 0.011264801025391 0.54497504234314
Output for 5.2.12
0.0011789798736572 0.011332035064697 0.5601179599762
Output for 5.2.11
0.0017549991607666 0.013329029083252 0.54566192626953
Output for 5.2.10
0.0013530254364014 0.011599063873291 0.54407501220703
Output for 5.2.9
0.0010688304901123 0.011103868484497 0.54735088348389
Output for 5.2.8
0.0014359951019287 0.014226198196411 0.54700779914856
Output for 5.2.7
0.0012538433074951 0.011168003082275 0.54550004005432
Output for 5.2.6
0.0013771057128906 0.012076139450073 0.5576958656311
Output for 5.2.5
0.00142502784729 0.012832880020142 0.55145597457886
Output for 5.2.4
0.0013768672943115 0.012875080108643 0.54668593406677
Output for 5.2.3
0.0013067722320557 0.011375904083252 0.5563759803772
Output for 5.2.2
0.0012331008911133 0.025978803634644 0.55314612388611
Output for 5.2.1
0.0013101100921631 0.040498018264771 0.56278896331787
Output for 5.2.0
0.001533031463623 0.039332866668701 0.55727386474609
Output for 5.1.6
0.0011630058288574 0.041301012039185 0.58908796310425
Output for 5.1.5
0.0014820098876953 0.040498971939087 0.55240488052368
Output for 5.1.4
0.001471996307373 0.036610841751099 0.56259202957153
Output for 5.1.3
0.0012989044189453 0.037251949310303 0.55133485794067
Output for 5.1.2
0.0014221668243408 0.036926984786987 0.54804301261902
Output for 5.1.1
0.0014040470123291 0.042355060577393 0.5534520149231
Output for 5.1.0
0.0014579296112061 0.04129695892334 0.54967784881592
Output for 5.0.5
0.0015749931335449 0.030054807662964 0.55078196525574
Output for 5.0.4
0.0017518997192383 0.029460191726685 0.55005121231079
Output for 5.0.3
0.00146484375 0.028629779815674 0.55106091499329
Output for 5.0.2
0.0019869804382324 0.036314964294434 0.55463814735413
Output for 5.0.1
0.0014169216156006 0.028703927993774 0.5462498664856
Output for 5.0.0
0.0021259784698486 0.030285835266113 0.54655313491821
Output for 4.4.9
0.002911 0.039633 0.564087
Output for 4.4.8
0.00293 0.039373 0.550785
Output for 4.4.7
0.005431 0.04407 0.565194
Output for 4.4.6
0.0025 0.031648 0.569778
Output for 4.4.5
0.002466 0.034369 0.560479
Output for 4.4.4
0.00275 0.036929 0.571704
Output for 4.4.3
0.002871 0.035058 0.551616
Output for 4.4.2
0.002866 0.039028 0.557922
Output for 4.4.1
0.001411 0.021783 0.550279
Output for 4.4.0
0.002179 0.030211 0.558343
Output for 4.3.11
0.002846 0.039543 0.550967
Output for 4.3.10
0.001486 0.022422 0.547156
Output for 4.3.9
0.001362 0.022731 0.549849
Output for 4.3.8
0.001389 0.0216 0.548446
Output for 4.3.7
0.00143 0.022237 0.548187
Output for 4.3.6
0.001966 0.025021 0.546821
Output for 4.3.5
0.002598 0.038988 0.550695
Output for 4.3.4
0.001979 0.025529 0.54778
Output for 4.3.3
0.00139 0.021621 0.544668
Output for 4.3.2
0.016531 0.02233 0.549904
Output for 4.3.1
0.015443 0.023102 0.542913
Output for 4.3.0
0.01646 0.021529 0.550619