3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array_fill(0, 200, 0); $time = microtime(true); for ($i = 0; $i <= 100000; $i++) { array_merge($array); } var_dump(microtime(true) - $time); $time = microtime(true); for ($i = 0; $i <= 100000; $i++) { array_values($array); } var_dump(microtime(true) - $time);
based on 1Q4DD
Output for 7.1.0
float(0.010705947875977) float(-0.058619022369385)
Output for 7.0.14
float(-0.086614847183228) float(-0.047402858734131)
Output for 7.0.6
float(0.16923213005066) float(0.054302930831909)
Output for 7.0.5
float(0.15472412109375) float(0.045488119125366)
Output for 7.0.4
float(0.15330600738525) float(0.046259880065918)
Output for 7.0.3
float(0.12955403327942) float(0.045828104019165)
Output for 7.0.2
float(0.14201211929321) float(0.046297073364258)
Output for 7.0.1
float(0.1256320476532) float(0.045490980148315)
Output for 7.0.0
float(0.14043617248535) float(0.046654939651489)
Output for hhvm-3.12.0
float(0.0096039772033691) float(0.22469305992126)
Output for hhvm-3.10.0
float(0.013519048690796) float(0.2124719619751)
Output for 5.6.28
float(-0.65372705459595) float(1.3565411567688)
Output for 5.6.21
float(0.50365090370178) float(0.52984619140625)
Output for 5.6.20
float(0.76941204071045) float(0.51338887214661)
Output for 5.6.19
float(0.51733493804932) float(0.52253317832947)
Output for 5.6.18
float(0.51415085792542) float(0.50726699829102)
Output for 5.6.17
float(0.48809289932251) float(0.50115919113159)
Output for 5.6.16
float(0.52875399589539) float(0.50708413124084)
Output for 5.6.15
float(0.55684089660645) float(0.51295876502991)
Output for 5.6.14
float(0.53072381019592) float(0.50996518135071)
Output for 5.6.13
float(0.50596690177917) float(0.50165390968323)
Output for 5.6.12
float(0.51343703269958) float(0.51608681678772)
Output for 5.6.11
float(0.49812507629395) float(0.51038408279419)
Output for 5.6.10
float(0.55274295806885) float(0.58734703063965)
Output for 5.6.9
float(0.50074696540833) float(0.50402402877808)
Output for 5.6.8
float(0.5363621711731) float(0.51162219047546)
Output for 5.5.35
float(0.51227998733521) float(0.45229315757751)
Output for 5.5.34
float(0.52598690986633) float(0.54635691642761)
Output for 5.5.33
float(0.51501393318176) float(0.5213840007782)
Output for 5.5.32
float(0.53777194023132) float(0.50892782211304)
Output for 5.5.31
float(0.49928402900696) float(0.50224900245667)
Output for 5.5.30
float(0.50881600379944) float(0.51771903038025)
Output for 5.5.29
float(0.53674292564392) float(0.55640602111816)
Output for 5.5.28
float(0.5382878780365) float(0.54004907608032)
Output for 5.5.27
float(0.52608799934387) float(0.5057590007782)
Output for 5.5.26
float(0.52478790283203) float(0.53607392311096)
Output for 5.5.25
float(0.5766749382019) float(0.54964399337769)
Output for 5.5.24
float(0.54221391677856) float(0.50907301902771)
Output for 5.4.45
float(0.96122789382935) float(0.47902393341064)
Output for 5.4.44
float(0.92623281478882) float(0.48779797554016)
Output for 5.4.43
float(0.94588899612427) float(0.48879814147949)
Output for 5.4.42
float(0.94446086883545) float(0.4912691116333)
Output for 5.4.41
float(0.97021102905273) float(0.56072592735291)
Output for 5.4.40
float(1.172826051712) float(0.62008619308472)
Output for 5.4.39
float(1.1883111000061) float(0.6535861492157)
Output for 5.4.38
float(0.9838559627533) float(0.51553010940552)
Output for 5.4.37
float(0.99235200881958) float(0.51490688323975)
Output for 5.4.36
float(0.93953895568848) float(0.4955530166626)
Output for 5.4.35
float(1.2023661136627) float(0.64620089530945)
Output for 5.4.34
float(1.2197580337524) float(0.617595911026)
Output for 5.4.32
float(1.184445142746) float(0.70074796676636)
Output for 5.4.31
float(1.245099067688) float(0.70179200172424)
Output for 5.4.30
float(1.4184808731079) float(0.59325695037842)
Output for 5.4.29
float(1.2532970905304) float(0.66339516639709)
Output for 5.4.28
float(1.4655311107635) float(0.97323894500732)
Output for 5.4.27
float(1.737067937851) float(0.61272001266479)
Output for 5.4.26
float(1.3677909374237) float(0.71351790428162)
Output for 5.4.25
float(1.4884359836578) float(0.66982579231262)
Output for 5.4.24
float(1.2835278511047) float(0.60499501228333)
Output for 5.4.23
float(1.2765409946442) float(0.66149616241455)
Output for 5.4.22
float(1.2182221412659) float(0.58717918395996)
Output for 5.4.21
float(1.345253944397) float(0.81408381462097)
Output for 5.4.20
float(1.3166048526764) float(0.66133499145508)
Output for 5.4.19
float(1.2067420482635) float(0.57552003860474)
Output for 5.4.18
float(1.2705512046814) float(0.60948705673218)
Output for 5.4.17
float(1.349408864975) float(0.7787389755249)
Output for 5.4.16
float(1.2586538791656) float(0.79479002952576)
Output for 5.4.15
float(1.1832139492035) float(0.65561008453369)
Output for 5.4.14
float(1.3400509357452) float(0.69837498664856)
Output for 5.4.13
float(1.5788989067078) float(0.72611999511719)
Output for 5.4.12
float(1.3692119121552) float(0.66241002082825)
Output for 5.4.11
float(1.2808609008789) float(0.64577317237854)
Output for 5.4.10
float(1.2600140571594) float(0.76322603225708)
Output for 5.4.9
float(1.3541629314423) float(0.72895884513855)
Output for 5.4.8
float(1.1934149265289) float(0.58893799781799)
Output for 5.4.7
float(1.1778099536896) float(0.58550405502319)
Output for 5.4.6
float(1.2034840583801) float(0.74280095100403)
Output for 5.4.5
float(1.3194608688354) float(0.68268299102783)
Output for 5.4.4
float(1.3112120628357) float(0.67637586593628)
Output for 5.4.3
float(1.2676060199738) float(0.90367722511292)
Output for 5.4.2
float(1.2789170742035) float(0.61892914772034)
Output for 5.4.1
float(1.2513380050659) float(0.64402198791504)
Output for 5.4.0
float(1.3558020591736) float(0.65705490112305)
Output for 5.3.29
float(1.1207458972931) float(0.85696387290955)
Output for 5.3.28
float(1.3657150268555) float(0.58961486816406)
Output for 5.3.27
float(1.2225430011749) float(0.59249401092529)
Output for 5.3.26
float(1.0809330940247) float(0.56785202026367)
Output for 5.3.25
float(1.2062969207764) float(0.63175797462463)
Output for 5.3.24
float(1.1091341972351) float(0.86137294769287)
Output for 5.3.23
float(1.1678040027618) float(0.59429502487183)
Output for 5.3.22
float(1.3701729774475) float(0.6315450668335)
Output for 5.3.21
float(1.4956550598145) float(0.57169485092163)
Output for 5.3.20
float(1.2433669567108) float(0.65539193153381)
Output for 5.3.19
float(1.2092611789703) float(0.56050610542297)
Output for 5.3.18
float(1.105642080307) float(0.53934597969055)
Output for 5.3.17
float(1.1219561100006) float(0.57081985473633)
Output for 5.3.16
float(1.0710968971252) float(0.56781721115112)
Output for 5.3.15
float(1.0895600318909) float(0.53087902069092)
Output for 5.3.14
float(1.2022049427032) float(0.71024703979492)
Output for 5.3.13
float(1.2326200008392) float(0.64077591896057)
Output for 5.3.12
float(1.1313598155975) float(0.60712599754333)
Output for 5.3.11
float(1.3183529376984) float(0.74610996246338)
Output for 5.3.10
float(1.2026319503784) float(0.56523203849792)
Output for 5.3.9
float(1.2334620952606) float(0.80744695663452)