3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $cache = array('Blah\Blah\Blah', 'src/Blah/Blah/Blag.php'); $startList = microtime(true); for ($i = 0; $i < 1000; $i++) { list($class, $file) = $cache; } $endList = microtime(true); $startEach = microtime(true); for ($i = 0; $i < 1000; $i++) { $class = $cache[0]; $file = $cache[1]; } $endEach = microtime(true); $startAr = microtime(true); for ($i = 0; $i < 1000; $i++) { $class = reset($cache); $file = end($cache); } $endAr = microtime(true); $listDiff = $endList - $startList; $eachDiff = $endEach - $startEach; $arDiff = $endAr - $startAr; echo 'List diff: ' . $listDiff . "\n"; echo 'Each diff: ' . $eachDiff . "\n"; echo 'Ar diff: ' . $arDiff . "\n";
based on GSPOh
Output for 7.1.0
List diff: 7.0095062255859E-5 Each diff: 6.6041946411133E-5 Ar diff: 0.00017380714416504
Output for 7.0.14
List diff: 7.7009201049805E-5 Each diff: 8.1062316894531E-5 Ar diff: 0.00016093254089355
Output for 7.0.6
List diff: 4.6014785766602E-5 Each diff: 5.3167343139648E-5 Ar diff: 8.9883804321289E-5
Output for 7.0.5
List diff: 3.504753112793E-5 Each diff: 3.7908554077148E-5 Ar diff: 8.7976455688477E-5
Output for 7.0.4
List diff: 3.0994415283203E-5 Each diff: 3.2901763916016E-5 Ar diff: 6.103515625E-5
Output for 7.0.3
List diff: 2.9087066650391E-5 Each diff: 3.0994415283203E-5 Ar diff: 5.6982040405273E-5
Output for 7.0.2
List diff: 2.6941299438477E-5 Each diff: 5.0067901611328E-5 Ar diff: 5.5074691772461E-5
Output for 7.0.1
List diff: 2.8848648071289E-5 Each diff: 3.2186508178711E-5 Ar diff: 5.8889389038086E-5
Output for 7.0.0
List diff: 4.1007995605469E-5 Each diff: 4.5061111450195E-5 Ar diff: 8.2969665527344E-5
Output for hhvm-3.12.0
List diff: 9.7990036010742E-5 Each diff: 8.0108642578125E-5 Ar diff: 0.0001680850982666
Output for hhvm-3.10.0
List diff: 0.00014710426330566 Each diff: 0.00012588500976562 Ar diff: 0.00021100044250488
Output for 5.6.28
List diff: 0.00014710426330566 Each diff: 0.00014495849609375 Ar diff: 0.00035905838012695
Output for 5.6.21
List diff: 7.4863433837891E-5 Each diff: 7.4148178100586E-5 Ar diff: 0.0001838207244873
Output for 5.6.20
List diff: 8.6069107055664E-5 Each diff: 6.0081481933594E-5 Ar diff: 0.00021004676818848
Output for 5.6.19
List diff: 8.2015991210938E-5 Each diff: 7.8916549682617E-5 Ar diff: 0.0001990795135498
Output for 5.6.18
List diff: 5.9843063354492E-5 Each diff: 5.9127807617188E-5 Ar diff: 0.00015091896057129
Output for 5.6.17
List diff: 0.00010299682617188 Each diff: 7.7009201049805E-5 Ar diff: 0.00032496452331543
Output for 5.6.16
List diff: 0.00010395050048828 Each diff: 0.00010108947753906 Ar diff: 0.00021505355834961
Output for 5.6.15
List diff: 9.8943710327148E-5 Each diff: 9.4175338745117E-5 Ar diff: 0.00024580955505371
Output for 5.6.14
List diff: 9.7036361694336E-5 Each diff: 9.6797943115234E-5 Ar diff: 0.00024199485778809
Output for 5.6.13
List diff: 8.1062316894531E-5 Each diff: 7.9154968261719E-5 Ar diff: 0.00020480155944824
Output for 5.6.12
List diff: 8.9168548583984E-5 Each diff: 8.5830688476562E-5 Ar diff: 0.00021600723266602
Output for 5.6.11
List diff: 9.0122222900391E-5 Each diff: 8.7976455688477E-5 Ar diff: 0.00021505355834961
Output for 5.6.10
List diff: 6.103515625E-5 Each diff: 5.9843063354492E-5 Ar diff: 0.00014805793762207
Output for 5.6.9
List diff: 9.4890594482422E-5 Each diff: 9.2983245849609E-5 Ar diff: 0.00024318695068359
Output for 5.6.8
List diff: 6.2942504882812E-5 Each diff: 6.2227249145508E-5 Ar diff: 0.00015377998352051
Output for 5.5.35
List diff: 5.2928924560547E-5 Each diff: 5.1975250244141E-5 Ar diff: 0.00015115737915039
Output for 5.5.34
List diff: 0.00012111663818359 Each diff: 0.00012111663818359 Ar diff: 0.00044989585876465
Output for 5.5.33
List diff: 0.00010180473327637 Each diff: 9.6797943115234E-5 Ar diff: 0.00028896331787109
Output for 5.5.32
List diff: 0.00010800361633301 Each diff: 0.00010299682617188 Ar diff: 0.00030899047851562
Output for 5.5.31
List diff: 7.7962875366211E-5 Each diff: 6.6041946411133E-5 Ar diff: 0.00019598007202148
Output for 5.5.30
List diff: 0.00010204315185547 Each diff: 0.00010418891906738 Ar diff: 0.00028491020202637
Output for 5.5.29
List diff: 8.5115432739258E-5 Each diff: 8.2015991210938E-5 Ar diff: 0.0002598762512207
Output for 5.5.28
List diff: 0.00010108947753906 Each diff: 0.00010204315185547 Ar diff: 0.00028085708618164
Output for 5.5.27
List diff: 7.8916549682617E-5 Each diff: 7.7009201049805E-5 Ar diff: 0.00022006034851074
Output for 5.5.26
List diff: 9.2029571533203E-5 Each diff: 0.0001070499420166 Ar diff: 0.00026297569274902
Output for 5.5.25
List diff: 6.2942504882812E-5 Each diff: 6.103515625E-5 Ar diff: 0.00017905235290527
Output for 5.5.24
List diff: 6.8187713623047E-5 Each diff: 6.4849853515625E-5 Ar diff: 0.00018310546875
Output for 5.4.45
List diff: 8.5830688476562E-5 Each diff: 8.392333984375E-5 Ar diff: 0.00032806396484375
Output for 5.4.44
List diff: 5.6028366088867E-5 Each diff: 5.1021575927734E-5 Ar diff: 0.00016403198242188
Output for 5.4.43
List diff: 7.7009201049805E-5 Each diff: 0.00013208389282227 Ar diff: 0.00044798851013184
Output for 5.4.42
List diff: 7.7009201049805E-5 Each diff: 7.9870223999023E-5 Ar diff: 0.00029301643371582
Output for 5.4.41
List diff: 7.7962875366211E-5 Each diff: 8.6069107055664E-5 Ar diff: 0.00029492378234863
Output for 5.4.40
List diff: 7.5817108154297E-5 Each diff: 7.3909759521484E-5 Ar diff: 0.00021696090698242
Output for 5.4.39
List diff: 5.4121017456055E-5 Each diff: 5.1975250244141E-5 Ar diff: 0.00015091896057129
Output for 5.4.38
List diff: 0.00015997886657715 Each diff: 0.00015091896057129 Ar diff: 0.00051593780517578
Output for 5.4.37
List diff: 0.00014495849609375 Each diff: 0.00014305114746094 Ar diff: 0.00048708915710449
Output for 5.4.36
List diff: 0.00014805793762207 Each diff: 0.00018811225891113 Ar diff: 0.00049304962158203
Output for 5.4.35
List diff: 0.00012683868408203 Each diff: 0.00012111663818359 Ar diff: 0.00041007995605469
Output for 5.4.34
List diff: 0.00010800361633301 Each diff: 0.00010299682617188 Ar diff: 0.00030517578125
Output for 5.4.32
List diff: 8.0108642578125E-5 Each diff: 7.7009201049805E-5 Ar diff: 0.00022792816162109
Output for 5.4.31
List diff: 0.00011396408081055 Each diff: 0.00011301040649414 Ar diff: 0.00037980079650879
Output for 5.4.30
List diff: 0.00010800361633301 Each diff: 0.00013494491577148 Ar diff: 0.00027012825012207
Output for 5.4.29
List diff: 0.00012612342834473 Each diff: 0.00012898445129395 Ar diff: 0.00040197372436523
Output for 5.4.28
List diff: 0.00013208389282227 Each diff: 0.00022292137145996 Ar diff: 0.00043201446533203
Output for 5.4.27
List diff: 8.2969665527344E-5 Each diff: 7.9154968261719E-5 Ar diff: 0.00022292137145996
Output for 5.4.26
List diff: 8.1062316894531E-5 Each diff: 7.7009201049805E-5 Ar diff: 0.00021600723266602
Output for 5.4.25
List diff: 0.00011301040649414 Each diff: 0.00010991096496582 Ar diff: 0.00044393539428711
Output for 5.4.24
List diff: 8.1062316894531E-5 Each diff: 7.6055526733398E-5 Ar diff: 0.00022983551025391
Output for 5.4.23
List diff: 8.082389831543E-5 Each diff: 8.3208084106445E-5 Ar diff: 0.00024795532226562
Output for 5.4.22
List diff: 7.7962875366211E-5 Each diff: 7.3909759521484E-5 Ar diff: 0.00024700164794922
Output for 5.4.21
List diff: 0.00010085105895996 Each diff: 7.6055526733398E-5 Ar diff: 0.00022220611572266
Output for 5.4.20
List diff: 7.7009201049805E-5 Each diff: 7.3909759521484E-5 Ar diff: 0.00024199485778809
Output for 5.4.19
List diff: 8.9168548583984E-5 Each diff: 7.5817108154297E-5 Ar diff: 0.00022506713867188
Output for 5.4.18
List diff: 8.1062316894531E-5 Each diff: 7.7009201049805E-5 Ar diff: 0.00022196769714355
Output for 5.4.17
List diff: 9.2029571533203E-5 Each diff: 8.1062316894531E-5 Ar diff: 0.00024795532226562
Output for 5.4.16
List diff: 9.2029571533203E-5 Each diff: 7.8916549682617E-5 Ar diff: 0.00024199485778809
Output for 5.4.15
List diff: 8.1062316894531E-5 Each diff: 7.7962875366211E-5 Ar diff: 0.00022506713867188
Output for 5.4.14
List diff: 8.2969665527344E-5 Each diff: 8.4877014160156E-5 Ar diff: 0.00023508071899414
Output for 5.4.13
List diff: 8.1062316894531E-5 Each diff: 7.7009201049805E-5 Ar diff: 0.00022101402282715
Output for 5.4.12
List diff: 8.2015991210938E-5 Each diff: 8.702278137207E-5 Ar diff: 0.000244140625
Output for 5.4.11
List diff: 8.082389831543E-5 Each diff: 7.7962875366211E-5 Ar diff: 0.00024318695068359
Output for 5.4.10
List diff: 8.1062316894531E-5 Each diff: 7.7009201049805E-5 Ar diff: 0.00025081634521484
Output for 5.4.9
List diff: 8.1062316894531E-5 Each diff: 7.7962875366211E-5 Ar diff: 0.00027704238891602
Output for 5.4.8
List diff: 8.1062316894531E-5 Each diff: 7.7009201049805E-5 Ar diff: 0.00023794174194336
Output for 5.4.7
List diff: 8.2969665527344E-5 Each diff: 8.0108642578125E-5 Ar diff: 0.00022578239440918
Output for 5.4.6
List diff: 9.3936920166016E-5 Each diff: 8.0108642578125E-5 Ar diff: 0.00032186508178711
Output for 5.4.5
List diff: 8.8930130004883E-5 Each diff: 8.702278137207E-5 Ar diff: 0.00033402442932129
Output for 5.4.4
List diff: 0.00011515617370605 Each diff: 0.00010895729064941 Ar diff: 0.00034499168395996
Output for 5.4.3
List diff: 8.702278137207E-5 Each diff: 8.5115432739258E-5 Ar diff: 0.0002448558807373
Output for 5.4.2
List diff: 8.4161758422852E-5 Each diff: 8.8930130004883E-5 Ar diff: 0.00024890899658203
Output for 5.4.1
List diff: 8.0108642578125E-5 Each diff: 8.7976455688477E-5 Ar diff: 0.00023794174194336
Output for 5.4.0
List diff: 8.2969665527344E-5 Each diff: 8.7976455688477E-5 Ar diff: 0.000244140625
Output for 5.3.29
List diff: 0.00013089179992676 Each diff: 0.0001068115234375 Ar diff: 0.00037097930908203
Output for 5.3.28
List diff: 9.2983245849609E-5 Each diff: 9.0122222900391E-5 Ar diff: 0.00028681755065918
Output for 5.3.27
List diff: 9.0122222900391E-5 Each diff: 9.3936920166016E-5 Ar diff: 0.00030088424682617
Output for 5.3.26
List diff: 9.2029571533203E-5 Each diff: 9.608268737793E-5 Ar diff: 0.00030803680419922
Output for 5.3.25
List diff: 9.2029571533203E-5 Each diff: 8.7976455688477E-5 Ar diff: 0.00029110908508301
Output for 5.3.24
List diff: 9.2983245849609E-5 Each diff: 0.00010108947753906 Ar diff: 0.00028705596923828
Output for 5.3.23
List diff: 0.00010299682617188 Each diff: 9.918212890625E-5 Ar diff: 0.00031208992004395
Output for 5.3.22
List diff: 9.2029571533203E-5 Each diff: 8.9883804321289E-5 Ar diff: 0.00032806396484375
Output for 5.3.21
List diff: 9.4890594482422E-5 Each diff: 9.8943710327148E-5 Ar diff: 0.00031709671020508
Output for 5.3.20
List diff: 0.00010585784912109 Each diff: 0.00011610984802246 Ar diff: 0.00035285949707031
Output for 5.3.19
List diff: 8.8930130004883E-5 Each diff: 0.00010800361633301 Ar diff: 0.0003058910369873
Output for 5.3.18
List diff: 9.2983245849609E-5 Each diff: 8.8930130004883E-5 Ar diff: 0.00030708312988281
Output for 5.3.17
List diff: 0.00010395050048828 Each diff: 8.8930130004883E-5 Ar diff: 0.00031113624572754
Output for 5.3.16
List diff: 8.8930130004883E-5 Each diff: 0.00010204315185547 Ar diff: 0.00028896331787109
Output for 5.3.15
List diff: 0.00010013580322266 Each diff: 8.8930130004883E-5 Ar diff: 0.00031018257141113
Output for 5.3.14
List diff: 9.5129013061523E-5 Each diff: 8.9883804321289E-5 Ar diff: 0.00031900405883789
Output for 5.3.13
List diff: 0.00012683868408203 Each diff: 0.00013208389282227 Ar diff: 0.00043797492980957
Output for 5.3.12
List diff: 9.5129013061523E-5 Each diff: 0.00011491775512695 Ar diff: 0.00030112266540527
Output for 5.3.11
List diff: 0.00013303756713867 Each diff: 0.00012707710266113 Ar diff: 0.00051093101501465
Output for 5.3.10
List diff: 9.7036361694336E-5 Each diff: 9.4890594482422E-5 Ar diff: 0.00031590461730957
Output for 5.3.9
List diff: 9.2983245849609E-5 Each diff: 0.00011420249938965 Ar diff: 0.00034785270690918
Output for 5.3.8
List diff: 0.00011205673217773 Each diff: 8.7976455688477E-5 Ar diff: 0.00029492378234863
Output for 5.3.7
List diff: 9.1791152954102E-5 Each diff: 8.7976455688477E-5 Ar diff: 0.00029706954956055
Output for 5.3.6
List diff: 9.2983245849609E-5 Each diff: 9.3936920166016E-5 Ar diff: 0.0003211498260498
Output for 5.3.5
List diff: 0.00010991096496582 Each diff: 0.00011301040649414 Ar diff: 0.00037717819213867
Output for 5.3.4
List diff: 0.00011014938354492 Each diff: 9.608268737793E-5 Ar diff: 0.00031900405883789
Output for 5.3.3
List diff: 0.00010204315185547 Each diff: 8.702278137207E-5 Ar diff: 0.00028586387634277
Output for 5.3.2
List diff: 9.3936920166016E-5 Each diff: 8.8930130004883E-5 Ar diff: 0.00033211708068848
Output for 5.3.1
List diff: 0.00015377998352051 Each diff: 0.00013589859008789 Ar diff: 0.00052809715270996
Output for 5.3.0
List diff: 0.00012898445129395 Each diff: 0.00014519691467285 Ar diff: 0.00043702125549316
Output for 5.2.17
List diff: 0.00018477439880371 Each diff: 0.00018692016601562 Ar diff: 0.00051498413085938
Output for 5.2.16
List diff: 0.00020599365234375 Each diff: 0.00017094612121582 Ar diff: 0.00049304962158203
Output for 5.2.15
List diff: 0.00018000602722168 Each diff: 0.00019288063049316 Ar diff: 0.00045394897460938
Output for 5.2.14
List diff: 0.00017786026000977 Each diff: 0.00018095970153809 Ar diff: 0.00045919418334961
Output for 5.2.13
List diff: 0.00018000602722168 Each diff: 0.00019598007202148 Ar diff: 0.00043702125549316
Output for 5.2.12
List diff: 0.00018405914306641 Each diff: 0.00017809867858887 Ar diff: 0.00047898292541504
Output for 5.2.11
List diff: 0.00030803680419922 Each diff: 0.00021600723266602 Ar diff: 0.00074291229248047
Output for 5.2.10
List diff: 0.00020503997802734 Each diff: 0.00025796890258789 Ar diff: 0.00050806999206543
Output for 5.2.9
List diff: 0.00019001960754395 Each diff: 0.00022411346435547 Ar diff: 0.00051188468933105
Output for 5.2.8
List diff: 0.00013494491577148 Each diff: 0.00012707710266113 Ar diff: 0.00032997131347656
Output for 5.2.7
List diff: 0.00014615058898926 Each diff: 0.0001380443572998 Ar diff: 0.00032186508178711
Output for 5.2.6
List diff: 0.00018310546875 Each diff: 0.00020408630371094 Ar diff: 0.0003049373626709
Output for 5.2.5
List diff: 0.00012922286987305 Each diff: 0.00014591217041016 Ar diff: 0.00031805038452148
Output for 5.2.4
List diff: 0.00013303756713867 Each diff: 0.00015091896057129 Ar diff: 0.00032210350036621
Output for 5.2.3
List diff: 0.00019598007202148 Each diff: 0.00019502639770508 Ar diff: 0.00043201446533203
Output for 5.2.2
List diff: 0.00012493133544922 Each diff: 0.0001220703125 Ar diff: 0.00039911270141602
Output for 5.2.1
List diff: 0.00012683868408203 Each diff: 0.00013208389282227 Ar diff: 0.00034093856811523
Output for 5.2.0
List diff: 0.00022602081298828 Each diff: 0.00022506713867188 Ar diff: 0.0006110668182373
Output for 5.1.6
List diff: 0.00018405914306641 Each diff: 0.00018692016601562 Ar diff: 0.00050210952758789
Output for 5.1.5
List diff: 0.00020694732666016 Each diff: 0.00014615058898926 Ar diff: 0.00029993057250977
Output for 5.1.4
List diff: 0.00022196769714355 Each diff: 0.00018596649169922 Ar diff: 0.00047898292541504
Output for 5.1.3
List diff: 0.0001220703125 Each diff: 0.00014495849609375 Ar diff: 0.00038409233093262
Output for 5.1.2
List diff: 0.00020503997802734 Each diff: 0.00012302398681641 Ar diff: 0.0003359317779541
Output for 5.1.1
List diff: 0.00013899803161621 Each diff: 0.00013303756713867 Ar diff: 0.00030803680419922
Output for 5.1.0
List diff: 0.00015401840209961 Each diff: 0.00012612342834473 Ar diff: 0.0003049373626709
Output for 5.0.5
List diff: 0.00037002563476562 Each diff: 0.00037288665771484 Ar diff: 0.0006411075592041
Output for 5.0.4
List diff: 0.00034499168395996 Each diff: 0.00035595893859863 Ar diff: 0.00062179565429688
Output for 5.0.3
List diff: 0.00034809112548828 Each diff: 0.00033712387084961 Ar diff: 0.00070095062255859
Output for 5.0.2
List diff: 0.00032806396484375 Each diff: 0.00033998489379883 Ar diff: 0.00071597099304199
Output for 5.0.1
List diff: 0.00033998489379883 Each diff: 0.00035977363586426 Ar diff: 0.00064182281494141
Output for 5.0.0
List diff: 0.00037789344787598 Each diff: 0.00035500526428223 Ar diff: 0.00062203407287598
Output for 4.4.9
List diff: 0.00034100000000004 Each diff: 0.00035499999999999 Ar diff: 0.00054299999999996
Output for 4.4.8
List diff: 0.00034299999999998 Each diff: 0.00031700000000001 Ar diff: 0.00055899999999998
Output for 4.4.7
List diff: 0.00046099999999993 Each diff: 0.00044999999999995 Ar diff: 0.00075099999999995
Output for 4.4.6
List diff: 0.00042399999999998 Each diff: 0.00036199999999997 Ar diff: 0.00060199999999999
Output for 4.4.5
List diff: 0.00033099999999997 Each diff: 0.00033200000000011 Ar diff: 0.00053900000000007
Output for 4.4.4
List diff: 0.00031799999999993 Each diff: 0.00039600000000006 Ar diff: 0.00056100000000003
Output for 4.4.3
List diff: 0.00031900000000007 Each diff: 0.00034400000000001 Ar diff: 0.00056500000000004
Output for 4.4.2
List diff: 0.00033499999999997 Each diff: 0.000332 Ar diff: 0.00056999999999996
Output for 4.4.1
List diff: 0.00034000000000001 Each diff: 0.000359 Ar diff: 0.00053199999999998
Output for 4.4.0
List diff: 0.000327 Each diff: 0.000346 Ar diff: 0.000554
Output for 4.3.11
List diff: 0.000341 Each diff: 0.000329 Ar diff: 0.00058
Output for 4.3.10
List diff: 0.000321 Each diff: 0.00034799999999999 Ar diff: 0.00054700000000001
Output for 4.3.9
List diff: 0.000317 Each diff: 0.00035399999999999 Ar diff: 0.00053499999999999
Output for 4.3.8
List diff: 0.00036900000000001 Each diff: 0.00036600000000001 Ar diff: 0.000525
Output for 4.3.7
List diff: 0.00034899999999999 Each diff: 0.000337 Ar diff: 0.00070599999999998
Output for 4.3.6
List diff: 0.00032799999999999 Each diff: 0.000363 Ar diff: 0.00061700000000001
Output for 4.3.5
List diff: 0.00032199999999999 Each diff: 0.00035299999999999 Ar diff: 0.00053300000000001
Output for 4.3.4
List diff: 0.00036299999999997 Each diff: 0.00032900000000002 Ar diff: 0.00056100000000001
Output for 4.3.3
List diff: 0.00035100000000002 Each diff: 0.00046099999999999 Ar diff: 0.00059000000000001
Output for 4.3.2
List diff: 0.00032599999999999 Each diff: 0.00033100000000003 Ar diff: 0.00056100000000003
Output for 4.3.1
List diff: 0.000332 Each diff: 0.00031899999999996 Ar diff: 0.00075799999999998
Output for 4.3.0
List diff: 0.000167 Each diff: 0.000174 Ar diff: 0.000332