3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $range = range(1,100000); $start_time = microtime(); array_shift($range); $end_time = microtime(); echo $end_time - $start_time; $start_time = microtime(); count($range); $end_time = microtime(); echo $end_time - $start_time;
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/SSoLa on line 11 Notice: A non well formed numeric value encountered in /in/SSoLa on line 11 0.000246 Notice: A non well formed numeric value encountered in /in/SSoLa on line 21 Notice: A non well formed numeric value encountered in /in/SSoLa on line 21 2.0000000000003E-6
Output for 7.0.14
0.0004472.9999999999995E-6
Output for 7.0.12
0.0004693.0000000000004E-6
Output for 7.0.6
0.000257000000000061.0000000000288E-6
Output for 7.0.5
0.000422000000000032.0000000000575E-6
Output for 7.0.4
0.000415000000000052.0000000000575E-6
Output for 7.0.3
0.000420000000000033.0000000000308E-6
Output for 7.0.2
0.0003932.9999999999961E-6
Output for 7.0.1
0.000424000000000011.000000000001E-6
Output for 7.0.0
0.000379000000000022.9999999999752E-6
Output for hhvm-3.12.0
0.000115000000000097.999999999897E-6
Output for hhvm-3.10.0
8.7000000000004E-52.000000000002E-6
Output for 5.6.28
0.0018832.000000000002E-6
Output for 5.6.21
0.0017792.9999999999752E-6
Output for 5.6.20
0.0016722.9999999999752E-6
Output for 5.6.19
0.0022643.000000000003E-6
Output for 5.6.18
0.0020283.9999999999971E-6
Output for 5.6.17
0.00216399999999992.9999999999752E-6
Output for 5.6.16
0.00172400000000011.9999999999465E-6
Output for 5.6.15
0.0019952.9999999999891E-6
Output for 5.6.14
0.0021052.9999999999752E-6
Output for 5.6.13
0.0017842.0000000000575E-6
Output for 5.6.12
0.00152700000000011.9999999999465E-6
Output for 5.6.11
0.0014762.000000000002E-6
Output for 5.6.10
0.001531.9999999999465E-6
Output for 5.6.9
0.0014549.9999999991773E-7
Output for 5.6.8
0.00142599999999992.0000000000575E-6
Output for 5.6.7
0.0019921.9999999999881E-6
Output for 5.6.6
0.00147700000000012.0000000000575E-6
Output for 5.6.5
0.0014272.000000000002E-6
Output for 5.6.4
0.00148299999999992.0000000000575E-6
Output for 5.6.3
0.0014862.000000000002E-6
Output for 5.6.2
0.001593.0000000000863E-6
Output for 5.6.1
0.00166200000000012.0000000000575E-6
Output for 5.6.0
0.0017692.9999999999995E-6
Output for 5.5.35
0.0020512.000000000002E-6
Output for 5.5.34
0.0035791.9999999999465E-6
Output for 5.5.33
0.0038293.0000000000308E-6
Output for 5.5.32
0.0037634.000000000004E-6
Output for 5.5.31
0.0039992.0000000000575E-6
Output for 5.5.30
0.00336100000000014.000000000004E-6
Output for 5.5.29
0.0029272.000000000002E-6
Output for 5.5.28
0.00243699999999992.0000000000575E-6
Output for 5.5.27
0.0026012.000000000002E-6
Output for 5.5.26
0.00240100000000012.9999999999752E-6
Output for 5.5.25
0.0025312.9999999999752E-6
Output for 5.5.24
0.00254599999999992.9999999999752E-6
Output for 5.5.19, 5.5.23
0.0027092.000000000002E-6
Output for 5.5.22
0.0024772.0000000000575E-6
Output for 5.5.21
0.002561.9999999999985E-6
Output for 5.5.20
0.00276499999999991.9999999999465E-6
Output for 5.5.18
0.0027133.0000000000308E-6
Output for 5.5.16
0.0023133.000000000003E-6
Output for 5.5.15
0.0025732.9999999999752E-6
Output for 5.5.14
0.0031193.000000000003E-6
Output for 5.5.13
0.00296699999999992.9999999999752E-6
Output for 5.5.12
0.0032172.9999999999961E-6
Output for 5.5.11
0.0037953.0000000000308E-6
Output for 5.5.10
0.00293899999999991.9999999999465E-6
Output for 5.5.9
0.003233.000000000003E-6
Output for 5.5.8
0.0039613.0000000000308E-6
Output for 5.5.7
0.00357599999999992.9999999999752E-6
Output for 5.5.6
0.0034542.9999999999752E-6
Output for 5.5.5
0.0028514.000000000004E-6
Output for 5.5.4
0.0036714.000000000004E-6
Output for 5.5.3
0.0033652.9999999999752E-6
Output for 5.5.2
0.0040274.000000000004E-6
Output for 5.5.1
0.0039554.000000000004E-6
Output for 5.5.0
0.00358100000000012.9999999999752E-6
Output for 5.4.45
0.0031543.0E-6
Output for 5.4.44
0.0026241.9999999999465E-6
Output for 5.4.43
0.0026732.9999999999752E-6
Output for 5.4.42
0.0029262.9999999999752E-6
Output for 5.4.41
0.0029352.000000000002E-6
Output for 5.4.40
0.002492.0000000000575E-6
Output for 5.4.39
0.0026952.000000000002E-6
Output for 5.4.38
0.0026859.9999999991773E-7
Output for 5.4.37
0.0026893.000000000003E-6
Output for 5.4.36
0.0026792.0000000000575E-6
Output for 5.4.35
0.0024212.0000000000575E-6
Output for 5.4.34
0.0030111.9999999999465E-6
Output for 5.4.32
0.0025783.0000000000308E-6
Output for 5.4.31
0.00278600000000012.0000000000575E-6
Output for 5.4.30
0.0026553.0000000000308E-6
Output for 5.4.29
0.0033622.000000000002E-6
Output for 5.4.28
0.0035052.9999999999752E-6
Output for 5.4.27
0.003863.9999999999762E-6
Output for 5.4.26
0.0039752.9999999999752E-6
Output for 5.4.25
0.00281899999999993.0000000000863E-6
Output for 5.4.24
0.00361199999999992.9999999999752E-6
Output for 5.4.23
0.0041772.9999999999752E-6
Output for 5.4.22
0.0035323.0000000000863E-6
Output for 5.4.21
0.0029163.0000000000863E-6
Output for 5.4.20
0.0037074.000000000004E-6
Output for 5.4.19
0.0031354.000000000004E-6
Output for 5.4.18
0.0037733.000000000003E-6
Output for 5.4.17
0.00316000000000013.0000000000863E-6
Output for 5.4.16
0.0036574.0000000000005E-6
Output for 5.4.15
0.0038164.000000000004E-6
Output for 5.4.14
0.0032432.9999999999752E-6
Output for 5.4.13
0.0029283.000000000003E-6
Output for 5.4.12
0.0041314.9999999999217E-6
Output for 5.4.11
0.0034753.000000000003E-6
Output for 5.4.10
0.003584.000000000004E-6
Output for 5.4.9
0.00402899999999992.9999999999752E-6
Output for 5.4.8
0.0035563.000000000003E-6
Output for 5.4.7
0.0035183.0000000000863E-6
Output for 5.4.6
0.0031122.9999999999752E-6
Output for 5.4.5
0.003872.000000000002E-6
Output for 5.4.4
0.0040553.0000000000863E-6
Output for 5.4.3
0.00313299999999993.0000000000863E-6
Output for 5.4.2
0.0041015.0000000000328E-6
Output for 5.4.1
0.00323299999999992.9999999999752E-6
Output for 5.4.0
0.0033173.000000000003E-6
Output for 5.3.29
0.0027072.9999999999752E-6
Output for 5.3.28
0.0033653.000000000003E-6
Output for 5.3.27
0.0030914.000000000004E-6
Output for 5.3.26
0.0035863.9999999999485E-6
Output for 5.3.25
0.0037064.000000000004E-6
Output for 5.3.24
0.0039894.000000000004E-6
Output for 5.3.23
0.0030973.0000000000308E-6
Output for 5.3.22
0.0028691.9999999999465E-6
Output for 5.3.21
0.0028672.9999999999752E-6
Output for 5.3.20
0.0030023.000000000003E-6
Output for 5.3.19
0.0036254.000000000004E-6
Output for 5.3.18
0.0033943.000000000003E-6
Output for 5.3.17
0.0046633.0000000000308E-6
Output for 5.3.16
0.0033292.9999999999752E-6
Output for 5.3.15
0.0026721.9999999999881E-6
Output for 5.3.14
0.0031633.0000000000308E-6
Output for 5.3.13
0.004044.000000000004E-6
Output for 5.3.12
0.0031994.000000000004E-6
Output for 5.3.11
0.00352700000000012.9999999999752E-6
Output for 5.3.10
0.0039942.9999999999752E-6
Output for 5.3.9
0.0039182.9999999999752E-6
Output for 5.3.8
0.0038314.000000000004E-6
Output for 5.3.7
0.00362699999999994.000000000004E-6
Output for 5.3.6
0.0040874.000000000004E-6
Output for 5.3.5
0.0028263.000000000003E-6
Output for 5.3.4
0.00345100000000012.9999999999752E-6
Output for 5.3.3
0.0028143.000000000003E-6
Output for 5.3.2
0.0038512.9999999999752E-6
Output for 5.3.1
0.0034324.9999999999981E-6
Output for 5.3.0
0.0042493.0000000000308E-6
Output for 5.2.17
0.003594.000000000004E-6
Output for 5.2.16
0.00362299999999994.000000000004E-6
Output for 5.2.15
0.0036274.000000000004E-6
Output for 5.2.14
0.0034684.000000000004E-6
Output for 5.2.13
0.0029264.000000000004E-6
Output for 5.2.12
0.0036064.000000000004E-6
Output for 5.2.11
0.0038294.9999999999772E-6
Output for 5.2.10
0.0038382.9999999999752E-6
Output for 5.2.9
0.0039884.000000000004E-6
Output for 5.2.8
0.0028172.9999999999995E-6
Output for 5.2.7
0.0037334.000000000004E-6
Output for 5.2.6
0.0027742.9999999999752E-6
Output for 5.2.5
0.0040635.0000000000328E-6
Output for 5.2.4
0.0033043.000000000003E-6
Output for 5.2.3
0.0026523.000000000003E-6
Output for 5.2.2
0.0034634.000000000004E-6
Output for 5.2.1
0.0035394.000000000004E-06
Output for 5.2.0
0.0041084.000000000004E-06
Output for 5.1.6
0.0070422.9999999999752E-06
Output for 5.1.5
0.0039512.9999999999752E-06
Output for 5.1.4
0.0040842.000000000002E-06
Output for 5.1.3
0.0041583.0000000000308E-06
Output for 5.1.2
0.0038482.9999999999752E-06
Output for 5.1.1
0.00481300000000012.9999999999752E-06
Output for 5.1.0
0.0046293.000000000003E-06
Output for 5.0.5
0.0052563.0000000000308E-06
Output for 5.0.4
0.0054214.000000000004E-06
Output for 5.0.3
0.0057986.9999999999792E-06
Output for 5.0.2
0.0061745.0000000000328E-06
Output for 5.0.1
0.00628100000000014.9999999999217E-06
Output for 5.0.0
0.0052973.9999999999971E-06
Output for 4.4.9
0.0053013.0000000000308E-06
Output for 4.4.8
0.00703000000000014.000000000004E-06
Output for 4.4.7
0.006085.0000000000328E-06
Output for 4.4.6
0.0056753.999999999893E-06
Output for 4.4.5
0.0064724.9999999999217E-06
Output for 4.4.4
0.00445299999999992.9999999999752E-06
Output for 4.4.3
0.0046492.9999999999961E-06
Output for 4.4.2
0.00450800000000011.0999999999983E-05
Output for 4.4.1
0.0049393.0000000000308E-06
Output for 4.4.0
0.0067414.000000000004E-06
Output for 4.3.11
0.0053322.9999999999752E-06
Output for 4.3.10
0.0065614.000000000004E-06
Output for 4.3.9
0.00649600000000014.000000000004E-06
Output for 4.3.8
0.004834.000000000004E-06
Output for 4.3.7
0.0065475.0000000000328E-06
Output for 4.3.6
0.0065976.9999999999792E-06
Output for 4.3.5
0.0063145.0000000000328E-06
Output for 4.3.4
0.0054615.0000000000328E-06
Output for 4.3.3
0.0057694.9999999999981E-06
Output for 4.3.2
0.0053896.000000000006E-06
Output for 4.3.1
0.0059044.000000000004E-06
Output for 4.3.0
0.00635.0000000000328E-06