3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function a() { return; } function b() { return false; } $start = microtime(true); for ($i = 0; $i<999999; $i++) { b(); } $end = microtime(true); echo "B :".($end-$start)."\n"; $start = microtime(true); for ($i = 0; $i<999999; $i++) { a(); } $end = microtime(true); echo "A :".($end-$start)."\n";
Output for 7.1.0
B :0.02988600730896 A :0.017781972885132
Output for 7.0.14
B :0.031431198120117 A :0.028419017791748
Output for 7.0.7
B :0.027110815048218 A :0.024571895599365
Output for 7.0.6
B :0.030956029891968 A :0.027153015136719
Output for 7.0.5
B :0.032551050186157 A :0.027662992477417
Output for 7.0.4
B :0.026042938232422 A :0.021557092666626
Output for 7.0.3
B :0.027940988540649 A :0.022763013839722
Output for 7.0.2
B :0.028988122940063 A :0.025983095169067
Output for 7.0.1
B :0.029704093933105 A :0.026550054550171
Output for 7.0.0
B :0.027112007141113 A :0.025042057037354
Output for hhvm-3.12.0
B :0.086092948913574 A :0.082290887832642
Output for hhvm-3.10.0
B :0.1067910194397 A :0.10067701339722
Output for 5.6.28
B :-0.018156051635742 A :-0.076645135879517
Output for 5.6.22
B :0.074460983276367 A :0.058255910873413
Output for 5.6.21
B :0.074901103973389 A :0.059359073638916
Output for 5.6.20
B :0.075554132461548 A :0.056500911712646
Output for 5.6.19
B :0.059119939804077 A :0.058517932891846
Output for 5.6.18
B :0.080327987670898 A :0.062312841415405
Output for 5.6.17
B :0.073817014694214 A :0.058974027633667
Output for 5.6.16
B :0.075515985488892 A :0.059421062469482
Output for 5.6.15
B :0.068871974945068 A :0.059940099716187
Output for 5.6.14
B :0.055984020233154 A :0.05570387840271
Output for 5.6.13
B :0.088443040847778 A :0.068300008773804
Output for 5.6.12
B :0.067806959152222 A :0.055568933486938
Output for 5.6.11
B :0.055647134780884 A :0.056121110916138
Output for 5.6.10
B :0.066487073898315 A :0.056464910507202
Output for 5.6.9
B :0.068238019943237 A :0.060783863067627
Output for 5.6.8
B :0.077591896057129 A :0.059607982635498
Output for 5.6.7
B :0.074699878692627 A :0.056680917739868
Output for 5.6.6
B :0.075838804244995 A :0.059612989425659
Output for 5.6.5
B :0.072499990463257 A :0.058186054229736
Output for 5.6.4
B :0.070433139801025 A :0.056385040283203
Output for 5.6.3
B :0.078464984893799 A :0.060525894165039
Output for 5.6.2
B :0.056490898132324 A :0.054324150085449
Output for 5.6.1
B :0.069817066192627 A :0.056457996368408
Output for 5.6.0
B :0.075565099716187 A :0.058043003082275
Output for 5.5.36
B :0.07262396812439 A :0.057488918304443
Output for 5.5.35
B :0.065536022186279 A :0.056073904037476
Output for 5.5.34
B :0.069104909896851 A :0.055819034576416
Output for 5.5.33
B :0.065310001373291 A :0.059206962585449
Output for 5.5.32
B :0.074395895004272 A :0.058628082275391
Output for 5.5.31
B :0.0764479637146 A :0.058974027633667
Output for 5.5.30
B :0.073116064071655 A :0.056385040283203
Output for 5.5.29
B :0.072291851043701 A :0.056575059890747
Output for 5.5.28
B :0.064833879470825 A :0.054862022399902
Output for 5.5.27
B :0.05710506439209 A :0.057723045349121
Output for 5.5.26
B :0.10388684272766 A :0.092299938201904
Output for 5.5.25
B :0.054754972457886 A :0.054007053375244
Output for 5.5.24
B :0.071357011795044 A :0.053131103515625
Output for 5.5.23
B :0.069420099258423 A :0.055938005447388
Output for 5.5.22
B :0.066825151443481 A :0.053579092025757
Output for 5.5.21
B :0.058809995651245 A :0.053080081939697
Output for 5.5.20
B :0.071630954742432 A :0.056157112121582
Output for 5.5.19
B :0.056575059890747 A :0.055892944335938
Output for 5.5.18
B :0.055580139160156 A :0.053828001022339
Output for 5.5.16
B :0.075089931488037 A :0.057801008224487
Output for 5.5.15
B :0.07183313369751 A :0.055163145065308
Output for 5.5.14
B :0.075165033340454 A :0.057976961135864
Output for 5.5.13
B :0.075684070587158 A :0.058058977127075
Output for 5.5.12
B :0.062550067901611 A :0.054461002349854
Output for 5.5.11
B :0.067816972732544 A :0.057111978530884
Output for 5.5.10
B :0.056556940078735 A :0.055310964584351
Output for 5.5.9
B :0.073744058609009 A :0.060030937194824
Output for 5.5.8
B :0.067969083786011 A :0.055655002593994
Output for 5.5.7
B :0.062091112136841 A :0.054737091064453
Output for 5.5.6
B :0.057045936584473 A :0.053086042404175
Output for 5.5.5
B :0.076930999755859 A :0.059477090835571
Output for 5.5.4
B :0.073000907897949 A :0.057621002197266
Output for 5.5.3
B :0.076779842376709 A :0.060354948043823
Output for 5.5.2
B :0.072498083114624 A :0.058835983276367
Output for 5.5.1
B :0.073949813842773 A :0.054610967636108
Output for 5.5.0
B :0.076330184936523 A :0.061172008514404
Output for 5.4.45
B :0.054692029953003 A :0.064850091934204
Output for 5.4.44
B :0.099913120269775 A :0.095274925231934
Output for 5.4.43
B :0.10827493667603 A :0.097897052764893
Output for 5.4.42
B :0.053500890731812 A :0.052680969238281
Output for 5.4.41
B :0.06035304069519 A :0.053570032119751
Output for 5.4.40
B :0.075211048126221 A :0.058602094650269
Output for 5.4.39
B :0.074257135391235 A :0.057989120483398
Output for 5.4.38
B :0.074476957321167 A :0.058151960372925
Output for 5.4.37
B :0.055397987365723 A :0.052835941314697
Output for 5.4.36
B :0.070034027099609 A :0.055579900741577
Output for 5.4.35
B :0.067108869552612 A :0.055845975875854
Output for 5.4.34
B :0.05644702911377 A :0.053035974502563
Output for 5.4.32
B :0.074640989303589 A :0.058938026428223
Output for 5.4.31
B :0.072249889373779 A :0.06023097038269
Output for 5.4.30
B :0.065729856491089 A :0.054687976837158
Output for 5.4.29
B :0.073916912078857 A :0.057765960693359
Output for 5.4.28
B :0.071319818496704 A :0.056562900543213
Output for 5.4.27
B :0.077608823776245 A :0.056995868682861
Output for 5.4.26
B :0.06557297706604 A :0.056041955947876
Output for 5.4.25
B :0.075068950653076 A :0.058885097503662
Output for 5.4.24
B :0.052868127822876 A :0.052651166915894
Output for 5.4.23
B :0.056137084960938 A :0.052886009216309
Output for 5.4.22
B :0.074579000473022 A :0.057734966278076
Output for 5.4.21
B :0.076398849487305 A :0.058842897415161
Output for 5.4.20
B :0.060749053955078 A :0.054260969161987
Output for 5.4.19
B :0.064060926437378 A :0.053838968276978
Output for 5.4.18
B :0.064316987991333 A :0.053995847702026
Output for 5.4.17
B :0.061536073684692 A :0.05302906036377
Output for 5.4.16
B :0.076224803924561 A :0.059004783630371
Output for 5.4.15
B :0.078472137451172 A :0.061051845550537
Output for 5.4.14
B :0.07761287689209 A :0.059530973434448
Output for 5.4.13
B :0.075568914413452 A :0.058465957641602
Output for 5.4.12
B :0.074501991271973 A :0.05918288230896
Output for 5.4.11
B :0.073728799819946 A :0.05397891998291
Output for 5.4.10
B :0.057101964950562 A :0.052495002746582
Output for 5.4.9
B :0.073912858963013 A :0.055328845977783
Output for 5.4.8
B :0.062100172042847 A :0.053948163986206
Output for 5.4.7
B :0.079269170761108 A :0.059953212738037
Output for 5.4.6
B :0.078299999237061 A :0.05975604057312
Output for 5.4.5
B :0.055969953536987 A :0.054194927215576
Output for 5.4.4
B :0.04920506477356 A :0.04522180557251
Output for 5.4.3
B :0.058779954910278 A :0.057293891906738
Output for 5.4.2
B :0.043643951416016 A :0.043318033218384
Output for 5.4.1
B :0.044329166412354 A :0.043260097503662
Output for 5.4.0
B :0.052563905715942 A :0.078698873519897
Output for 5.3.29
B :0.13355803489685 A :0.1191349029541
Output for 5.3.28
B :0.13537907600403 A :0.12150692939758
Output for 5.3.27
B :0.13496398925781 A :0.12007308006287
Output for 5.3.26
B :0.13578104972839 A :0.12036108970642
Output for 5.3.25
B :0.12302207946777 A :0.11973285675049
Output for 5.3.24
B :0.1355459690094 A :0.11929178237915
Output for 5.3.23
B :0.13523292541504 A :0.12440013885498
Output for 5.3.22
B :0.13521599769592 A :0.12120914459229
Output for 5.3.21
B :0.14043092727661 A :0.12769603729248
Output for 5.3.20
B :0.14177417755127 A :0.11931395530701
Output for 5.3.19
B :0.15155792236328 A :0.12297606468201
Output for 5.3.18
B :0.14905500411987 A :0.11856985092163
Output for 5.3.17
B :0.12934017181396 A :0.11881589889526
Output for 5.3.16
B :0.13099098205566 A :0.12010192871094
Output for 5.3.15
B :0.1201868057251 A :0.11804890632629
Output for 5.3.14
B :0.11576104164124 A :0.10164499282837
Output for 5.3.13
B :0.10584402084351 A :0.10098481178284
Output for 5.3.12
B :0.10101389884949 A :0.10386300086975
Output for 5.3.11
B :0.13381695747375 A :0.13993501663208
Output for 5.3.10
B :0.17926621437073 A :0.17018508911133
Output for 5.3.9
B :0.096903085708618 A :0.097698926925659
Output for 5.3.8
B :0.097568988800049 A :0.096850872039795
Output for 5.3.7
B :0.1003589630127 A :0.10106086730957
Output for 5.3.6
B :0.1139190196991 A :0.099268913269043
Output for 5.3.5
B :0.098518133163452 A :0.098974943161011
Output for 5.3.4
B :0.11075687408447 A :0.11698198318481
Output for 5.3.3
B :0.10975193977356 A :0.097327947616577
Output for 5.3.2
B :0.14151191711426 A :0.11746907234192
Output for 5.3.1
B :0.11999607086182 A :0.11919713020325
Output for 5.3.0
B :0.1420419216156 A :0.12335610389709
Output for 5.2.17
B :0.12008595466614 A :0.11954998970032
Output for 5.2.16
B :0.12051200866699 A :0.12047100067139
Output for 5.2.15
B :0.12651896476746 A :0.12509298324585
Output for 5.2.14
B :0.17025399208069 A :0.12217593193054
Output for 5.2.13
B :0.15718102455139 A :0.14652705192566
Output for 5.2.12
B :0.18488597869873 A :0.14740896224976
Output for 5.2.11
B :0.14931416511536 A :0.1471540927887
Output for 5.2.10
B :0.17854309082031 A :0.14650893211365
Output for 5.2.9
B :0.18031477928162 A :0.14916205406189
Output for 5.2.8
B :0.18287205696106 A :0.14823913574219
Output for 5.2.7
B :0.17809891700745 A :0.14795398712158
Output for 5.2.6
B :0.16724491119385 A :0.14685416221619
Output for 5.2.5
B :0.17201089859009 A :0.1467170715332
Output for 5.2.4
B :0.14929795265198 A :0.14554405212402
Output for 5.2.3
B :0.14345693588257 A :0.14389085769653
Output for 5.2.2
B :0.16567492485046 A :0.15234303474426
Output for 5.2.1
B :0.18019485473633 A :0.14336109161377
Output for 5.2.0
B :0.1797878742218 A :0.14684891700745
Output for 5.1.6
B :0.18706607818604 A :0.15146207809448
Output for 5.1.5
B :0.15627503395081 A :0.16154003143311
Output for 5.1.4
B :0.16000699996948 A :0.15580606460571
Output for 5.1.3
B :0.15675806999207 A :0.15244889259338
Output for 5.1.2
B :0.24288105964661 A :0.14888095855713
Output for 5.1.1
B :0.25116014480591 A :0.14439010620117
Output for 5.1.0
B :0.25851702690125 A :0.14961814880371
Output for 5.0.5
B :0.27390217781067 A :0.23262095451355
Output for 5.0.4
B :0.27816081047058 A :0.22083306312561
Output for 5.0.3
B :0.248783826828 A :0.2067608833313
Output for 5.0.2
B :0.28264307975769 A :0.22084498405457
Output for 5.0.1
B :0.26818609237671 A :0.20759510993958
Output for 5.0.0
B :0.2634539604187 A :0.22048282623291
Output for 4.4.9
B :0.276677 A :0.207052
Output for 4.4.8
B :0.270893 A :0.206324
Output for 4.4.7
B :0.257302 A :-0.775896
Output for 4.4.6
B :0.262492 A :0.214299
Output for 4.4.5
B :0.272445 A :-0.793029
Output for 4.4.4
B :0.25015 A :-0.789293
Output for 4.4.3
B :0.312245 A :-0.791085
Output for 4.4.2
B :0.244276 A :-0.789878
Output for 4.4.1
B :0.262818 A :0.212436
Output for 4.4.0
B :0.261619 A :0.208439
Output for 4.3.11
B :0.276429 A :-0.793683
Output for 4.3.10
B :-0.73798 A :0.210111
Output for 4.3.9
B :-0.752645 A :0.203663
Output for 4.3.8
B :-0.761727 A :0.215213
Output for 4.3.7
B :0.244978 A :0.208154
Output for 4.3.6
B :-0.74334 A :0.201661
Output for 4.3.5
B :0.222949 A :0.198992
Output for 4.3.4
B :-0.806657 A :0.17096
Output for 4.3.3
B :0.260195 A :0.202098
Output for 4.3.2
B :-0.820566 A :0.167094
Output for 4.3.1
B :0.231309 A :0.164472
Output for 4.3.0
B :-0.720982 A :0.205627