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 rainings.0","Painted concrete Walls.0","Aluminum and glass windows.1","Aluminum and glass main entrance door.1","Concrete steps with steel rainings.0","1 Steel emergency staircase.0"); $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.0120.00918.30
8.3.50.0110.00921.15
8.3.40.0070.00719.02
8.3.30.0070.00719.09
8.3.20.0040.00420.23
8.3.10.0000.00823.71
8.3.00.0040.00419.37
8.2.180.0100.00716.63
8.2.170.0070.00722.96
8.2.160.0030.01020.36
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0090.00026.16
8.2.120.0040.00422.00
8.2.110.0030.00620.35
8.2.100.0040.00817.63
8.2.90.0000.00719.40
8.2.80.0080.00017.97
8.2.70.0080.00017.75
8.2.60.0040.00417.93
8.2.50.0080.00018.07
8.2.40.0040.00420.07
8.2.30.0050.00618.02
8.2.20.0040.00417.63
8.2.10.0070.00018.00
8.2.00.0040.00417.72
8.1.280.0070.00725.92
8.1.270.0040.00422.02
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0060.00320.96
8.1.230.0060.00617.76
8.1.220.0080.00017.74
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0030.00617.23
8.1.180.0000.00918.10
8.1.170.0050.00518.68
8.1.160.0000.00822.02
8.1.150.0060.00318.85
8.1.140.0000.00717.52
8.1.130.0030.00317.84
8.1.120.0000.00717.49
8.1.110.0060.00317.51
8.1.100.0040.00417.35
8.1.90.0080.00017.32
8.1.80.0040.00417.50
8.1.70.0000.00717.38
8.1.60.0030.00617.48
8.1.50.0000.00917.49
8.1.40.0070.00017.51
8.1.30.0030.00617.66
8.1.20.0050.00317.55
8.1.10.0040.00417.53
8.1.00.0000.00717.40
8.0.300.0050.00318.77
8.0.290.0040.00416.75
8.0.280.0030.00318.48
8.0.270.0030.00317.36
8.0.260.0030.00317.27
8.0.250.0070.00016.98
8.0.240.0030.00316.93
8.0.230.0000.00816.95
8.0.220.0030.00316.85
8.0.210.0000.00716.89
8.0.200.0000.00616.99
8.0.190.0000.00716.98
8.0.180.0040.00416.90
8.0.170.0050.00316.98
8.0.160.0040.00316.83
8.0.150.0000.00816.92
8.0.140.0040.00416.88
8.0.130.0030.00313.35
8.0.120.0030.00616.82
8.0.110.0070.00016.92
8.0.100.0050.00216.96
8.0.90.0000.00716.78
8.0.80.0140.00316.93
8.0.70.0040.00416.95
8.0.60.0040.00416.98
8.0.50.0050.00216.77
8.0.30.0110.00917.01
8.0.20.0110.00817.40
8.0.10.0040.00417.05
8.0.00.0130.00416.83
7.4.330.0050.00015.02
7.4.320.0030.00316.63
7.4.300.0070.00016.51
7.4.290.0030.00316.58
7.4.280.0050.00316.55
7.4.270.0030.00316.58
7.4.260.0000.00716.38
7.4.250.0070.00016.57
7.4.240.0060.00216.55
7.4.230.0030.00316.63
7.4.220.0080.00916.65
7.4.210.0110.00516.70
7.4.200.0030.00316.67
7.4.160.0100.00716.62
7.4.150.0080.01117.40
7.4.140.0100.00817.86
7.4.130.0100.00716.41
7.4.120.0130.00516.54
7.4.110.0160.00616.57
7.4.100.0090.00916.61
7.4.90.0100.00716.39
7.4.80.0120.00919.39
7.4.70.0090.00916.62
7.4.60.0110.00716.48
7.4.50.0000.00816.48
7.4.40.0080.00916.67
7.4.30.0130.00616.67
7.4.00.0060.00915.19
7.3.330.0040.00213.16
7.3.320.0000.00513.05
7.3.310.0030.00316.27
7.3.300.0000.00616.23
7.3.290.0050.00916.37
7.3.280.0050.01116.31
7.3.270.0070.01017.40
7.3.260.0030.01316.39
7.3.250.0130.00616.27
7.3.240.0090.01216.62
7.3.230.0100.01016.52
7.3.210.0100.00616.43
7.3.200.0030.01519.39
7.3.190.0160.00616.39
7.3.180.0160.00016.54
7.3.170.0060.01316.38
7.3.160.0130.01016.44
7.2.330.0120.00616.84
7.2.320.0210.00316.63
7.2.310.0100.00616.75
7.2.300.0100.00716.77
7.2.290.0080.01216.72
7.2.00.0060.00619.56
7.1.200.0030.01015.74
7.1.100.0850.01316.24
7.1.70.0060.00916.85
7.1.60.0060.00919.11
7.1.50.0090.01516.44
7.1.00.0070.07322.43
7.0.200.0050.00316.79
7.0.140.0070.07022.21
7.0.60.0030.04019.91
7.0.50.0100.07717.94
7.0.40.0030.05020.30
7.0.30.0130.05020.23
7.0.20.0270.06720.26
7.0.10.0100.08020.23
7.0.00.0100.05020.25
5.6.280.0100.06721.13
5.6.210.0070.05720.55
5.6.200.0030.07318.18
5.6.190.0030.08720.48
5.6.180.0230.08320.47
5.6.170.0300.04720.39
5.6.160.0070.07720.49
5.6.150.0030.08318.14
5.6.140.0100.07718.14
5.6.130.0070.07318.15
5.6.120.0000.08721.04
5.6.110.0030.07021.04
5.6.100.0030.08020.97
5.6.90.0070.07320.96
5.6.80.0030.07020.41
5.5.350.0000.08720.40
5.5.340.0100.03018.05
5.5.330.0130.06320.40
5.5.320.0200.08320.26
5.5.310.0270.07720.34
5.5.300.0100.07718.08
5.5.290.0170.06018.02
5.5.280.0030.06720.89
5.5.270.0170.07320.82
5.5.260.0100.07720.71
5.5.250.0000.04720.66
5.5.240.0230.06320.19
5.4.450.0230.04319.30
5.4.440.0270.05319.56
5.4.430.0230.06719.40
5.4.420.0270.03319.54
5.4.410.0270.05719.41
5.4.400.0300.05718.86
5.4.390.0370.06719.31
5.4.380.0270.07018.88
5.4.370.0230.05318.86
5.4.360.0270.04019.14
5.4.350.0370.04018.96
5.4.340.0270.03718.99
5.4.320.0270.03718.95
5.4.310.0230.03718.81
5.4.300.0200.04018.86
5.4.290.0230.03719.05
5.4.280.0270.03318.86
5.4.270.0300.05019.21
5.4.260.0270.07019.18
5.4.250.0370.03719.15
5.4.240.0270.07318.93
5.4.230.0300.04719.23
5.4.220.0200.04019.22
5.4.210.0270.03318.98
5.4.200.0230.04718.86
5.4.190.0200.05318.93
5.4.180.0330.06319.21
5.4.170.0230.05019.11
5.4.160.0270.04318.96
5.4.150.0270.04319.21
5.4.140.0330.07716.51
5.4.130.0270.07016.38
5.4.120.0300.06716.41
5.4.110.0300.06016.55
5.4.100.0130.04016.18
5.4.90.0300.05716.40
5.4.80.0230.07316.16
5.4.70.0230.03316.53
5.4.60.0270.04716.21
5.4.50.0330.05716.48
5.4.40.0300.06716.22
5.4.30.0230.04316.24
5.4.20.0270.06716.26
5.4.10.0300.05316.22
5.4.00.0230.04715.79
5.3.290.0230.04014.57
5.3.280.0200.06714.59
5.3.270.0370.06014.51
5.3.260.0230.07714.57
5.3.250.0330.05314.50
5.3.240.0200.05314.49
5.3.230.0270.07314.59
5.3.220.0230.05314.46
5.3.210.0270.06714.65
5.3.200.0200.07314.64
5.3.190.0270.07314.47
5.3.180.0230.07314.57
5.3.170.0200.04014.46
5.3.160.0100.05314.55
5.3.150.0230.06014.55
5.3.140.0200.04314.47
5.3.130.0200.05314.55
5.3.120.0270.07014.44
5.3.110.0370.04014.69
5.3.100.0300.04014.00
5.3.90.0230.03713.92
5.3.80.0200.04713.91
5.3.70.0270.07013.91
5.3.60.0300.06314.00
5.3.50.0230.03713.91
5.3.40.0230.03314.16
5.3.30.0230.06013.80
5.3.20.0300.03713.77
5.3.10.0300.06313.69
5.3.00.0230.04013.68
5.2.170.0200.04011.41
5.2.160.0170.03011.41
5.2.150.0230.02311.41
5.2.140.0330.05011.41
5.2.130.0270.06011.41
5.2.120.0200.05011.41
5.2.110.0230.03711.41
5.2.100.0230.02711.41
5.2.90.0200.02711.41
5.2.80.0200.04311.41
5.2.70.0300.03011.41
5.2.60.0270.05311.41
5.2.50.0270.05011.41
5.2.40.0170.05011.41
5.2.30.0170.05311.41
5.2.20.0170.02711.41
5.2.10.0130.03711.41
5.2.00.0200.05711.41
5.1.60.0200.04311.41
5.1.50.0230.02711.41
5.1.40.0130.02711.41
5.1.30.0230.04011.41
5.1.20.0130.03011.41
5.1.10.0230.02711.41
5.1.00.0200.03311.41
5.0.50.0170.03311.41
5.0.40.0170.03011.41
5.0.30.0130.05311.41
5.0.20.0170.03711.41
5.0.10.0070.03011.41
5.0.00.0070.07011.41
4.4.90.0070.03711.41
4.4.80.0100.03011.41
4.4.70.0070.03711.41
4.4.60.0100.02011.41
4.4.50.0100.02011.41
4.4.40.0070.05011.41
4.4.30.0070.03711.41
4.4.20.0070.01711.41
4.4.10.0130.02311.41
4.4.00.0100.05311.41
4.3.110.0100.02011.41
4.3.100.0170.03011.41
4.3.90.0070.03011.41
4.3.80.0030.05711.41
4.3.70.0070.02011.41
4.3.60.0130.03311.41
4.3.50.0130.03311.41
4.3.40.0130.05011.41
4.3.30.0070.03311.41
4.3.20.0030.04011.41
4.3.10.0070.02311.41
4.3.00.0000.02311.41

preferences:
44.4 ms | 401 KiB | 5 Q