3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array("Aluminumandlasswindows.7", "item.1", "Concretestepswithsteelraining.9", "1Steelemergencystaircase.76", "PaintedconcreteWalls .2", "Aluminumandglasswindows.1", "Aluminumandglassmainentrance door.1", "Concretestepswithsteelrainings.88", "1Steelemergencystaircase.35", "1A/ccondenserunit(wallmounted/rooftop).1", "1Dusttodawnlightingfixture.1"); $tempArray = array(); $newArray = array(); foreach($array as $value) { list($item, ) = explode(".", $value); $int = filter_var($item, FILTER_SANITIZE_NUMBER_INT); if(!in_array($int, $tempArray)) { $newArray[] = $value; $tempArray[] = $int; } } print_r($newArray); ?>

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.0090.01218.55
8.3.50.0100.00921.20
8.3.40.0140.00018.79
8.3.30.0100.00319.19
8.3.20.0050.00220.37
8.3.10.0080.00023.65
8.3.00.0000.00919.50
8.2.180.0120.00616.50
8.2.170.0000.01422.96
8.2.160.0090.00920.39
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00022.18
8.2.110.0100.00020.52
8.2.100.0070.00417.85
8.2.90.0060.00618.03
8.2.80.0000.00817.97
8.2.70.0080.00017.38
8.2.60.0000.00817.93
8.2.50.0040.00818.07
8.2.40.0000.00820.07
8.2.30.0000.01018.04
8.2.20.0050.00317.88
8.2.10.0070.00018.23
8.2.00.0000.00817.73
8.1.280.0170.00325.92
8.1.270.0050.00324.02
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00322.04
8.1.230.0060.00620.96
8.1.220.0070.00317.74
8.1.210.0040.00418.92
8.1.200.0030.00617.00
8.1.190.0000.00817.24
8.1.180.0080.00018.10
8.1.170.0080.00018.55
8.1.160.0000.00822.03
8.1.150.0000.00818.94
8.1.140.0040.00417.47
8.1.130.0040.00417.74
8.1.120.0070.00017.41
8.1.110.0050.00517.49
8.1.100.0040.00417.34
8.1.90.0040.00417.37
8.1.80.0000.00817.39
8.1.70.0040.00417.32
8.1.60.0080.00017.57
8.1.50.0000.00817.56
8.1.40.0040.00417.58
8.1.30.0000.00817.72
8.1.20.0070.00017.66
8.1.10.0000.00817.48
8.1.00.0040.00417.51
8.0.300.0080.00020.08
8.0.290.0000.00816.63
8.0.280.0000.00718.32
8.0.270.0040.00416.76
8.0.260.0000.00717.26
8.0.250.0020.00516.97
8.0.240.0030.00316.97
8.0.230.0030.00616.84
8.0.220.0070.00016.94
8.0.210.0040.00416.94
8.0.200.0030.00316.95
8.0.190.0040.00416.95
8.0.180.0050.00316.80
8.0.170.0040.00416.82
8.0.160.0000.00816.95
8.0.150.0070.00016.80
8.0.140.0030.00316.86
8.0.130.0000.00513.29
8.0.120.0020.00516.88
8.0.110.0070.00016.91
8.0.100.0040.00416.89
8.0.90.0040.00416.91
8.0.80.0110.00716.90
8.0.70.0070.00016.92
8.0.60.0070.00016.86
8.0.50.0040.00416.78
8.0.30.0080.01217.20
8.0.20.0110.00817.40
8.0.10.0040.00416.93
8.0.00.0120.00716.73
7.4.330.0050.00015.02
7.4.320.0070.00016.41
7.4.300.0030.00316.61
7.4.290.0070.00016.52
7.4.280.0050.00216.53
7.4.270.0070.00016.52
7.4.260.0000.00816.43
7.4.250.0070.00016.61
7.4.240.0040.00416.45
7.4.230.0070.00016.70
7.4.220.0140.00716.57
7.4.210.0060.00716.50
7.4.200.0030.00316.44
7.4.160.0100.00616.61
7.4.150.0120.00617.40
7.4.140.0080.01117.86
7.4.130.0090.00816.46
7.4.120.0050.01216.57
7.4.110.0090.01316.50
7.4.100.0110.00716.59
7.4.90.0100.00716.52
7.4.80.0120.00619.39
7.4.70.0080.01316.67
7.4.60.0100.00616.52
7.4.50.0000.00816.58
7.4.40.0060.01216.42
7.4.30.0080.01216.32
7.4.00.0070.01015.16
7.3.330.0000.00713.07
7.3.320.0000.00513.20
7.3.310.0000.00616.19
7.3.300.0070.00016.35
7.3.290.0080.00916.32
7.3.280.0100.00616.35
7.3.270.0090.00917.40
7.3.260.0040.01216.64
7.3.250.0120.00516.25
7.3.240.0100.00716.64
7.3.230.0070.01716.42
7.3.210.0060.01016.46
7.3.200.0110.00619.39
7.3.190.0040.01316.55
7.3.180.0090.00616.31
7.3.170.0120.00416.64
7.3.160.0030.01316.56
7.3.120.0070.00715.04
7.3.110.0160.00314.64
7.3.100.0030.01014.77
7.3.90.0030.01315.01
7.3.80.0000.00914.82
7.3.70.0100.00714.66
7.3.60.0040.00714.53
7.3.50.0030.01214.93
7.3.40.0070.00714.71
7.3.30.0070.01115.04
7.3.20.0110.00316.71
7.3.10.0080.00616.63
7.3.00.0100.00216.65
7.2.330.0030.01316.57
7.2.320.0120.01016.73
7.2.310.0110.01116.57
7.2.300.0070.01116.41
7.2.290.0080.01116.50
7.2.250.0090.00914.98
7.2.240.0070.01315.05
7.2.230.0080.00415.00
7.2.220.0130.00315.12
7.2.210.0060.00914.77
7.2.200.0030.00714.96
7.2.190.0090.00415.00
7.2.180.0040.00815.04
7.2.170.0110.00314.91
7.2.60.0030.01017.08
7.2.00.0000.01419.27
7.1.330.0100.00315.80
7.1.320.0060.00615.85
7.1.310.0100.00715.72
7.1.300.0030.01015.98
7.1.290.0040.01115.78
7.1.280.0060.01015.80
7.1.270.0090.00615.73
7.1.260.0040.00815.75
7.1.200.0030.00915.49
7.1.100.0080.00618.16
7.1.70.0030.00316.87
7.1.60.0040.02119.11
7.1.50.0030.02016.87
7.1.00.0030.07722.54
7.0.200.0040.00416.53
7.0.140.0030.07321.95
7.0.60.0070.07720.02
7.0.50.0000.05717.87
7.0.40.0100.04020.23
7.0.30.0500.06320.21
7.0.20.0270.07720.10
7.0.10.0100.05720.15
7.0.00.0030.04320.30
5.6.280.0000.07721.15
5.6.210.0130.08020.65
5.6.200.0100.07718.27
5.6.190.0030.06020.64
5.6.180.0230.04720.28
5.6.170.0300.07320.46
5.6.160.0170.04720.61
5.6.150.0100.07718.21
5.6.140.0030.08318.26
5.6.130.0030.05718.27
5.6.120.0170.04721.03
5.6.110.0000.04321.00
5.6.100.0070.04020.99
5.6.90.0000.04321.00
5.6.80.0070.05720.37
5.6.70.4500.04020.27
5.5.350.0170.07320.49
5.5.340.0100.07718.03
5.5.330.0070.04320.29
5.5.320.0330.05320.36
5.5.310.0130.04720.34
5.5.300.0000.04317.98
5.5.290.0030.05717.96
5.5.280.0070.04020.74
5.5.270.0070.08320.87
5.5.260.0170.08020.96
5.5.250.0130.07320.58
5.5.240.0230.04020.12
5.4.450.0100.05719.47
5.4.440.0530.06019.16
5.4.430.0570.05719.57
5.4.420.0670.00019.55
5.4.410.0670.00019.28
5.4.400.0630.00019.38
5.4.390.0630.00019.06
5.4.380.0670.00019.06
5.4.370.0670.00019.20
5.4.360.0800.00019.12
5.4.350.0670.00019.20
5.4.340.0070.03412.00
5.4.320.0110.03812.49
5.4.310.0090.05312.48
5.4.300.0110.03812.49
5.4.290.0060.03912.48
5.4.280.0090.04012.38
5.4.270.0090.05112.38
5.4.260.0090.03812.38
5.4.250.0120.03812.38
5.4.240.0080.04312.38
5.4.230.0080.03712.38
5.4.220.0060.03712.37
5.4.210.0070.03512.37
5.4.200.0090.03412.38
5.4.190.0050.03712.37
5.4.180.0050.03712.37
5.4.170.0060.03712.38
5.4.160.0090.03912.38
5.4.150.0090.03612.37
5.4.140.0030.04312.06
5.4.130.0110.04012.05
5.4.120.0090.04312.00
5.4.110.0120.04612.00
5.4.100.0100.03212.00
5.4.90.0100.04312.00
5.4.80.0070.03912.00
5.4.70.0110.04112.00
5.4.60.0070.04212.00
5.4.50.0120.04711.99
5.4.40.0080.04611.98
5.4.30.0090.04211.98
5.4.20.0060.05211.98
5.4.10.0080.03911.98
5.4.00.0040.04511.47
5.3.290.0110.05612.80
5.3.280.0120.04512.71
5.3.270.0080.04112.72
5.3.260.0070.04012.72
5.3.250.0070.03812.71
5.3.240.0100.04612.72
5.3.230.0090.05212.70
5.3.220.0100.04412.68
5.3.210.0180.04612.68
5.3.200.0050.05512.68
5.3.190.0130.04712.68
5.3.180.0050.04512.67
5.3.170.0120.03912.67
5.3.160.0090.05012.68
5.3.150.0090.05212.67
5.3.140.0140.06012.66
5.3.130.0090.06112.66
5.3.120.0080.06412.66
5.3.110.0050.06312.66
5.3.100.0180.06512.12
5.3.90.0140.06512.09
5.3.80.0110.05012.08
5.3.70.0120.05012.08
5.3.60.0200.07112.07
5.3.50.0130.05312.01
5.3.40.0100.05512.01
5.3.30.0120.05111.97
5.3.20.0130.05011.76
5.3.10.0120.06111.72
5.3.00.0150.06511.70
5.2.170.0060.0399.21
5.2.160.0080.0449.21
5.2.150.0050.0329.21
5.2.140.0070.0309.20
5.2.130.0080.0279.16
5.2.120.0060.0359.16
5.2.110.0050.0369.17
5.2.100.0030.0309.17
5.2.90.0060.0349.17
5.2.80.0080.0359.17
5.2.70.0070.0289.16
5.2.60.0040.0319.11
5.2.50.0050.0319.09
5.2.40.0050.0339.06
5.2.30.0050.0299.04
5.2.20.0040.0309.03
5.2.10.0060.0298.94
5.2.00.0040.0318.80
5.1.60.0040.0258.07
5.1.50.0070.0238.07
5.1.40.0060.0248.05
5.1.30.0050.0258.39
5.1.20.0050.0308.42
5.1.10.0080.0468.14
5.1.00.0080.0428.14
5.0.50.0090.0196.63
5.0.40.0040.0206.48
5.0.30.0050.0356.29
5.0.20.0050.0306.27
5.0.10.0060.0266.25
5.0.00.0060.0366.24
4.4.90.0070.0214.78
4.4.80.0040.0204.76
4.4.70.0040.0204.75
4.4.60.0090.0164.76
4.4.50.0040.0194.77
4.4.40.0030.0324.71
4.4.30.0030.0194.76
4.4.20.0060.0224.84
4.4.10.0030.0194.85
4.4.00.0060.0274.76
4.3.110.0050.0204.66
4.3.100.0020.0224.66
4.3.90.0030.0254.64
4.3.80.0000.0334.58
4.3.70.0040.0174.63
4.3.60.0030.0194.63
4.3.50.0040.0144.63
4.3.40.0020.0304.54
4.3.30.0040.0253.29
4.3.20.0030.0223.27
4.3.10.0060.0233.21
4.3.00.0000.0236.75

preferences:
48.81 ms | 401 KiB | 5 Q