3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $tstart1 = microtime(true); for($x=1; $x<=5000000; $x++); $tstop1 = microtime(true); print $tstop1 - $tstart1; print" > "; $tstart = microtime(true); for($x=1; $x<=5000000; ++$x); $tstop = microtime(true); print $tstop - $tstart;
Output for 7.1.0
0.07651686668396 > 0.037985801696777
Output for 7.0.14
0.061877012252808 > 0.035197019577026
Output for 7.0.7
0.033648014068604 > 0.021642923355103
Output for 7.0.6
0.061046123504639 > 0.030870914459229
Output for 7.0.5
0.051000833511353 > 0.027829885482788
Output for 7.0.4
0.05299186706543 > 0.030900001525879
Output for 7.0.3
0.059628009796143 > 0.035501956939697
Output for 7.0.2
0.053396940231323 > 0.029387950897217
Output for 7.0.1
0.058267116546631 > 0.035710096359253
Output for 7.0.0
0.053536891937256 > 0.033955097198486
Output for hhvm-3.12.0
0.17387890815735 > 0.17304801940918
Output for hhvm-3.10.0
0.1918728351593 > 0.19900298118591
Output for 5.6.28
0.13915300369263 > 0.089367866516113
Output for 5.6.22
0.089194059371948 > 0.07064414024353
Output for 5.6.21
0.090592861175537 > 0.072127819061279
Output for 5.6.20
0.11624813079834 > 0.085858106613159
Output for 5.6.19
0.11809992790222 > 0.10533714294434
Output for 5.6.18
0.11542081832886 > 0.088027000427246
Output for 5.6.17
0.13444495201111 > 0.08575701713562
Output for 5.6.16
0.12520790100098 > 0.085697889328003
Output for 5.6.15
0.13569307327271 > 0.1025390625
Output for 5.6.14
0.13170385360718 > 0.087764978408813
Output for 5.6.13
0.12294006347656 > 0.085816144943237
Output for 5.6.12
0.11806297302246 > 0.094513893127441
Output for 5.6.11
0.10897898674011 > 0.086026906967163
Output for 5.6.10
0.1154899597168 > 0.085739135742188
Output for 5.6.9
0.1284339427948 > 0.086104869842529
Output for 5.6.8
0.12879514694214 > 0.085733890533447
Output for 5.6.7
0.13575792312622 > 0.085831880569458
Output for 5.6.6
0.12050294876099 > 0.08569598197937
Output for 5.6.5
0.12080788612366 > 0.095172882080078
Output for 5.6.4
0.13105201721191 > 0.087563037872314
Output for 5.6.3
0.10969185829163 > 0.085906028747559
Output for 5.6.2
0.13786292076111 > 0.086477041244507
Output for 5.6.1
0.12371683120728 > 0.085687875747681
Output for 5.6.0
0.12526297569275 > 0.087990045547485
Output for 5.5.36
0.088029146194458 > 0.072618961334229
Output for 5.5.35
0.12279510498047 > 0.087559938430786
Output for 5.5.34
0.12871599197388 > 0.088635921478271
Output for 5.5.33
0.13223600387573 > 0.098149061203003
Output for 5.5.32
0.12167501449585 > 0.088261842727661
Output for 5.5.31
0.12426209449768 > 0.086909055709839
Output for 5.5.30
0.11376190185547 > 0.086048126220703
Output for 5.5.29
0.12078595161438 > 0.086242914199829
Output for 5.5.28
0.12419199943542 > 0.085900068283081
Output for 5.5.27
0.11034512519836 > 0.085687160491943
Output for 5.5.26
0.12964296340942 > 0.085719108581543
Output for 5.5.25
0.11746692657471 > 0.08578896522522
Output for 5.5.24
0.11906599998474 > 0.085745096206665
Output for 5.5.23
0.13264012336731 > 0.085710048675537
Output for 5.5.22
0.127277135849 > 0.089221954345703
Output for 5.5.21
0.12889695167542 > 0.087538003921509
Output for 5.5.20
0.12421417236328 > 0.087935924530029
Output for 5.5.19
0.11428809165955 > 0.085723876953125
Output for 5.5.18
0.14101314544678 > 0.093746185302734
Output for 5.5.16
0.11888599395752 > 0.085916042327881
Output for 5.5.15
0.10802102088928 > 0.085947036743164
Output for 5.5.14
0.13017702102661 > 0.16054511070251
Output for 5.5.13
0.1058189868927 > 0.082185029983521
Output for 5.5.12
0.088165998458862 > 0.070832014083862
Output for 5.5.11
0.11622405052185 > 0.088733911514282
Output for 5.5.10
0.10946083068848 > 0.087285995483398
Output for 5.5.9
0.12582206726074 > 0.096127033233643
Output for 5.5.8
0.11262893676758 > 0.085671186447144
Output for 5.5.7
0.12891292572021 > 0.087759017944336
Output for 5.5.6
0.13001704216003 > 0.08833384513855
Output for 5.5.5
0.133052110672 > 0.085729122161865
Output for 5.5.4
0.14833498001099 > 0.1045401096344
Output for 5.5.3
0.13126993179321 > 0.087012052536011
Output for 5.5.2
0.12615299224854 > 0.087721824645996
Output for 5.5.1
0.10637998580933 > 0.085670948028564
Output for 5.5.0
0.10953712463379 > 0.086925983428955
Output for 5.4.45
0.12994503974915 > 0.088945865631104
Output for 5.4.44
0.10468292236328 > 0.087232828140259
Output for 5.4.43
0.11271405220032 > 0.088742971420288
Output for 5.4.42
0.12829899787903 > 0.087338924407959
Output for 5.4.41
0.12915182113647 > 0.087492942810059
Output for 5.4.40
0.12751412391663 > 0.087624073028564
Output for 5.4.39
0.12762093544006 > 0.08735203742981
Output for 5.4.38
0.1335117816925 > 0.087660074234009
Output for 5.4.37
0.11895704269409 > 0.087268114089966
Output for 5.4.36
0.12958407402039 > 0.089080810546875
Output for 5.4.35
0.13410496711731 > 0.087285995483398
Output for 5.4.34
0.1375138759613 > 0.094229936599731
Output for 5.4.32
0.13190698623657 > 0.087367057800293
Output for 5.4.31
0.13678097724915 > 0.089334964752197
Output for 5.4.30
0.10918807983398 > 0.090304851531982
Output for 5.4.29
0.10398387908936 > 0.077551126480103
Output for 5.4.28
0.10036492347717 > 0.072005987167358
Output for 5.4.27
0.087711095809937 > 0.071988105773926
Output for 5.4.26
0.11664509773254 > 0.087974071502686
Output for 5.4.25
0.10797715187073 > 0.087250947952271
Output for 5.4.24
0.13338804244995 > 0.087702035903931
Output for 5.4.23
0.10923314094543 > 0.087414979934692
Output for 5.4.22
0.12211513519287 > 0.089899063110352
Output for 5.4.21
0.11699295043945 > 0.087484121322632
Output for 5.4.20
0.10810685157776 > 0.083881855010986
Output for 5.4.19
0.12224912643433 > 0.087170124053955
Output for 5.4.18
0.13056087493896 > 0.087345838546753
Output for 5.4.17
0.12038493156433 > 0.088582992553711
Output for 5.4.16
0.11625790596008 > 0.089827060699463
Output for 5.4.15
0.12822794914246 > 0.087311029434204
Output for 5.4.14
0.11588287353516 > 0.087225914001465
Output for 5.4.13
0.13218188285828 > 0.089761018753052
Output for 5.4.12
0.13844394683838 > 0.087476968765259
Output for 5.4.11
0.13017296791077 > 0.089369058609009
Output for 5.4.10
0.13372707366943 > 0.09064793586731
Output for 5.4.9
0.13081097602844 > 0.087329864501953
Output for 5.4.8
0.12944912910461 > 0.094253778457642
Output for 5.4.7
0.1169900894165 > 0.090004205703735
Output for 5.4.6
0.12785816192627 > 0.087634086608887
Output for 5.4.5
0.13296794891357 > 0.088325977325439
Output for 5.4.4
0.12395811080933 > 0.11041212081909
Output for 5.4.3
0.1341609954834 > 0.087247133255005
Output for 5.4.2
0.12188506126404 > 0.088882207870483
Output for 5.4.1
0.11815094947815 > 0.091836214065552
Output for 5.4.0
0.13259315490723 > 0.087385177612305
Output for 5.3.29
0.17344212532043 > 0.11412501335144
Output for 5.3.28
0.16484808921814 > 0.11490392684937
Output for 5.3.27
0.15425205230713 > 0.11824011802673
Output for 5.3.26
0.13708090782166 > 0.11188507080078
Output for 5.3.25
0.15803599357605 > 0.11451196670532
Output for 5.3.24
0.14198207855225 > 0.1131899356842
Output for 5.3.23
0.15422010421753 > 0.11386704444885
Output for 5.3.22
0.14436388015747 > 0.10999917984009
Output for 5.3.21
0.16087198257446 > 0.11013984680176
Output for 5.3.20
0.16146111488342 > 0.11024498939514
Output for 5.3.19
0.15548300743103 > 0.11913299560547
Output for 5.3.18
0.16313099861145 > 0.11333894729614
Output for 5.3.17
0.16173601150513 > 0.11164712905884
Output for 5.3.16
0.1645188331604 > 0.11321210861206
Output for 5.3.15
0.16441607475281 > 0.12414908409119
Output for 5.3.14
0.15851998329163 > 0.11029195785522
Output for 5.3.13
0.15813994407654 > 0.11069893836975
Output for 5.3.12
0.16463088989258 > 0.11363410949707
Output for 5.3.11
0.16008996963501 > 0.11431288719177
Output for 5.3.10
0.15582513809204 > 0.12272691726685
Output for 5.3.9
0.16240191459656 > 0.12087893486023
Output for 5.3.8
0.16856813430786 > 0.1290431022644
Output for 5.3.7
0.13662695884705 > 0.11983394622803
Output for 5.3.6
0.13722801208496 > 0.11877703666687
Output for 5.3.5
0.11370515823364 > 0.099190950393677
Output for 5.3.4
0.11704397201538 > 0.10062313079834
Output for 5.3.3
0.11295104026794 > 0.1029999256134
Output for 5.3.2
0.12317299842834 > 0.10226583480835
Output for 5.3.1
0.11495900154114 > 0.10141801834106
Output for 5.3.0
0.14897418022156 > 0.12828302383423
Output for 5.2.17
0.15164518356323 > 0.13362002372742
Output for 5.2.16
0.15108919143677 > 0.17149806022644
Output for 5.2.15
0.18437600135803 > 0.16736698150635
Output for 5.2.14
0.17894911766052 > 0.13070607185364
Output for 5.2.13
0.14896011352539 > 0.12748289108276
Output for 5.2.12
0.14805698394775 > 0.12642598152161
Output for 5.2.11
0.14767289161682 > 0.1311628818512
Output for 5.2.10
0.1536328792572 > 0.13373494148254
Output for 5.2.9
0.14785122871399 > 0.12647700309753
Output for 5.2.8
0.14936304092407 > 0.12692403793335
Output for 5.2.7
0.16245698928833 > 0.12854814529419
Output for 5.2.6
0.21750712394714 > 0.16410303115845
Output for 5.2.5
0.21589398384094 > 0.15717601776123
Output for 5.2.4
0.21569085121155 > 0.1540949344635
Output for 5.2.3
0.21005010604858 > 0.15552997589111
Output for 5.2.2
0.2184100151062 > 0.1585099697113
Output for 5.2.1
0.2044460773468 > 0.14456391334534
Output for 5.2.0
0.21993684768677 > 0.15679001808167
Output for 5.1.6
0.2211639881134 > 0.15829396247864
Output for 5.1.5
0.22072815895081 > 0.17505097389221
Output for 5.1.4
0.22097492218018 > 0.16137909889221
Output for 5.1.3
0.18579292297363 > 0.15553903579712
Output for 5.1.2
0.22853899002075 > 0.16035795211792
Output for 5.1.1
0.21190094947815 > 0.16631507873535
Output for 5.1.0
0.22221398353577 > 0.16631197929382
Output for 5.0.5
0.37341713905334 > 0.3166401386261
Output for 5.0.4
0.43106412887573 > 0.37404298782349
Output for 5.0.3
0.37774205207825 > 0.29101419448853
Output for 5.0.2
0.43687200546265 > 0.34912395477295
Output for 5.0.1
0.41714715957642 > 0.3575279712677
Output for 5.0.0
0.40755414962769 > 0.35171294212341
Output for 4.4.9
0.315765 > -0.666585
Output for 4.4.8
-0.606923 > 0.347333
Output for 4.4.7
-0.585624 > 0.362351
Output for 4.4.6
-0.584838 > 0.354986
Output for 4.4.5
0.394772 > -0.658386
Output for 4.4.4
-0.585122 > 0.350111
Output for 4.4.3
0.347119 > 0.289899
Output for 4.4.2
0.416083 > -0.642976
Output for 4.4.1
0.412752 > -0.643567
Output for 4.4.0
0.413909 > 0.356054
Output for 4.3.11
-0.587046 > 0.348952
Output for 4.3.10
0.365968 > -0.704748
Output for 4.3.9
0.410148 > 0.343944
Output for 4.3.8
-0.581356 > 0.358348
Output for 4.3.7
-0.593703 > 0.352723
Output for 4.3.6
0.366228 > -0.684443
Output for 4.3.5
0.410739 > -0.645777
Output for 4.3.4
0.372672 > 0.324861
Output for 4.3.3
-0.60801 > 0.334574
Output for 4.3.2
-0.621218 > 0.334963
Output for 4.3.1
0.370568 > -0.671179
Output for 4.3.0
0.388738 > -0.670118