3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $tries = 1000; $arr = array(1,2,3); $start = microtime(true); for ($i = 0; $i < $tries; $i++) { $test = $arr[0]; } echo (microtime(true) - $start); $start = microtime(true); for ($i = 0; $i < $tries; $i++) { $test = current($arr); } echo (microtime(true) - $start);
Output for 7.1.0
2.9087066650391E-55.793571472168E-5
Output for 7.0.14
5.1975250244141E-56.1988830566406E-5
Output for 7.0.7
2.9087066650391E-54.0054321289062E-5
Output for 7.0.6
1.8119812011719E-52.598762512207E-5
Output for 7.0.5
1.4781951904297E-52.0980834960938E-5
Output for 7.0.4
2.5033950805664E-53.2901763916016E-5
Output for 7.0.3
1.5020370483398E-52.0027160644531E-5
Output for 7.0.2
2.3841857910156E-54.6014785766602E-5
Output for 7.0.1
1.6927719116211E-54.1961669921875E-5
Output for 7.0.0
1.8119812011719E-52.4080276489258E-5
Output for 5.6.28
7.0095062255859E-50.0001518726348877
Output for 5.6.22
7.0095062255859E-50.00012993812561035
Output for 5.6.21
4.2915344238281E-58.4877014160156E-5
Output for 5.6.20
4.887580871582E-50.00010800361633301
Output for 5.6.19
4.1961669921875E-58.6069107055664E-5
Output for 5.6.18
3.6001205444336E-58.0108642578125E-5
Output for 5.6.17
3.504753112793E-58.392333984375E-5
Output for 5.6.16
4.6968460083008E-50.00010108947753906
Output for 5.6.15
5.9843063354492E-50.00010395050048828
Output for 5.6.14
3.504753112793E-58.2015991210938E-5
Output for 5.6.13
4.2200088500977E-58.6069107055664E-5
Output for 5.6.12
6.4849853515625E-50.00013899803161621
Output for 5.6.11
6.5088272094727E-50.00016403198242188
Output for 5.6.10
4.0054321289062E-58.2969665527344E-5
Output for 5.6.9
3.6001205444336E-56.9141387939453E-5
Output for 5.6.8
3.504753112793E-56.9141387939453E-5
Output for 5.6.7
4.1961669921875E-59.2983245849609E-5
Output for 5.6.6
4.1961669921875E-58.392333984375E-5
Output for 5.6.5
8.8930130004883E-50.0001518726348877
Output for 5.6.4
6.1988830566406E-50.00012493133544922
Output for 5.6.3
5.1021575927734E-59.2983245849609E-5
Output for 5.6.2
6.2942504882812E-50.00011992454528809
Output for 5.6.1
7.2956085205078E-50.00016689300537109
Output for 5.6.0
6.9141387939453E-50.00014805793762207
Output for 5.5.36
7.5817108154297E-50.00015115737915039
Output for 5.5.35
6.413459777832E-50.00012707710266113
Output for 5.5.34
3.7908554077148E-57.3909759521484E-5
Output for 5.5.33
4.2915344238281E-59.2983245849609E-5
Output for 5.5.32
5.6982040405273E-58.7976455688477E-5
Output for 5.5.31
4.7922134399414E-59.9897384643555E-5
Output for 5.5.30
4.4107437133789E-58.9168548583984E-5
Output for 5.5.29
5.0783157348633E-50.00010395050048828
Output for 5.5.28
5.0067901611328E-59.8943710327148E-5
Output for 5.5.27
4.4107437133789E-58.9883804321289E-5
Output for 5.5.26
3.6001205444336E-57.2956085205078E-5
Output for 5.5.25
5.1975250244141E-58.1062316894531E-5
Output for 5.5.24
6.5088272094727E-50.00012993812561035
Output for 5.5.23
5.5074691772461E-50.00011181831359863
Output for 5.5.22
4.6014785766602E-59.2029571533203E-5
Output for 5.5.21
4.7206878662109E-50.00010919570922852
Output for 5.5.20
9.0122222900391E-50.0001680850982666
Output for 5.5.19
6.0081481933594E-50.00011610984802246
Output for 5.5.18
6.103515625E-50.00014185905456543
Output for 5.5.16
8.2969665527344E-50.00016212463378906
Output for 5.5.15
5.793571472168E-50.00011706352233887
Output for 5.5.14
7.4863433837891E-50.00016498565673828
Output for 5.5.13
7.4863433837891E-50.0001518726348877
Output for 5.5.12
7.2002410888672E-50.00015687942504883
Output for 5.5.11
6.0081481933594E-50.00011301040649414
Output for 5.5.10
6.2942504882812E-50.00012803077697754
Output for 5.5.9
8.392333984375E-50.00019502639770508
Output for 5.4.17, 5.5.8
5.5074691772461E-50.00011205673217773
Output for 5.5.7
7.1048736572266E-50.0001370906829834
Output for 5.5.6
7.2956085205078E-50.00014400482177734
Output for 5.5.5
6.413459777832E-50.00013208389282227
Output for 5.5.4
6.1988830566406E-50.00014495849609375
Output for 5.4.35, 5.5.3
7.5101852416992E-50.00017309188842773
Output for 5.5.2
5.6028366088867E-50.00012087821960449
Output for 5.5.1
7.6055526733398E-50.00015401840209961
Output for 5.5.0
6.103515625E-50.00012302398681641
Output for 5.4.45
4.2915344238281E-59.4890594482422E-5
Output for 5.4.44
4.2915344238281E-59.8943710327148E-5
Output for 5.4.43
6.6041946411133E-50.00013208389282227
Output for 5.4.42
6.8187713623047E-50.0001370906829834
Output for 5.4.41
3.6954879760742E-57.2002410888672E-5
Output for 5.4.40
3.504753112793E-57.2002410888672E-5
Output for 5.4.39
4.4107437133789E-58.8930130004883E-5
Output for 5.4.25, 5.4.38
4.2915344238281E-58.7976455688477E-5
Output for 5.4.37
7.1048736572266E-50.00014519691467285
Output for 5.4.36
6.0081481933594E-50.00011897087097168
Output for 5.4.34
7.4863433837891E-50.00017404556274414
Output for 5.4.32
7.4863433837891E-50.00015592575073242
Output for 5.4.31
7.7009201049805E-50.00015497207641602
Output for 5.4.30
8.2015991210938E-50.00016403198242188
Output for 5.4.29
5.9127807617188E-50.00011897087097168
Output for 5.4.28
5.793571472168E-50.00011515617370605
Output for 5.4.27
7.4863433837891E-50.00015115737915039
Output for 5.4.26
7.0810317993164E-50.00014591217041016
Output for 5.4.24
7.3909759521484E-50.00014996528625488
Output for 5.4.23
7.5101852416992E-50.0001521110534668
Output for 5.4.22
4.6968460083008E-59.4175338745117E-5
Output for 5.4.21
4.5061111450195E-59.4890594482422E-5
Output for 5.4.20
6.3896179199219E-50.00012898445129395
Output for 5.4.19
4.6014785766602E-58.9168548583984E-5
Output for 5.4.18
7.2002410888672E-50.00014400482177734
Output for 5.4.16
6.6995620727539E-50.00015401840209961
Output for 5.4.15
6.103515625E-50.0001378059387207
Output for 5.3.21, 5.4.14
7.2002410888672E-50.00014495849609375
Output for 5.4.13
7.2956085205078E-50.0001671314239502
Output for 5.4.12
7.2956085205078E-50.0001530647277832
Output for 5.4.11
6.0081481933594E-50.0001220703125
Output for 5.4.10
6.1988830566406E-50.0001220703125
Output for 5.4.9
0.000100135803222660.00025701522827148
Output for 5.4.8
7.2956085205078E-50.00015997886657715
Output for 5.4.7
8.5830688476562E-50.00015783309936523
Output for 5.4.6
7.3909759521484E-50.00017309188842773
Output for 5.4.5
6.9856643676758E-50.00014519691467285
Output for 5.4.4
7.7962875366211E-50.00016093254089355
Output for 5.4.3
8.1062316894531E-50.00015377998352051
Output for 5.4.2
7.7962875366211E-50.00015592575073242
Output for 5.4.1
6.5088272094727E-50.00012302398681641
Output for 5.4.0
4.1961669921875E-58.702278137207E-5
Output for 5.3.29
9.1075897216797E-50.00020098686218262
Output for 5.3.28
5.4836273193359E-50.00012493133544922
Output for 5.3.27
9.0122222900391E-50.00019097328186035
Output for 5.3.26
9.1075897216797E-50.00018000602722168
Output for 5.3.25
8.2015991210938E-50.00016593933105469
Output for 5.3.24
7.1048736572266E-50.00014305114746094
Output for 5.3.23
8.392333984375E-50.00019192695617676
Output for 5.3.22
9.1075897216797E-50.00018620491027832
Output for 5.3.20
0.000102996826171880.00020098686218262
Output for 5.3.19
8.7976455688477E-50.00018692016601562
Output for 5.3.18
5.6982040405273E-50.00010490417480469
Output for 5.3.17
9.3936920166016E-50.00018000602722168
Output for 5.3.16
0.000149965286254880.00020003318786621
Output for 5.3.15
9.5844268798828E-50.00020599365234375
Output for 5.3.14
0.000131130218505860.00036716461181641
Output for 5.3.13
9.0837478637695E-50.00020313262939453
Output for 5.3.12
9.1075897216797E-50.00019502639770508
Output for 5.3.11
0.000100851058959960.00018191337585449
Output for 5.3.10
6.103515625E-50.00011396408081055
Output for 5.3.9
8.0108642578125E-50.00015592575073242
Output for 5.3.8
0.00010704994201660.00019598007202148
Output for 5.3.7
0.000100851058959960.00022196769714355
Output for 5.3.6
8.9168548583984E-50.00017094612121582
Output for 5.3.5
7.0810317993164E-50.00015687942504883
Output for 5.3.4
8.8930130004883E-50.00017809867858887
Output for 5.3.3
9.2983245849609E-50.00018405914306641
Output for 5.3.2
7.4148178100586E-50.00014710426330566
Output for 5.3.1
5.4121017456055E-50.0001060962677002
Output for 5.3.0
0.000102996826171880.00019001960754395
Output for 5.2.17
0.000114917755126950.00019311904907227
Output for 5.2.16
0.000117063522338870.00021100044250488
Output for 5.2.15
0.000140190124511720.00019478797912598
Output for 5.2.14
0.000163078308105470.00021600723266602
Output for 5.2.13
0.00010609626770020.00018405914306641
Output for 5.2.12
0.000102996826171880.00016880035400391
Output for 5.2.11
0.00013804435729980.0002288818359375
Output for 5.2.10
0.000102043151855470.00016999244689941
Output for 5.2.9
0.000135898590087890.0001838207244873
Output for 5.2.8
0.000156164169311520.00022292137145996
Output for 5.2.7
0.000111103057861330.00020289421081543
Output for 5.2.6
9.8943710327148E-50.00016403198242188
Output for 5.2.5
0.000129938125610350.00021791458129883
Output for 5.2.4
0.000132083892822270.00024914741516113
Output for 5.2.3
0.000104904174804690.0001680850982666
Output for 5.2.2
0.000131845474243160.000244140625
Output for 5.2.1
0.000223159790039060.00038290023803711
Output for 5.2.0
0.000144004821777340.00022983551025391
Output for 5.1.6
0.000140905380249020.00025105476379395
Output for 5.1.5
0.000118017196655270.00019598007202148
Output for 5.1.4
0.000118017196655270.00021195411682129
Output for 5.1.3
8.5830688476562E-050.00013995170593262
Output for 5.1.2
0.000176191329956050.00020980834960938
Output for 5.1.1
0.000146865844726560.00022792816162109
Output for 5.1.0
0.000140905380249020.00022292137145996
Output for 5.0.5
0.000349044799804690.00055289268493652
Output for 5.0.4
0.000393152236938480.00052690505981445
Output for 5.0.3
0.000308990478515620.00046586990356445
Output for 5.0.2
0.000343084335327150.00053596496582031
Output for 5.0.1
0.000339984893798830.00048613548278809
Output for 5.0.0
0.00033593177795410.00045895576477051
Output for 4.4.9
0.0002710.000391
Output for 4.4.8
0.0001770.000251
Output for 4.4.7
0.0003590.000471
Output for 4.4.6
0.0004480.000479
Output for 4.4.5
0.000380.000498
Output for 4.4.4
0.000330.000428
Output for 4.4.3
0.0003560.00049
Output for 4.4.2
0.0003790.00048
Output for 4.4.1
0.0004480.000578
Output for 4.4.0
0.0003040.000401
Output for 4.3.11
0.0003360.000462
Output for 4.3.10
0.0003740.0005
Output for 4.3.9
0.0007920.000991
Output for 4.3.8
0.000350.000441
Output for 4.3.7
0.0003580.000499
Output for 4.3.6
0.0003880.000511
Output for 4.3.5
0.0003910.000507
Output for 4.3.4
0.0003240.000414
Output for 4.3.3
0.0003050.000402
Output for 4.3.2
0.0003620.000492
Output for 4.3.1
0.0003820.000494
Output for 4.3.0
0.0003580.000464