3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function test1() { $s = microtime(true); for ($i = 0; $i < 1000000; $i++) { } return microtime(true) - $s; } function test2() { $s = microtime(true); $i = 0; while ($i < 1000000) { $i++; } return microtime(true) - $s; } echo test1() . "\n\n"; echo test2() . "\n\n";
Output for 7.1.0
0.0006101131439209 -0.012996196746826
Output for 7.0.14
0.013463020324707 0.01292610168457
Output for 7.0.6
0.0090470314025879 0.0085420608520508
Output for 7.0.5
0.013962030410767 0.012892961502075
Output for 7.0.4
0.011615037918091 0.010817050933838
Output for 7.0.3
0.0092039108276367 0.0092380046844482
Output for 7.0.2
0.0080280303955078 0.0078740119934082
Output for 7.0.1
0.0079629421234131 0.0077469348907471
Output for 7.0.0
0.011928796768188 0.010571002960205
Output for hhvm-3.12.0
0.044183015823364 0.043756008148193
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.28
0.054944038391113 0.024423837661743
Output for 5.6.21
0.030919075012207 0.023129940032959
Output for 5.6.20
0.021500825881958 0.017889976501465
Output for 5.6.19
0.021722793579102 0.017903089523315
Output for 5.6.18
0.047486066818237 0.031444072723389
Output for 5.6.17
0.026035070419312 0.020103931427002
Output for 5.6.16
0.02625298500061 0.020302057266235
Output for 5.6.15
0.033637046813965 0.02308201789856
Output for 5.6.14
0.024299144744873 0.019069910049438
Output for 5.6.13
0.02074408531189 0.017358064651489
Output for 5.6.12
0.021605968475342 0.017965078353882
Output for 5.6.11
0.030736207962036 0.022624015808105
Output for 5.6.10
0.031508922576904 0.0227952003479
Output for 5.6.9
0.026216983795166 0.019345045089722
Output for 5.6.8
0.032623052597046 0.024080038070679
Output for 5.5.35
0.022380113601685 0.018456935882568
Output for 5.5.34
0.027529001235962 0.021924018859863
Output for 5.5.33
0.024372100830078 0.019020080566406
Output for 5.5.32
0.024808883666992 0.019438028335571
Output for 5.5.31
0.028111934661865 0.021909952163696
Output for 5.5.30
0.021508932113647 0.017985105514526
Output for 5.5.29
0.021282196044922 0.018030166625977
Output for 5.5.28
0.029305934906006 0.022615194320679
Output for 5.5.27
0.026602029800415 0.020258903503418
Output for 5.5.26
0.027801990509033 0.021435022354126
Output for 5.5.25
0.031134128570557 0.023389101028442
Output for 5.5.24
0.021502017974854 0.017788887023926
Output for 5.4.45
0.029552936553955 0.035022020339966
Output for 5.4.44
0.028748989105225 0.024589061737061
Output for 5.4.43
0.034494876861572 0.02528977394104
Output for 5.4.42
0.036208868026733 0.048462152481079
Output for 5.4.41
0.03058910369873 0.025784015655518
Output for 5.4.40
0.03162407875061 0.024639844894409
Output for 5.4.39
0.034079074859619 0.040791034698486
Output for 5.4.38
0.029642105102539 0.024462938308716
Output for 5.4.37
0.02986216545105 0.025908946990967
Output for 5.4.36
0.073297023773193 0.038105010986328
Output for 5.4.35
0.043097019195557 0.045399904251099
Output for 5.4.34
0.044482946395874 0.026761054992676
Output for 5.4.32
0.021956920623779 0.019074201583862
Output for 5.4.31
0.022380828857422 0.018748998641968
Output for 5.4.30
0.025236129760742 0.01974892616272
Output for 5.4.29
0.021940946578979 0.018825054168701
Output for 5.4.28
0.024070024490356 0.01988697052002
Output for 5.4.27
0.0241858959198 0.019618034362793
Output for 5.4.26
0.042441129684448 0.020671129226685
Output for 5.4.25
0.035037040710449 0.032522916793823
Output for 5.4.24
0.023725986480713 0.033941030502319
Output for 5.4.23
0.023139953613281 0.020447969436646
Output for 5.4.22
0.038071870803833 0.033688068389893
Output for 5.4.21
0.036237955093384 0.046627998352051
Output for 5.4.20
0.035619020462036 0.032315015792847
Output for 5.4.19
0.036573886871338 0.032313108444214
Output for 5.4.18
0.034942865371704 0.031293869018555
Output for 5.4.17
0.035083055496216 0.031154155731201
Output for 5.4.16
0.037144899368286 0.031956911087036
Output for 5.4.15
0.038043022155762 0.032879829406738
Output for 5.4.14
0.076553106307983 0.037304878234863
Output for 5.4.13
0.035363912582397 0.031378984451294
Output for 5.4.12
0.035859823226929 0.031620025634766
Output for 5.4.11
0.037929058074951 0.033597946166992
Output for 5.4.10
0.036977052688599 0.036456108093262
Output for 5.4.9
0.04075813293457 0.036104917526245
Output for 5.4.8
0.037919998168945 0.033491849899292
Output for 5.4.7
0.029115915298462 0.024718999862671
Output for 5.4.6
0.03429913520813 0.020086050033569
Output for 5.4.5
0.026818037033081 0.02002215385437
Output for 5.4.4
0.023899078369141 0.02033805847168
Output for 5.4.3
0.034482955932617 0.029976844787598
Output for 5.4.2
0.026281118392944 0.026190996170044
Output for 5.4.1
0.024025201797485 0.022475957870483
Output for 5.4.0
0.032708883285522 0.029591083526611
Output for 5.3.29
0.035816192626953 0.030651092529297
Output for 5.3.28
0.0415358543396 0.038003921508789
Output for 5.3.27
0.037977933883667 0.038444995880127
Output for 5.3.26
0.042443037033081 0.038666009902954
Output for 5.3.25
0.030198097229004 0.028224945068359
Output for 5.3.24
0.033504009246826 0.029425144195557
Output for 5.3.23
0.033492088317871 0.03825306892395
Output for 5.3.22
0.037524938583374 0.036839962005615
Output for 5.3.21
0.067415952682495 0.044049978256226
Output for 5.3.20
0.043640851974487 0.036417007446289
Output for 5.3.19
0.043001890182495 0.033756971359253
Output for 5.3.18
0.042409181594849 0.038748979568481
Output for 5.3.17
0.031440019607544 0.026754140853882
Output for 5.3.16
0.044878959655762 0.043046951293945
Output for 5.3.15
0.035455942153931 0.029342889785767
Output for 5.3.14
0.061707019805908 0.057832956314087
Output for 5.3.13
0.036277055740356 0.035389184951782
Output for 5.3.12
0.049131155014038 0.046397924423218
Output for 5.3.11
0.046444892883301 0.041284084320068
Output for 5.3.10
0.04610800743103 0.041469097137451
Output for 5.3.9
0.047470092773438 0.043164014816284
Output for 5.3.8
0.046718120574951 0.043069124221802
Output for 5.3.7
0.067770957946777 0.045022964477539
Output for 5.3.6
0.051083087921143 0.028954029083252
Output for 5.3.5
0.045758962631226 0.043089866638184
Output for 5.3.4
0.03324818611145 0.027690887451172
Output for 5.3.3
0.032198905944824 0.027467966079712
Output for 5.3.2
0.037029027938843 0.034641027450562
Output for 5.3.1
0.031782865524292 0.027252912521362
Output for 5.3.0
0.033212900161743 0.028584003448486
Output for 5.2.17
0.060788154602051 0.056398153305054
Output for 5.2.16
0.062664985656738 0.058666944503784
Output for 5.2.15
0.061953067779541 0.057650804519653
Output for 5.2.14
0.066526889801025 0.05867600440979
Output for 5.2.13
0.05982518196106 0.052096843719482
Output for 5.2.12
0.06243896484375 0.056134939193726
Output for 5.2.11
0.065265893936157 0.062669992446899
Output for 5.2.10
0.060769081115723 0.055820941925049
Output for 5.2.9
0.067262172698975 0.058492183685303
Output for 5.2.8
0.065315961837769 0.059011936187744
Output for 5.2.7
0.062332153320312 0.05889105796814
Output for 5.2.6
0.063273906707764 0.06056809425354
Output for 5.2.5
0.061170101165771 0.058804035186768
Output for 5.2.4
0.065937995910645 0.060799837112427
Output for 5.2.3
0.063687086105347 0.058589935302734
Output for 5.2.2
0.067144155502319 0.059554100036621
Output for 5.2.1
0.060589790344238 0.055049896240234
Output for 5.2.0
0.063730001449585 0.061361074447632
Output for 5.1.6
0.080376863479614 0.073440074920654
Output for 5.1.5
0.077692985534668 0.064186096191406
Output for 5.1.4
0.06395411491394 0.0586838722229
Output for 5.1.3
0.064407110214233 0.057211875915527
Output for 5.1.2
0.074064016342163 0.062451124191284
Output for 5.1.1
0.064347982406616 0.061331987380981
Output for 5.1.0
0.064028978347778 0.061545848846436
Output for 5.0.5
0.17170190811157 0.1835629940033
Output for 5.0.4
0.14650297164917 0.10898017883301
Output for 5.0.3
0.12100100517273 0.12855219841003
Output for 5.0.2
0.099138975143433 0.11445689201355
Output for 5.0.1
0.12991809844971 0.11714911460876
Output for 5.0.0
0.21572399139404 0.14652395248413
Output for 4.4.9
0.168484 0.102371
Output for 4.4.8
0.108191 0.153349
Output for 4.4.7
0.109412 0.094873
Output for 4.4.6
-0.900308 0.160548
Output for 4.4.5
0.1687 0.184479
Output for 4.4.4
0.132554 0.098898
Output for 4.4.3
0.106279 -0.901372
Output for 4.4.2
0.095502 0.103305
Output for 4.4.1
0.104509 0.1099
Output for 4.4.0
0.100157 0.109786
Output for 4.3.11
0.116761 -0.876181
Output for 4.3.10
0.175935 0.194896
Output for 4.3.9
0.172853 0.17077
Output for 4.3.8
-0.83742 0.154874
Output for 4.3.7
0.134482 0.158553
Output for 4.3.6
0.154385 0.150695
Output for 4.3.5
-0.904379 0.101255
Output for 4.3.4
0.093664 0.089107
Output for 4.3.3
0.095042 0.093058
Output for 4.3.2
0.098151 0.10028
Output for 4.3.1
0.102785 0.093641
Output for 4.3.0
0.161161 0.11283