3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $i = 0; $start = microtime(true); for(;;) { $i++; if ($i == 1000000) break; } echo "Done: " . (microtime(true) - $start) . "<br/>\n";
Output for 7.2.0
Done: 0.010490894317627<br/>
Output for 7.1.7
Done: 0.014266014099121<br/>
Output for 7.1.6
Done: 0.023945093154907<br/>
Output for 7.1.5
Done: 0.02074408531189<br/>
Output for 7.1.0
Done: 0.033066987991333<br/>
Output for 7.0.20
Done: 0.010008096694946<br/>
Output for 7.0.14
Done: 0.015938997268677<br/>
Output for 7.0.6
Done: 0.014161109924316<br/>
Output for 7.0.5
Done: 0.0091941356658936<br/>
Output for 7.0.4
Done: 0.011162996292114<br/>
Output for 7.0.3
Done: 0.014410972595215<br/>
Output for 7.0.2
Done: 0.016027927398682<br/>
Output for 7.0.1
Done: 0.015191078186035<br/>
Output for 7.0.0
Done: 0.010010004043579<br/>
Output for 5.6.28
Done: 0.039147138595581<br/>
Output for 5.6.21
Done: 0.026386976242065<br/>
Output for 5.6.20
Done: 0.039237022399902<br/>
Output for 5.6.19
Done: 0.039048910140991<br/>
Output for 5.6.18
Done: 0.036616086959839<br/>
Output for 5.6.17
Done: 0.036386966705322<br/>
Output for 5.6.16
Done: 0.039891004562378<br/>
Output for 5.6.15
Done: 0.039561033248901<br/>
Output for 5.6.14
Done: 0.040559053421021<br/>
Output for 5.6.13
Done: 0.038772821426392<br/>
Output for 5.6.12
Done: 0.039648056030273<br/>
Output for 5.6.11
Done: 0.036087989807129<br/>
Output for 5.6.10
Done: 0.04011082649231<br/>
Output for 5.6.9
Done: 0.026434183120728<br/>
Output for 5.6.8
Done: 0.034381151199341<br/>
Output for 5.6.7
Done: 0.027141809463501<br/>
Output for 5.5.35
Done: 0.03259015083313<br/>
Output for 5.5.34
Done: 0.039438962936401<br/>
Output for 5.5.33
Done: 0.036498069763184<br/>
Output for 5.5.32
Done: 0.028071880340576<br/>
Output for 5.5.31
Done: 0.036980152130127<br/>
Output for 5.5.30
Done: 0.0275559425354<br/>
Output for 5.5.29
Done: 0.028848886489868<br/>
Output for 5.5.28
Done: 0.028485059738159<br/>
Output for 5.5.27
Done: 0.034842967987061<br/>
Output for 5.5.26
Done: 0.031193971633911<br/>
Output for 5.5.25
Done: 0.032111883163452<br/>
Output for 5.5.24
Done: 0.036253929138184<br/>
Output for 5.4.45
Done: 0.037474870681763<br/>
Output for 5.4.44
Done: 0.038814067840576<br/>
Output for 5.4.43
Done: 0.038459062576294<br/>
Output for 5.4.42
Done: 0.038055181503296<br/>
Output for 5.4.41
Done: 0.037794828414917<br/>
Output for 5.4.40
Done: 0.038003206253052<br/>
Output for 5.4.39
Done: 0.038763046264648<br/>
Output for 5.4.38
Done: 0.059674978256226<br/>
Output for 5.4.37
Done: 0.041439056396484<br/>
Output for 5.4.36
Done: 0.078346967697144<br/>
Output for 5.4.35
Done: 0.039038181304932<br/>
Output for 5.4.34
Done: 0.037060976028442<br/>
Output for 5.4.32
Done: 0.028797149658203<br/>
Output for 5.4.31
Done: 0.028814077377319<br/>
Output for 5.4.30
Done: 0.02794885635376<br/>
Output for 5.4.29
Done: 0.027490139007568<br/>
Output for 5.4.28
Done: 0.027827978134155<br/>
Output for 5.4.27
Done: 0.038493156433105<br/>
Output for 5.4.26
Done: 0.039273977279663<br/>
Output for 5.4.25
Done: 0.03785514831543<br/>
Output for 5.4.24
Done: 0.054626941680908<br/>
Output for 5.4.23
Done: 0.038554906845093<br/>
Output for 5.4.22
Done: 0.038888931274414<br/>
Output for 5.4.21
Done: 0.061499834060669<br/>
Output for 5.4.20
Done: 0.040004968643188<br/>
Output for 5.4.19
Done: 0.053055047988892<br/>
Output for 5.4.18
Done: 0.034234762191772<br/>
Output for 5.4.17
Done: 0.036370038986206<br/>
Output for 5.4.16
Done: 0.03412914276123<br/>
Output for 5.4.15
Done: 0.051344871520996<br/>
Output for 5.4.14
Done: 0.05560302734375<br/>
Output for 5.4.13
Done: 0.033921957015991<br/>
Output for 5.4.12
Done: 0.044838905334473<br/>
Output for 5.4.11
Done: 0.050201892852783<br/>
Output for 5.4.10
Done: 0.036632061004639<br/>
Output for 5.4.9
Done: 0.034041881561279<br/>
Output for 5.4.8
Done: 0.057157039642334<br/>
Output for 5.4.7
Done: 0.035761117935181<br/>
Output for 5.4.6
Done: 0.034800052642822<br/>
Output for 5.4.5
Done: 0.035146236419678<br/>
Output for 5.4.4
Done: 0.035016059875488<br/>
Output for 5.4.3
Done: 0.034306049346924<br/>
Output for 5.4.2
Done: 0.034227132797241<br/>
Output for 5.4.1
Done: 0.034065961837769<br/>
Output for 5.4.0
Done: 0.035424947738647<br/>
Output for 5.3.29
Done: 0.035259008407593<br/>
Output for 5.3.28
Done: 0.045046091079712<br/>
Output for 5.3.27
Done: 0.045811176300049<br/>
Output for 5.3.26
Done: 0.063323020935059<br/>
Output for 5.3.25
Done: 0.066869020462036<br/>
Output for 5.3.24
Done: 0.046099901199341<br/>
Output for 5.3.23
Done: 0.056293964385986<br/>
Output for 5.3.22
Done: 0.045119047164917<br/>
Output for 5.3.21
Done: 0.068153142929077<br/>
Output for 5.3.20
Done: 0.071938991546631<br/>
Output for 5.3.19
Done: 0.05625581741333<br/>
Output for 5.3.18
Done: 0.046788930892944<br/>
Output for 5.3.17
Done: 0.045275926589966<br/>
Output for 5.3.16
Done: 0.045047998428345<br/>
Output for 5.3.15
Done: 0.047253847122192<br/>
Output for 5.3.14
Done: 0.089920997619629<br/>
Output for 5.3.13
Done: 0.044689893722534<br/>
Output for 5.3.12
Done: 0.065724849700928<br/>
Output for 5.3.11
Done: 0.064390897750854<br/>
Output for 5.3.10
Done: 0.044832944869995<br/>
Output for 5.3.9
Done: 0.049061059951782<br/>
Output for 5.3.8
Done: 0.044270038604736<br/>
Output for 5.3.7
Done: 0.046635150909424<br/>
Output for 5.3.6
Done: 0.054969787597656<br/>
Output for 5.3.5
Done: 0.070065021514893<br/>
Output for 5.3.4
Done: 0.047300815582275<br/>
Output for 5.3.3
Done: 0.045397043228149<br/>
Output for 5.3.2
Done: 0.048525810241699<br/>
Output for 5.3.1
Done: 0.04616117477417<br/>
Output for 5.3.0
Done: 0.045150995254517<br/>
Output for 5.2.17
Done: 0.063338994979858<br/>
Output for 5.2.16
Done: 0.064608097076416<br/>
Output for 5.2.15
Done: 0.063708066940308<br/>
Output for 5.2.14
Done: 0.083549022674561<br/>
Output for 5.2.13
Done: 0.065146923065186<br/>
Output for 5.2.12
Done: 0.094797134399414<br/>
Output for 5.2.11
Done: 0.063963890075684<br/>
Output for 5.2.10
Done: 0.058865070343018<br/>
Output for 5.2.9
Done: 0.081984043121338<br/>
Output for 5.2.8
Done: 0.063562870025635<br/>
Output for 5.2.7
Done: 0.061995029449463<br/>
Output for 5.2.6
Done: 0.063476085662842<br/>
Output for 5.2.5
Done: 0.062804937362671<br/>
Output for 5.2.4
Done: 0.065053939819336<br/>
Output for 5.2.3
Done: 0.062880992889404<br/>
Output for 5.2.2
Done: 0.068368911743164<br/>
Output for 5.2.1
Done: 0.062885046005249<br/>
Output for 5.2.0
Done: 0.064380884170532<br/>
Output for 5.1.6
Done: 0.071643114089966<br/>
Output for 5.1.5
Done: 0.066138029098511<br/>
Output for 5.1.4
Done: 0.065229892730713<br/>
Output for 5.1.3
Done: 0.073132991790771<br/>
Output for 5.1.2
Done: 0.067279815673828<br/>
Output for 5.1.1
Done: 0.06439208984375<br/>
Output for 5.1.0
Done: 0.073263883590698<br/>
Output for 5.0.5
Done: 0.14791989326477<br/>
Output for 5.0.4
Done: 0.14728999137878<br/>
Output for 5.0.3
Done: 0.13276481628418<br/>
Output for 5.0.2
Done: 0.1613290309906<br/>
Output for 5.0.1
Done: 0.1297390460968<br/>
Output for 5.0.0
Done: 0.14376997947693<br/>
Output for 4.4.9
Done: 0.165031<br/>
Output for 4.4.8
Done: 0.167142<br/>
Output for 4.4.7
Done: 0.129279<br/>
Output for 4.4.6
Done: 0.15531<br/>
Output for 4.4.5
Done: 0.126834<br/>
Output for 4.4.4
Done: 0.128994<br/>
Output for 4.4.3
Done: 0.245093<br/>
Output for 4.4.2
Done: 0.250604<br/>
Output for 4.4.1
Done: 0.127757<br/>
Output for 4.4.0
Done: 0.142738<br/>
Output for 4.3.11
Done: 0.155458<br/>
Output for 4.3.10
Done: 0.149769<br/>
Output for 4.3.9
Done: 0.143542<br/>
Output for 4.3.8
Done: 0.131123<br/>
Output for 4.3.7
Done: 0.127253<br/>
Output for 4.3.6
Done: 0.126457<br/>
Output for 4.3.5
Done: 0.13172<br/>
Output for 4.3.4
Done: 0.129913<br/>
Output for 4.3.3
Done: 0.184445<br/>
Output for 4.3.2
Done: 0.157525<br/>
Output for 4.3.1
Done: 0.123594<br/>
Output for 4.3.0
Done: 0.130976<br/>