3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array("Painted concrete Walls.1", "Aluminum and glass windows.0", "Aluminum and glass main entrance door.1", " Concrete steps with steel raining.0", "1 Steel emergency staircase.0", "Painted concrete Walls .2", "Aluminum and glass windows.1", "Aluminum and glass main entrance door.1", "Concrete steps with steel rainings.0", "1 Steel emergency staircase.0", "1 A/c condenser unit (wall mounted/rooftop).1", "1 Dust to dawn lighting fixture.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.0080.00618.43
8.3.50.0100.01021.11
8.3.40.0100.00718.85
8.3.30.0100.00319.27
8.3.20.0050.00220.16
8.3.10.0070.00023.61
8.3.00.0040.00419.38
8.2.180.0090.00916.50
8.2.170.0150.00622.96
8.2.160.0120.00420.39
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00022.14
8.2.110.0070.00321.00
8.2.100.0070.00417.75
8.2.90.0050.00319.11
8.2.80.0080.00017.97
8.2.70.0050.00317.63
8.2.60.0000.00817.93
8.2.50.0110.00318.07
8.2.40.0050.00320.07
8.2.30.0040.00718.20
8.2.20.0040.00417.82
8.2.10.0040.00418.03
8.2.00.0040.00417.75
8.1.280.0060.00925.92
8.1.270.0030.00623.91
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00823.98
8.1.230.0030.00919.13
8.1.220.0020.00517.74
8.1.210.0040.00418.77
8.1.200.0070.00317.36
8.1.190.0030.00517.23
8.1.180.0030.00518.10
8.1.170.0080.00018.59
8.1.160.0040.00422.02
8.1.150.0040.00418.88
8.1.140.0030.00617.32
8.1.130.0030.00317.70
8.1.120.0000.00717.50
8.1.110.0060.00317.43
8.1.100.0040.00417.52
8.1.90.0000.00717.45
8.1.80.0050.00217.45
8.1.70.0000.00817.30
8.1.60.0030.00517.59
8.1.50.0050.00317.48
8.1.40.0040.00417.52
8.1.30.0080.00017.62
8.1.20.0030.00517.65
8.1.10.0040.00417.59
8.1.00.0000.00717.56
8.0.300.0080.00018.77
8.0.290.0030.00516.63
8.0.280.0000.00818.45
8.0.270.0000.00717.34
8.0.260.0000.00718.49
8.0.250.0050.00216.96
8.0.240.0030.00316.92
8.0.230.0030.00716.86
8.0.220.0000.00816.88
8.0.210.0000.00716.79
8.0.200.0060.00016.99
8.0.190.0000.00716.86
8.0.180.0040.00416.92
8.0.170.0040.00416.84
8.0.160.0000.00816.96
8.0.150.0050.00316.87
8.0.140.0040.00416.85
8.0.130.0030.00313.30
8.0.120.0040.00416.74
8.0.110.0050.00216.83
8.0.100.0040.00416.89
8.0.90.0050.00216.75
8.0.80.0000.01516.85
8.0.70.0040.00416.69
8.0.60.0070.00016.75
8.0.50.0000.00716.77
8.0.30.0100.00917.08
8.0.20.0120.00817.40
8.0.10.0040.00416.87
8.0.00.0070.01016.67
7.4.330.0050.00015.02
7.4.320.0030.00616.59
7.4.300.0000.00616.45
7.4.290.0000.00616.39
7.4.280.0000.00816.50
7.4.270.0000.00816.41
7.4.260.0040.00416.51
7.4.250.0030.00316.48
7.4.240.0060.00116.53
7.4.230.0070.00016.55
7.4.220.0040.01516.54
7.4.210.0080.00816.55
7.4.200.0030.00316.70
7.4.160.0060.01016.50
7.4.150.0090.00917.40
7.4.140.0120.00617.86
7.4.130.0100.00816.39
7.4.120.0100.00816.55
7.4.110.0130.00416.70
7.4.100.0100.00616.65
7.4.90.0070.01016.37
7.4.80.0080.00819.39
7.4.70.0080.01116.44
7.4.60.0180.00316.43
7.4.50.0050.00316.45
7.4.40.0140.00716.59
7.4.30.0030.01916.34
7.4.00.0090.00914.95
7.3.330.0030.00313.23
7.3.320.0020.00213.17
7.3.310.0070.00016.28
7.3.300.0040.00416.29
7.3.290.0060.00816.35
7.3.280.0060.00916.32
7.3.270.0120.00617.40
7.3.260.0070.01016.34
7.3.250.0100.00916.31
7.3.240.0130.00916.59
7.3.230.0190.00316.60
7.3.210.0120.00416.48
7.3.200.0080.00819.39
7.3.190.0120.00916.43
7.3.180.0040.01216.22
7.3.170.0130.00316.45
7.3.160.0030.01616.39
7.2.330.0120.00616.73
7.2.320.0030.01616.76
7.2.310.0090.01316.77
7.2.300.0070.01016.77
7.2.290.0030.01616.55
7.2.00.0000.01419.29
7.1.100.0030.00918.16
7.1.70.0040.00417.03
7.1.60.0140.01019.11
7.1.50.0130.01016.96
7.1.00.0070.07022.48
7.0.200.0090.00016.93
7.0.140.0000.07722.01
7.0.60.0000.04320.06
7.0.50.0130.07717.84
7.0.40.0030.04320.18
7.0.30.0230.04320.21
7.0.20.0130.05320.17
7.0.10.0030.09020.10
7.0.00.0170.08020.19
5.6.280.0000.07721.14
5.6.210.0070.05720.54
5.6.200.0100.07018.23
5.6.190.0000.04720.61
5.6.180.0200.08720.79
5.6.170.0270.08320.57
5.6.160.0070.08720.55
5.6.150.0030.06318.16
5.6.140.0130.04718.24
5.6.130.0000.04318.21
5.6.120.0070.07720.98
5.6.110.0170.07021.00
5.6.100.0100.08021.14
5.6.90.0100.05321.12
5.6.80.0100.03020.39
5.6.70.4130.04020.52
5.5.350.0100.05320.34
5.5.340.0030.07317.92
5.5.330.0100.04720.25
5.5.320.0270.04720.30
5.5.310.0300.06020.21
5.5.300.0070.08017.93
5.5.290.0100.08318.02
5.5.280.0170.06320.90
5.5.270.0030.09020.87
5.5.260.0070.07020.86
5.5.250.0030.04020.49
5.5.240.0170.07720.29
5.4.450.0670.06319.67
5.4.440.0930.04319.61
5.4.430.0800.05019.56
5.4.420.0670.00019.49
5.4.410.0700.00019.27
5.4.400.0630.00019.24
5.4.390.0630.00019.13
5.4.380.0870.00019.23
5.4.370.0630.00018.97
5.4.360.0600.00019.01
5.4.350.0830.00019.08
5.4.340.0070.03412.00
5.4.320.0070.03712.49
5.4.310.0090.04212.48
5.4.300.0100.03412.49
5.4.290.0050.04012.48
5.4.280.0090.03212.38
5.4.270.0080.03312.38
5.4.260.0040.03912.38
5.4.250.0060.03612.38
5.4.240.0030.03812.38
5.4.230.0020.04112.38
5.4.220.0050.03612.37
5.4.210.0040.03712.38
5.4.200.0080.03512.37
5.4.190.0080.03312.37
5.4.180.0060.03512.37
5.4.170.0060.03612.38
5.4.160.0070.03512.38
5.4.150.0030.03912.38
5.4.140.0070.03512.06
5.4.130.0060.03512.05
5.4.120.0050.03912.00
5.4.110.0030.03812.00
5.4.100.0070.03512.00
5.4.90.0020.04012.00
5.4.80.0060.03612.00
5.4.70.0070.03211.99
5.4.60.0040.03612.00
5.4.50.0050.03511.99
5.4.40.0090.03111.98
5.4.30.0070.03611.98
5.4.20.0110.03711.98
5.4.10.0060.03611.98
5.4.00.0050.03511.47
5.3.290.0070.03712.80
5.3.280.0020.04112.71
5.3.270.0090.03612.73
5.3.260.0070.03812.72
5.3.250.0030.04112.72
5.3.240.0090.03512.72
5.3.230.0080.03512.71
5.3.220.0030.03912.68
5.3.210.0070.03712.68
5.3.200.0070.03512.68
5.3.190.0070.03612.68
5.3.180.0060.03512.67
5.3.170.0060.03512.67
5.3.160.0060.03612.67
5.3.150.0040.03812.67
5.3.140.0070.03412.66
5.3.130.0070.03612.66
5.3.120.0060.03812.66
5.3.110.0100.03412.66
5.3.100.0080.03412.12
5.3.90.0090.03212.09
5.3.80.0050.03612.08
5.3.70.0060.03512.08
5.3.60.0070.03512.07
5.3.50.0060.03912.02
5.3.40.0050.03812.02
5.3.30.0040.03711.98
5.3.20.0050.03711.75
5.3.10.0060.03511.72
5.3.00.0040.03911.71
5.2.170.0050.0309.21
5.2.160.0060.0299.21
5.2.150.0040.0329.21
5.2.140.0040.0319.20
5.2.130.0040.0299.17
5.2.120.0050.0289.17
5.2.110.0030.0309.18
5.2.100.0070.0269.17
5.2.90.0040.0299.17
5.2.80.0040.0309.17
5.2.70.0020.0339.16
5.2.60.0020.0329.12
5.2.50.0080.0279.09
5.2.40.0070.0269.06
5.2.30.0050.0299.04
5.2.20.0040.0299.03
5.2.10.0030.0298.94
5.2.00.0040.0298.80
5.1.60.0040.0248.07
5.1.50.0000.0288.07
5.1.40.0070.0228.05
5.1.30.0050.0248.40
5.1.20.0040.0268.42
5.1.10.0050.0258.15
5.1.00.0020.0288.15
5.0.50.0050.0206.63
5.0.40.0040.0196.49
5.0.30.0050.0306.30
5.0.20.0030.0206.27
5.0.10.0020.0216.25
5.0.00.0060.0276.25
4.4.90.0040.0144.78
4.4.80.0010.0174.76
4.4.70.0030.0154.75
4.4.60.0040.0144.76
4.4.50.0010.0174.77
4.4.40.0020.0254.71
4.4.30.0040.0164.76
4.4.20.0020.0164.84
4.4.10.0010.0174.85
4.4.00.0050.0224.75
4.3.110.0020.0164.66
4.3.100.0040.0134.66
4.3.90.0030.0144.63
4.3.80.0010.0254.58
4.3.70.0050.0124.63
4.3.60.0020.0154.63
4.3.50.0020.0164.63
4.3.40.0040.0224.54
4.3.30.0020.0153.29
4.3.20.0010.0163.27
4.3.10.0010.0163.22
4.3.00.0130.0236.75

preferences:
35.97 ms | 401 KiB | 5 Q