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.031991004943848 A :0.028987169265747
Output for 7.0.14
B :0.031244993209839 A :0.028342962265015
Output for 7.0.6
B :0.021883010864258 A :0.020491123199463
Output for 7.0.5
B :0.019706964492798 A :0.019703149795532
Output for 7.0.4
B :0.02074408531189 A :0.020062923431396
Output for 7.0.3
B :0.020581007003784 A :0.019906997680664
Output for 7.0.2
B :0.026918888092041 A :0.025185108184814
Output for 7.0.1
B :0.024473190307617 A :0.022752046585083
Output for 7.0.0
B :0.027660131454468 A :0.025035858154297
Output for hhvm-3.12.0
B :0.16140294075012 A :0.15999698638916
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.28
B :0.097219944000244 A :0.077507972717285
Output for 5.6.21
B :0.062346935272217 A :0.055264949798584
Output for 5.6.20
B :0.07397985458374 A :0.057290077209473
Output for 5.6.19
B :0.070456981658936 A :0.057477951049805
Output for 5.6.18
B :0.070247888565063 A :0.058125972747803
Output for 5.6.17
B :0.061232805252075 A :0.056478023529053
Output for 5.6.16
B :0.075505018234253 A :0.061109066009521
Output for 5.6.15
B :0.071529865264893 A :0.05724310874939
Output for 5.6.14
B :0.075294017791748 A :0.060014963150024
Output for 5.6.13
B :0.069716930389404 A :0.072910070419312
Output for 5.6.12
B :0.055002927780151 A :0.055511951446533
Output for 5.6.11
B :0.078335046768188 A :0.063640832901001
Output for 5.6.10
B :0.063533067703247 A :0.062879085540771
Output for 5.6.9
B :0.066076040267944 A :0.06469202041626
Output for 5.6.8
B :0.063713073730469 A :0.058639049530029
Output for 5.6.7
B :0.059730052947998 A :0.058412075042725
Output for 5.5.35
B :0.073796987533569 A :0.057746887207031
Output for 5.5.34
B :0.072975873947144 A :0.058306932449341
Output for 5.5.33
B :0.05542516708374 A :0.053965091705322
Output for 5.5.32
B :0.073632955551147 A :0.059731960296631
Output for 5.5.31
B :0.054262161254883 A :0.053631782531738
Output for 5.5.30
B :0.064436912536621 A :0.054069995880127
Output for 5.5.29
B :0.061862945556641 A :0.053812026977539
Output for 5.5.28
B :0.054254055023193 A :0.05336594581604
Output for 5.5.27
B :0.057250022888184 A :0.057392120361328
Output for 5.5.26
B :0.075106859207153 A :0.055004835128784
Output for 5.5.25
B :0.07235312461853 A :0.057317018508911
Output for 5.5.24
B :0.072745084762573 A :0.060485124588013
Output for 5.4.45
B :0.074506998062134 A :0.06113600730896
Output for 5.4.44
B :0.045274019241333 A :0.044843196868896
Output for 5.4.43
B :0.074517011642456 A :0.16032409667969
Output for 5.4.42
B :0.074313879013062 A :0.080453157424927
Output for 5.4.41
B :0.16331791877747 A :0.14902496337891
Output for 5.4.40
B :0.086879014968872 A :0.11378312110901
Output for 5.4.39
B :0.083160877227783 A :0.080322027206421
Output for 5.4.38
B :0.10431408882141 A :0.10423898696899
Output for 5.4.37
B :0.080051183700562 A :0.079223155975342
Output for 5.4.36
B :0.081469058990479 A :0.087893962860107
Output for 5.4.35
B :0.087701082229614 A :0.078757047653198
Output for 5.4.34
B :0.08994197845459 A :0.1286838054657
Output for 5.4.32
B :0.059418916702271 A :0.059580087661743
Output for 5.4.31
B :0.058239936828613 A :0.059984922409058
Output for 5.4.30
B :0.058587074279785 A :0.057228803634644
Output for 5.4.29
B :0.057494878768921 A :0.058542966842651
Output for 5.4.28
B :0.057912111282349 A :0.05774998664856
Output for 5.4.27
B :0.059875011444092 A :0.059689998626709
Output for 5.4.26
B :0.05768895149231 A :0.06348991394043
Output for 5.4.25
B :0.05636191368103 A :0.057378053665161
Output for 5.4.24
B :0.059386014938354 A :0.067203998565674
Output for 5.4.23
B :0.059383869171143 A :0.059437990188599
Output for 5.4.22
B :0.066516160964966 A :0.060342073440552
Output for 5.4.21
B :0.060173988342285 A :0.059796094894409
Output for 5.4.20
B :0.061505079269409 A :0.061244964599609
Output for 5.4.19
B :0.060935020446777 A :0.062551975250244
Output for 5.4.18
B :0.060853004455566 A :0.060349941253662
Output for 5.4.17
B :0.41058301925659 A :0.15214586257935
Output for 5.4.16
B :0.326819896698 A :0.55249309539795
Output for 5.4.15
B :0.49267816543579 A :0.20192408561707
Output for 5.4.14
B :0.13496899604797 A :0.13708806037903
Output for 5.4.13
B :0.13926196098328 A :0.13070392608643
Output for 5.4.12
B :0.13635301589966 A :0.13007783889771
Output for 5.4.11
B :0.1421000957489 A :0.14038801193237
Output for 5.4.10
B :0.13625407218933 A :0.13563394546509
Output for 5.4.9
B :0.13283681869507 A :0.13905215263367
Output for 5.4.8
B :0.13613510131836 A :0.13614988327026
Output for 5.4.7
B :0.069937944412231 A :0.19693493843079
Output for 5.4.6
B :0.1325318813324 A :0.19360113143921
Output for 5.4.5
B :0.14881205558777 A :0.20595002174377
Output for 5.4.4
B :0.19734382629395 A :0.07709002494812
Output for 5.4.3
B :0.15171599388123 A :0.14818692207336
Output for 5.4.2
B :0.13127493858337 A :0.069534063339233
Output for 5.4.1
B :0.15274906158447 A :0.21577501296997
Output for 5.4.0
B :0.069046974182129 A :0.13002610206604
Output for 5.3.29
B :0.092921018600464 A :0.087630987167358
Output for 5.3.28
B :0.068458080291748 A :0.067929983139038
Output for 5.3.27
B :0.15793704986572 A :0.15117120742798
Output for 5.3.26
B :0.16929697990417 A :0.23050212860107
Output for 5.3.25
B :0.16135096549988 A :0.15086698532104
Output for 5.3.24
B :0.15140008926392 A :0.15333795547485
Output for 5.3.23
B :0.21110486984253 A :0.14755415916443
Output for 5.3.22
B :0.14898681640625 A :0.23072910308838
Output for 5.3.21
B :0.14992904663086 A :0.21956205368042
Output for 5.3.20
B :0.20756101608276 A :0.15102386474609
Output for 5.3.19
B :0.14347195625305 A :0.21261715888977
Output for 5.3.18
B :0.14811992645264 A :0.14743280410767
Output for 5.3.17
B :0.1787531375885 A :0.15176105499268
Output for 5.3.16
B :0.14616990089417 A :0.22156000137329
Output for 5.3.15
B :0.19258308410645 A :0.22886896133423
Output for 5.3.14
B :0.15622997283936 A :0.14589905738831
Output for 5.3.13
B :0.21668601036072 A :0.14874911308289
Output for 5.3.12
B :0.14961695671082 A :0.1781210899353
Output for 5.3.11
B :0.19292211532593 A :0.15275883674622
Output for 5.3.10
B :0.14414000511169 A :0.20598196983337
Output for 5.3.9
B :0.2062771320343 A :0.17900204658508
Output for 5.3.8
B :0.14924001693726 A :0.20844197273254
Output for 5.3.7
B :0.2064368724823 A :0.14511513710022
Output for 5.3.6
B :0.15196108818054 A :0.1588659286499
Output for 5.3.5
B :0.15688109397888 A :0.15142893791199
Output for 5.3.4
B :0.18709206581116 A :0.15090012550354
Output for 5.3.3
B :0.18090987205505 A :0.15014004707336
Output for 5.3.2
B :0.23557496070862 A :0.1645519733429
Output for 5.3.1
B :0.15739703178406 A :0.20747709274292
Output for 5.3.0
B :0.2403872013092 A :0.174311876297
Output for 5.2.17
B :0.25927495956421 A :0.27684593200684
Output for 5.2.16
B :0.27801084518433 A :0.33061003684998
Output for 5.2.15
B :0.26632618904114 A :0.27201294898987
Output for 5.2.14
B :0.26667380332947 A :0.26076292991638
Output for 5.2.13
B :0.31694388389587 A :0.19708514213562
Output for 5.2.12
B :0.25748491287231 A :0.19293689727783
Output for 5.2.11
B :0.24517107009888 A :0.21765613555908
Output for 5.2.10
B :0.27030992507935 A :0.19350099563599
Output for 5.2.9
B :0.25733995437622 A :0.25893402099609
Output for 5.2.8
B :0.1920530796051 A :0.35892510414124
Output for 5.2.7
B :0.31892108917236 A :0.26134395599365
Output for 5.2.6
B :0.22265195846558 A :0.28437495231628
Output for 5.2.5
B :0.25065994262695 A :0.19348096847534
Output for 5.2.4
B :0.26052689552307 A :0.26574397087097
Output for 5.2.3
B :0.28024411201477 A :0.26807284355164
Output for 5.2.2
B :0.34474492073059 A :0.28691387176514
Output for 5.2.1
B :0.26513004302979 A :0.22054600715637
Output for 5.2.0
B :0.25842499732971 A :0.25984382629395
Output for 5.1.6
B :0.25987100601196 A :0.35823202133179
Output for 5.1.5
B :0.25169396400452 A :0.25114798545837
Output for 5.1.4
B :0.34753584861755 A :0.3263680934906
Output for 5.1.3
B :0.28141307830811 A :0.2606999874115
Output for 5.1.2
B :0.28902292251587 A :0.25715804100037
Output for 5.1.1
B :0.29372596740723 A :0.27095413208008
Output for 5.1.0
B :0.33879518508911 A :0.18935203552246
Output for 5.0.5
B :0.42943692207336 A :0.40087604522705
Output for 5.0.4
B :0.45068001747131 A :0.21325397491455
Output for 5.0.3
B :0.245276927948 A :0.19629788398743
Output for 5.0.2
B :0.25138092041016 A :0.203773021698
Output for 5.0.1
B :0.27418613433838 A :0.21302890777588
Output for 5.0.0
B :0.24245691299438 A :0.21980118751526
Output for 4.4.9
B :0.248912 A :-0.789684
Output for 4.4.8
B :0.232931 A :0.306201
Output for 4.4.7
B :0.222479 A :-0.799209
Output for 4.4.6
B :0.284459 A :0.248902
Output for 4.4.5
B :0.254278 A :-0.80262
Output for 4.4.4
B :0.250384 A :0.217482
Output for 4.4.3
B :0.313215 A :-0.796623
Output for 4.4.2
B :0.237881 A :0.218632
Output for 4.4.1
B :0.250532 A :-0.773723
Output for 4.4.0
B :0.254667 A :0.215653
Output for 4.3.11
B :0.298676 A :-0.793184
Output for 4.3.10
B :0.327984 A :0.256382
Output for 4.3.9
B :-0.685638 A :0.38937
Output for 4.3.8
B :0.337525 A :-0.743381
Output for 4.3.7
B :0.257771 A :0.273617
Output for 4.3.6
B :-0.691036 A :0.213377
Output for 4.3.5
B :0.232177 A :0.221075
Output for 4.3.4
B :-0.784869 A :0.189828
Output for 4.3.3
B :0.21052 A :0.188819
Output for 4.3.2
B :0.298305 A :-0.785882
Output for 4.3.1
B :0.199569 A :0.18797
Output for 4.3.0
B :0.221022 A :0.126378