3v4l.org

run code in 150+ 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.1.0
Done: 0.033066987991333<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 hhvm-3.12.0
Done: 0.04955005645752<br/>
Output for hhvm-3.10.0

Process exited with code 153.
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.4.20, 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.029198884963989<br/>
Output for 5.4.26
Done: 0.039420127868652<br/>
Output for 5.4.25
Done: 0.040562152862549<br/>
Output for 5.4.24
Done: 0.031439065933228<br/>
Output for 5.4.23
Done: 0.032239198684692<br/>
Output for 5.4.22
Done: 0.028285026550293<br/>
Output for 5.4.21
Done: 0.028825044631958<br/>
Output for 5.4.19
Done: 0.028145790100098<br/>
Output for 5.4.18
Done: 0.028048038482666<br/>
Output for 5.4.17
Done: 0.04380202293396<br/>
Output for 5.4.16
Done: 0.028021097183228<br/>
Output for 5.4.15
Done: 0.061577081680298<br/>
Output for 5.4.14
Done: 0.028245210647583<br/>
Output for 5.4.13
Done: 0.033108949661255<br/>
Output for 5.4.12
Done: 0.032789945602417<br/>
Output for 5.4.11
Done: 0.027966976165771<br/>
Output for 5.4.10
Done: 0.042556047439575<br/>
Output for 5.4.9
Done: 0.027873992919922<br/>
Output for 5.4.8
Done: 0.029620170593262<br/>
Output for 5.4.7
Done: 0.032945156097412<br/>
Output for 5.4.6
Done: 0.05336594581604<br/>
Output for 5.4.5
Done: 0.049498081207275<br/>
Output for 5.4.4
Done: 0.028074979782104<br/>
Output for 5.4.3
Done: 0.02957010269165<br/>
Output for 5.4.2
Done: 0.029275894165039<br/>
Output for 5.4.1
Done: 0.028664112091064<br/>
Output for 5.4.0
Done: 0.029011964797974<br/>
Output for 5.3.29
Done: 0.035259008407593<br/>
Output for 5.3.28
Done: 0.036513090133667<br/>
Output for 5.3.27
Done: 0.037576913833618<br/>
Output for 5.3.26
Done: 0.049916982650757<br/>
Output for 5.3.25
Done: 0.042500019073486<br/>
Output for 5.3.24
Done: 0.036002159118652<br/>
Output for 5.3.23
Done: 0.035109996795654<br/>
Output for 5.3.22
Done: 0.050493001937866<br/>
Output for 5.3.21
Done: 0.05317497253418<br/>
Output for 5.3.20
Done: 0.05165696144104<br/>
Output for 5.3.19
Done: 0.04042387008667<br/>
Output for 5.3.18
Done: 0.034677028656006<br/>
Output for 5.3.17
Done: 0.037237882614136<br/>
Output for 5.3.16
Done: 0.04011607170105<br/>
Output for 5.3.15
Done: 0.038764953613281<br/>
Output for 5.3.14
Done: 0.05440092086792<br/>
Output for 5.3.13
Done: 0.035356044769287<br/>
Output for 5.3.12
Done: 0.035649061203003<br/>
Output for 5.3.11
Done: 0.035789012908936<br/>
Output for 5.3.10
Done: 0.042648077011108<br/>
Output for 5.3.9
Done: 0.039463996887207<br/>
Output for 5.3.8
Done: 0.035189867019653<br/>
Output for 5.3.7
Done: 0.03795599937439<br/>
Output for 5.3.6
Done: 0.038597106933594<br/>
Output for 5.3.5
Done: 0.039138078689575<br/>
Output for 5.3.4
Done: 0.042104005813599<br/>
Output for 5.3.3
Done: 0.041518926620483<br/>
Output for 5.3.2
Done: 0.035722017288208<br/>
Output for 5.3.1
Done: 0.038193941116333<br/>
Output for 5.3.0
Done: 0.036504030227661<br/>
Output for 5.2.17
Done: 0.048778057098389<br/>
Output for 5.2.16
Done: 0.047881841659546<br/>
Output for 5.2.15
Done: 0.057024002075195<br/>
Output for 5.2.14
Done: 0.066689968109131<br/>
Output for 5.2.13
Done: 0.049517154693604<br/>
Output for 5.2.12
Done: 0.079450130462646<br/>
Output for 5.2.11
Done: 0.050017118453979<br/>
Output for 5.2.10
Done: 0.062537908554077<br/>
Output for 5.2.9
Done: 0.071103096008301<br/>
Output for 5.2.8
Done: 0.052860021591187<br/>
Output for 5.2.7
Done: 0.053981065750122<br/>
Output for 5.2.6
Done: 0.077409029006958<br/>
Output for 5.2.5
Done: 0.073839902877808<br/>
Output for 5.2.4
Done: 0.050827026367188<br/>
Output for 5.2.3
Done: 0.047000169754028<br/>
Output for 5.2.2
Done: 0.049574136734009<br/>
Output for 5.2.1
Done: 0.046818971633911<br/>
Output for 5.2.0
Done: 0.049736022949219<br/>
Output for 5.1.6
Done: 0.049840927124023<br/>
Output for 5.1.5
Done: 0.048201084136963<br/>
Output for 5.1.4
Done: 0.056612014770508<br/>
Output for 5.1.3
Done: 0.047539949417114<br/>
Output for 5.1.2
Done: 0.04924201965332<br/>
Output for 5.1.1
Done: 0.050478935241699<br/>
Output for 5.1.0
Done: 0.048213958740234<br/>
Output for 5.0.5
Done: 0.11168694496155<br/>
Output for 5.0.4
Done: 0.1324291229248<br/>
Output for 5.0.3
Done: 0.15798687934875<br/>
Output for 5.0.2
Done: 0.10567903518677<br/>
Output for 5.0.1
Done: 0.10298204421997<br/>
Output for 5.0.0
Done: 0.10608196258545<br/>
Output for 4.4.9
Done: 0.117352<br/>
Output for 4.4.8
Done: -0.891063<br/>
Output for 4.4.7
Done: 0.129797<br/>
Output for 4.4.6
Done: 0.125034<br/>
Output for 4.4.5
Done: 0.101279<br/>
Output for 4.4.4
Done: 0.101927<br/>
Output for 4.4.3
Done: 0.102076<br/>
Output for 4.4.2
Done: 0.09893<br/>
Output for 4.4.1
Done: -0.902997<br/>
Output for 4.4.0
Done: 0.102425<br/>
Output for 4.3.11
Done: 0.116704<br/>
Output for 4.3.10
Done: 0.099151<br/>
Output for 4.3.9
Done: 0.106052<br/>
Output for 4.3.8
Done: 0.102884<br/>
Output for 4.3.7
Done: 0.10058<br/>
Output for 4.3.6
Done: 0.103505<br/>
Output for 4.3.5
Done: -0.896103<br/>
Output for 4.3.4
Done: 0.121094<br/>
Output for 4.3.3
Done: 0.095992<br/>
Output for 4.3.2
Done: 0.11904<br/>
Output for 4.3.1
Done: 0.096144<br/>
Output for 4.3.0
Done: 0.130976<br/>