3v4l.org

run code in 300+ PHP versions simultaneously
<? $arData = array( 0 => '5', 1 => '26', 2 => '6', 3 => '27' ); $arResult = array(); foreach ($arData as $key => $arValue) { $arResult[intval($key/2)][key($arValue)] = $arValue[key($arValue)]; } print_r($arResult); ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0150.00418.31
8.3.50.0120.00921.14
8.3.40.0070.00718.64
8.3.30.0110.00718.97
8.3.20.0080.00020.25
8.3.10.0040.00423.65
8.3.00.0060.00317.38
8.2.180.0140.00716.63
8.2.170.0140.00322.96
8.2.160.0060.00620.35
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0000.00826.16
8.2.120.0000.00922.19
8.2.110.0100.00022.21
8.2.100.0110.00017.50
8.2.90.0030.00619.05
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0080.00018.04
8.2.50.0060.00318.07
8.2.40.0080.00019.81
8.2.30.0000.00717.84
8.2.20.0000.00717.51
8.2.10.0040.00417.77
8.2.00.0040.00417.53
8.1.280.0140.00525.92
8.1.270.0080.00024.01
8.1.260.0070.00326.35
8.1.250.0050.00228.09
8.1.240.0050.00323.84
8.1.230.0050.00519.09
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0060.00317.10
8.1.190.0000.00717.22
8.1.180.0030.00618.10
8.1.170.0040.00418.53
8.1.160.0040.00421.93
8.1.150.0070.00018.85
8.1.140.0050.00217.23
8.1.130.0070.00017.65
8.1.120.0050.00217.33
8.1.110.0050.00317.34
8.1.100.0050.00317.30
8.1.90.0030.00317.21
8.1.80.0030.00317.21
8.1.70.0030.00317.27
8.1.60.0040.00417.42
8.1.50.0050.00317.28
8.1.40.0040.00417.38
8.1.30.0000.00917.54
8.1.20.0060.00317.40
8.1.10.0080.00017.40
8.1.00.0000.00817.25
8.0.300.0070.00018.77
8.0.290.0080.00016.63
8.0.280.0000.00718.40
8.0.270.0000.00717.15
8.0.260.0000.00717.06
8.0.250.0000.00616.71
8.0.240.0000.00816.86
8.0.230.0000.00716.79
8.0.220.0020.00416.79
8.0.210.0000.00616.80
8.0.200.0000.00716.70
8.0.190.0070.00016.78
8.0.180.0000.00716.78
8.0.170.0060.00316.76
8.0.160.0060.00316.80
8.0.150.0030.00616.70
8.0.140.0040.00416.66
8.0.130.0000.00513.34
8.0.120.0050.00516.75
8.0.110.0000.00716.65
8.0.100.0000.00716.71
8.0.90.0040.00416.79
8.0.80.0100.00716.81
8.0.70.0040.00416.63
8.0.60.0070.00016.70
8.0.50.0040.00416.77
8.0.30.0120.00917.01
8.0.20.0090.00917.40
8.0.10.0030.00516.92
8.0.00.0160.00316.44
7.4.330.0050.00015.09
7.4.320.0030.00316.37
7.4.300.0030.00316.43
7.4.290.0040.00416.43
7.4.280.0060.00316.35
7.4.270.0030.00316.36
7.4.260.0030.00316.36
7.4.250.0040.00416.20
7.4.240.0060.00116.32
7.4.230.0050.00316.16
7.4.220.0220.00016.41
7.4.210.0130.00616.42
7.4.200.0000.00816.43
7.4.160.0040.01116.17
7.4.150.0070.01417.40
7.4.140.0160.00517.86
7.4.130.0050.01116.34
7.4.120.0070.00916.41
7.4.110.0060.01016.44
7.4.100.0130.00316.36
7.4.90.0080.00816.51
7.4.80.0120.00719.39
7.4.70.0030.01316.34
7.4.60.0140.00316.41
7.4.50.0050.00316.48
7.4.40.0060.00916.42
7.4.30.0130.00316.37
7.4.00.0060.01214.56
7.3.330.0020.00313.25
7.3.320.0030.00313.16
7.3.310.0070.00016.22
7.3.300.0070.00016.10
7.3.290.0030.01016.13
7.3.280.0090.00816.13
7.3.270.0100.00717.40
7.3.260.0090.00916.39
7.3.250.0080.00816.21
7.3.240.0030.01416.11
7.3.230.0090.00916.41
7.3.210.0100.01016.21
7.3.200.0120.00419.39
7.3.190.0090.01216.46
7.3.180.0060.00916.28
7.3.170.0120.00416.48
7.3.160.0130.00616.48
7.3.10.0030.00916.58
7.3.00.0100.00416.57
7.2.330.0130.00716.51
7.2.320.0150.00316.38
7.2.310.0060.01116.55
7.2.300.0150.00316.53
7.2.290.0070.01016.20
7.2.130.0080.00916.70
7.2.120.0090.00416.77
7.2.110.0080.00316.88
7.2.100.0080.00816.92
7.2.90.0150.00317.01
7.2.80.0070.00916.82
7.2.70.0120.00516.86
7.2.60.0030.01016.84
7.2.50.0130.00216.77
7.2.40.0070.00616.90
7.2.30.0030.01216.96
7.2.20.0090.00616.60
7.2.10.0090.00316.63
7.2.00.0080.00717.65
7.1.250.0050.00615.71
7.1.200.0060.00615.80
7.1.100.0030.00918.48
7.1.70.0000.00717.26
7.1.60.0070.01819.32
7.1.50.0000.02116.78
7.1.00.0030.07722.33
7.0.200.0030.00616.80
7.0.140.0070.07022.15
7.0.60.0100.08319.86
7.0.50.0070.05017.86
7.0.40.0070.05720.09
7.0.30.0600.06020.25
7.0.20.0230.05720.33
7.0.10.0100.08720.07
7.0.00.0030.04320.20
5.6.280.0030.07320.91
5.6.210.0230.07020.69
5.6.200.0100.07318.23
5.6.190.0000.04720.47
5.6.180.0300.06720.50
5.6.170.0270.04320.55
5.6.160.0100.04720.43
5.6.150.0100.08018.18
5.6.140.0030.07018.24
5.6.130.0100.07018.27
5.6.120.0130.03320.93
5.6.110.0170.07321.13
5.6.100.0100.08020.99
5.6.90.0130.07321.07
5.6.80.0130.04320.26
5.5.350.0200.07020.44
5.5.340.0030.08317.98
5.5.330.0070.07020.40
5.5.320.0470.06720.30
5.5.310.0230.07020.30
5.5.300.0170.07317.97
5.5.290.0070.08717.96
5.5.280.0100.04720.80
5.5.270.0100.08320.86
5.5.260.0030.06020.76
5.5.250.0070.05720.69
5.5.240.0270.07020.26
5.4.450.0030.06319.58
5.4.440.0500.06019.51
5.4.430.1070.05319.60
5.4.420.0670.00019.41
5.4.410.0670.00019.41
5.4.400.0700.00019.39
5.4.390.0600.00018.98
5.4.380.0670.00019.13
5.4.370.0670.00019.15
5.4.360.0630.00019.07
5.4.350.0630.00019.07
5.4.340.0040.04112.00
5.4.320.0090.03512.45
5.4.310.0110.04512.45
5.4.300.0050.03712.45
5.4.290.0070.04112.45
5.4.280.0080.03712.35
5.4.270.0240.03512.34
5.4.260.0250.03612.35
5.4.250.0250.03912.34
5.4.240.0310.04812.35
5.4.230.0160.03912.34
5.4.220.0100.04312.34
5.4.210.0110.03912.34
5.4.200.0080.04412.34
5.4.190.0070.03812.34
5.4.180.0040.04212.33
5.4.170.0090.03712.35
5.4.160.0060.03412.34
5.4.150.0050.03612.34
5.4.140.0050.03612.02
5.4.130.0070.03312.01
5.4.120.0080.03211.97
5.4.110.0070.03411.96
5.4.100.0100.03011.96
5.4.90.0080.03911.96
5.4.80.0090.04011.96
5.4.70.0050.03511.96
5.4.60.0080.03211.96
5.4.50.0070.03311.96
5.4.40.0050.03511.95
5.4.30.0070.03211.95
5.4.20.0120.03711.95
5.4.10.0080.03611.95
5.4.00.0050.03511.44
5.3.290.0050.04112.80
5.3.280.0100.04112.71
5.3.270.0080.03612.72
5.3.260.0060.04412.72
5.3.250.0040.04212.72
5.3.240.0100.03412.71
5.3.230.0050.03912.71
5.3.220.0070.03612.68
5.3.210.0070.03612.68
5.3.200.0100.03212.68
5.3.190.0060.03612.68
5.3.180.0040.03612.67
5.3.170.0060.03512.67
5.3.160.0070.04112.67
5.3.150.0080.03912.67
5.3.140.0090.03212.66
5.3.130.0100.03912.66
5.3.120.0060.04712.65
5.3.110.0060.03712.66
5.3.100.0040.03712.11
5.3.90.0070.03612.09
5.3.80.0060.03912.08
5.3.70.0060.03612.07
5.3.60.0080.03912.06
5.3.50.0080.03212.00
5.3.40.0050.03612.00
5.3.30.0130.03111.94
5.3.20.0040.03511.72
5.3.10.0060.04111.69
5.3.00.0080.03211.67
5.2.170.0020.0329.17
5.2.160.0060.0299.18
5.2.150.0060.0289.17
5.2.140.0040.0299.17
5.2.130.0030.0299.13
5.2.120.0050.0339.13
5.2.110.0070.0359.14
5.2.100.0070.0299.13
5.2.90.0030.0309.13
5.2.80.0060.0349.13
5.2.70.0090.0269.13
5.2.60.0080.0309.08
5.2.50.0040.0309.05
5.2.40.0010.0319.03
5.2.30.0060.0279.00
5.2.20.0030.0309.00
5.2.10.0040.0288.91
5.2.00.0030.0298.77
5.1.60.0060.0228.06
5.1.50.0060.0228.05
5.1.40.0040.0248.04
5.1.30.0050.0268.39
5.1.20.0040.0298.41
5.1.10.0050.0248.13
5.1.00.0050.0238.13
5.0.50.0050.0186.61
5.0.40.0040.0196.47
5.0.30.0060.0296.28
5.0.20.0040.0236.25
5.0.10.0030.0196.23
5.0.00.0040.0306.23
4.4.90.0060.0174.77
4.4.80.0060.0154.76
4.4.70.0030.0144.75
4.4.60.0010.0174.76
4.4.50.0020.0244.77
4.4.40.0060.0264.71
4.4.30.0040.0144.75
4.4.20.0020.0164.84
4.4.10.0020.0164.85
4.4.00.0020.0254.76
4.3.110.0010.0164.67
4.3.100.0030.0154.66
4.3.90.0010.0164.63
4.3.80.0040.0234.58
4.3.70.0010.0184.63
4.3.60.0030.0144.63
4.3.50.0030.0154.63
4.3.40.0030.0244.54
4.3.30.0030.0143.28
4.3.20.0020.0153.25
4.3.10.0030.0143.21
4.3.00.0100.0277.19

preferences:
45.99 ms | 401 KiB | 5 Q