3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array("Aluminum and glass windows.0", "item.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.0000.01416.60
8.3.50.0070.01118.28
8.3.40.0140.00318.84
8.3.30.0140.00019.21
8.3.20.0070.00020.27
8.3.10.0000.00823.73
8.3.00.0080.00019.25
8.2.180.0070.00716.63
8.2.170.0100.00322.96
8.2.160.0180.00020.53
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0000.00926.16
8.2.120.0070.00022.23
8.2.110.0090.00022.00
8.2.100.0000.01217.63
8.2.90.0050.00319.30
8.2.80.0030.00617.97
8.2.70.0060.00617.75
8.2.60.0030.00518.16
8.2.50.0160.00018.07
8.2.40.0050.00320.07
8.2.30.0000.00918.12
8.2.20.0020.00517.75
8.2.10.0000.00718.18
8.2.00.0040.00417.73
8.1.280.0080.00825.92
8.1.270.0040.00423.82
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0030.00623.98
8.1.230.0070.00419.10
8.1.220.0000.00817.76
8.1.210.0090.00018.77
8.1.200.0060.00317.35
8.1.190.0030.00517.22
8.1.180.0040.00418.10
8.1.170.0030.00618.40
8.1.160.0000.00721.89
8.1.150.0030.00518.75
8.1.140.0040.00417.36
8.1.130.0030.00317.74
8.1.120.0040.00417.48
8.1.110.0040.00717.39
8.1.100.0070.00017.35
8.1.90.0070.00017.47
8.1.80.0040.00417.48
8.1.70.0040.00417.40
8.1.60.0000.00817.66
8.1.50.0030.00517.47
8.1.40.0000.00817.51
8.1.30.0040.00417.65
8.1.20.0040.00417.62
8.1.10.0000.00717.54
8.1.00.0000.00817.50
8.0.300.0070.00018.77
8.0.290.0000.00816.75
8.0.280.0000.00718.45
8.0.270.0030.00317.17
8.0.260.0070.00018.55
8.0.250.0030.00317.00
8.0.240.0030.00316.89
8.0.230.0060.00316.84
8.0.220.0030.00316.86
8.0.210.0030.00316.89
8.0.200.0030.00316.94
8.0.190.0080.00016.95
8.0.180.0040.00416.80
8.0.170.0050.00216.98
8.0.160.0000.00716.91
8.0.150.0040.00416.95
8.0.140.0000.00916.81
8.0.130.0000.00613.25
8.0.120.0040.00416.92
8.0.110.0040.00416.79
8.0.100.0000.00716.90
8.0.90.0000.00716.73
8.0.80.0140.00316.92
8.0.70.0040.00416.92
8.0.60.0020.00516.82
8.0.50.0030.00416.87
8.0.30.0080.01217.03
8.0.20.0140.00817.40
8.0.10.0080.00016.93
8.0.00.0060.01116.80
7.4.330.0020.00215.02
7.4.320.0060.00316.57
7.4.300.0030.00316.61
7.4.290.0030.00316.60
7.4.280.0020.00516.53
7.4.270.0020.00516.62
7.4.260.0040.00416.59
7.4.250.0040.00416.45
7.4.240.0000.00716.62
7.4.230.0070.00016.67
7.4.220.0070.01316.51
7.4.210.0030.01116.51
7.4.200.0000.00716.43
7.4.160.0110.00616.63
7.4.150.0110.00717.40
7.4.140.0110.01017.86
7.4.130.0090.00916.62
7.4.120.0080.00916.56
7.4.110.0070.01016.51
7.4.100.0150.00616.52
7.4.90.0120.00416.47
7.4.80.0100.01019.39
7.4.70.0120.00616.60
7.4.60.0060.01116.40
7.4.50.0080.00016.32
7.4.40.0040.01216.33
7.4.30.0170.00016.40
7.4.00.0080.00814.95
7.3.330.0000.00613.16
7.3.320.0000.00513.13
7.3.310.0020.00516.30
7.3.300.0030.00316.43
7.3.290.0050.01116.32
7.3.280.0120.00516.29
7.3.270.0150.00617.40
7.3.260.0070.01116.56
7.3.250.0120.00616.47
7.3.240.0100.01016.55
7.3.230.0100.00716.39
7.3.210.0150.00416.32
7.3.200.0100.00719.39
7.3.190.0070.01416.30
7.3.180.0090.00616.27
7.3.170.0050.01116.37
7.3.160.0060.00916.54
7.3.10.0090.00616.49
7.3.00.0080.00916.67
7.2.330.0060.01016.75
7.2.320.0100.00716.79
7.2.310.0130.01016.55
7.2.300.0150.00616.71
7.2.290.0140.00716.45
7.2.130.0050.00916.83
7.2.120.0110.00716.73
7.2.110.0080.00816.73
7.2.100.0110.00416.81
7.2.90.0050.00816.61
7.2.80.0050.01117.02
7.2.70.0080.00816.82
7.2.60.0100.00816.69
7.2.50.0170.00516.68
7.2.40.0090.00916.80
7.2.30.0110.00616.79
7.2.20.0050.01416.71
7.2.10.0130.00916.60
7.2.00.0110.01217.45
7.1.250.0120.00315.55
7.1.240.0130.00315.76
7.1.230.0070.00715.64
7.1.220.0070.00415.65
7.1.210.0090.00615.69
7.1.200.0070.00715.82
7.1.190.0030.00915.84
7.1.180.0040.00415.86
7.1.170.0030.01215.87
7.1.160.0140.00315.77
7.1.150.0140.00015.94
7.1.140.0100.00315.84
7.1.130.0060.00315.77
7.1.120.0000.00815.69
7.1.110.0000.01315.42
7.1.100.0010.00817.06
7.1.90.0050.00315.49
7.1.80.0070.00715.54
7.1.70.0040.00516.35
7.1.60.0050.01417.45
7.1.50.0100.00716.21
7.1.40.0100.00615.71
7.1.30.0060.00915.55
7.1.20.0040.00715.85
7.1.10.0070.00315.85
7.1.00.0070.04018.94
7.0.330.0060.00615.30
7.0.320.0000.01315.39
7.0.310.0060.00715.28
7.0.300.0120.00315.22
7.0.290.0000.00815.16
7.0.280.0030.01015.23
7.0.270.0060.00615.23
7.0.260.0090.00615.09
7.0.250.0030.01015.30
7.0.240.0000.01415.05
7.0.230.0090.00415.11
7.0.220.0060.00615.46
7.0.210.0060.00615.57
7.0.200.0010.01016.25
7.0.190.0030.00615.47
7.0.180.0120.00015.34
7.0.170.0030.01315.44
7.0.160.0080.00415.40
7.0.150.0000.01415.15
7.0.140.0010.04318.75
7.0.130.0000.01115.49
7.0.120.0130.00615.56
7.0.110.0070.00415.45
7.0.100.0040.01115.16
7.0.90.0000.01315.41
7.0.80.0090.00615.41
7.0.70.0060.00615.40
7.0.60.0140.03817.52
7.0.50.0050.04816.73
7.0.40.0020.03016.85
7.0.30.0080.02716.73
7.0.20.0210.02016.82
7.0.10.0110.04216.63
7.0.00.0100.04716.72
5.6.380.0110.00714.57
5.6.370.0080.00814.27
5.6.360.0000.01314.43
5.6.350.0070.00714.15
5.6.340.0070.00714.29
5.6.330.0070.00714.29
5.6.320.0000.00914.04
5.6.310.0070.00614.11
5.6.300.0120.00614.44
5.6.290.0060.00914.22
5.6.280.0030.04317.75
5.6.270.0070.00413.92
5.6.260.0110.00514.32
5.6.250.0030.01314.32
5.6.240.0080.00813.82
5.6.230.0000.01913.95
5.6.220.0000.01514.11
5.6.210.0120.03217.21
5.6.200.0050.03316.22
5.6.190.0060.02417.26
5.6.180.0180.04217.51
5.6.170.0150.04017.36
5.6.160.0080.04517.41
5.6.150.0050.04216.22
5.6.140.0080.02716.25
5.6.130.0030.02316.10
5.6.120.0130.02117.82
5.6.110.0100.04517.50
5.6.100.0030.04417.62
5.6.90.0100.03717.65
5.6.80.0070.02317.19
5.6.70.2250.02517.18
5.6.60.0110.00714.16
5.6.50.0170.00714.23
5.6.40.0030.00914.21
5.6.30.0190.00414.00
5.6.20.0070.00714.40
5.6.10.0100.01014.22
5.6.00.0070.00714.13
5.5.380.0060.00611.03
5.5.370.0110.00011.22
5.5.360.0030.01011.17
5.5.350.0120.02515.80
5.5.340.0050.02314.67
5.5.330.0040.02715.72
5.5.320.0160.02415.64
5.5.310.0120.04615.93
5.5.300.0040.02614.45
5.5.290.0050.02414.54
5.5.280.0090.03516.00
5.5.270.0050.04115.98
5.5.260.0110.03516.07
5.5.250.0040.04015.87
5.5.240.0170.03415.57
5.5.230.0060.00311.17
5.5.220.0130.00010.90
5.5.210.0050.00811.12
5.5.200.0120.00411.08
5.5.190.0080.00411.33
5.5.180.0090.00011.17
5.5.170.0090.00610.91
5.5.160.0030.00610.96
5.5.150.0110.00410.86
5.5.140.0140.00310.89
5.5.130.0070.01011.07
5.5.120.0170.00011.25
5.5.110.0130.00010.91
5.5.100.0150.00011.15
5.5.90.0190.00010.83
5.5.80.0100.00511.05
5.5.70.0110.00310.52
5.5.60.0080.00810.75
5.5.50.0120.00611.20
5.5.40.0100.00010.75
5.5.30.0180.00010.76
5.5.20.0070.00311.11
5.5.10.0100.00611.05
5.5.00.0140.00710.91
5.4.450.0290.03115.14
5.4.440.0300.03515.38
5.4.430.0300.03314.90
5.4.420.0460.00215.26
5.4.410.0540.00215.22
5.4.400.0380.00114.98
5.4.390.0330.00415.09
5.4.380.0360.00415.04
5.4.370.0370.00315.09
5.4.360.0390.00014.94
5.4.350.0360.00315.13
5.4.340.0060.02111.42
5.4.330.0070.00311.11
5.4.320.0080.01911.78
5.4.310.0090.02211.72
5.4.300.0080.02111.74
5.4.290.0110.02211.53
5.4.280.0080.02411.52
5.4.270.0060.02711.71
5.4.260.0090.02011.71
5.4.250.0070.02311.59
5.4.240.0050.02011.58
5.4.230.0120.02011.49
5.4.220.0070.02111.55
5.4.210.0080.02211.69
5.4.200.0080.02511.83
5.4.190.0130.02811.60
5.4.180.0090.03311.62
5.4.170.0090.02311.61
5.4.160.0080.02311.82
5.4.150.0110.02111.68
5.4.140.0060.02211.70
5.4.130.0080.01811.54
5.4.120.0080.01911.62
5.4.110.0050.02011.44
5.4.100.0050.02111.53
5.4.90.0060.02211.60
5.4.80.0040.02211.38
5.4.70.0050.02111.59
5.4.60.0050.02111.43
5.4.50.0060.02011.32
5.4.40.0050.02011.40
5.4.30.0050.02111.48
5.4.20.0030.02411.52
5.4.10.0040.02311.51
5.4.00.0070.02011.30
5.3.290.0170.02011.75
5.3.280.0080.01911.66
5.3.270.0180.02511.76
5.3.260.0140.01911.72
5.3.250.0130.02211.63
5.3.240.0070.02011.48
5.3.230.0060.02211.65
5.3.220.0030.02511.47
5.3.210.0090.02111.63
5.3.200.0080.01911.61
5.3.190.0070.02111.63
5.3.180.0050.02111.68
5.3.170.0030.02411.64
5.3.160.0050.02211.68
5.3.150.0100.01811.64
5.3.140.0080.01911.68
5.3.130.0040.02911.68
5.3.120.0050.02911.55
5.3.110.0070.02011.67
5.3.100.0060.02211.41
5.3.90.0090.01811.37
5.3.80.0040.02111.27
5.3.70.0030.02311.13
5.3.60.0020.02211.31
5.3.50.0050.02111.15
5.3.40.0020.02211.28
5.3.30.0030.02311.20
5.3.20.0050.01811.01
5.3.10.0060.01810.99
5.3.00.0050.02211.01
5.2.170.0050.0179.44
5.2.160.0080.0159.41
5.2.150.0050.0179.42
5.2.140.0050.0189.38
5.2.130.0020.0189.35
5.2.120.0020.0189.21
5.2.110.0040.0179.33
5.2.100.0040.0159.37
5.2.90.0030.0199.24
5.2.80.0050.0189.30
5.2.70.0050.0209.30
5.2.60.0040.0219.23
5.2.50.0030.0199.23
5.2.40.0080.0149.29
5.2.30.0060.0169.21
5.2.20.0070.0149.07
5.2.10.0040.0179.08
5.2.00.0040.0178.97
5.1.60.0050.0138.33
5.1.50.0030.0148.20
5.1.40.0010.0168.28
5.1.30.0020.0158.53
5.1.20.0020.0188.52
5.1.10.0020.0178.35
5.1.00.0050.0138.34
5.0.50.0020.0137.48
5.0.40.0020.0117.40
5.0.30.0030.0167.31
5.0.20.0020.0117.30
5.0.10.0050.0097.29
5.0.00.0020.0187.29
4.4.90.0010.0106.55
4.4.80.0010.0146.54
4.4.70.0050.0096.54
4.4.60.0030.0096.54
4.4.50.0030.0096.55
4.4.40.0030.0146.52
4.4.30.0040.0086.54
4.4.20.0020.0116.59
4.4.10.0030.0096.59
4.4.00.0040.0136.54
4.3.110.0020.0116.50
4.3.100.0020.0116.50
4.3.90.0020.0096.48
4.3.80.0020.0156.46
4.3.70.0030.0116.48
4.3.60.0020.0096.48
4.3.50.0030.0106.48
4.3.40.0050.0136.43
4.3.30.0030.0075.81
4.3.20.0010.0095.79
4.3.10.0020.0095.78
4.3.00.0070.0137.54

preferences:
59.43 ms | 400 KiB | 5 Q