3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array("gjgh.7", "item.1", "kguygu.9", "fyfuyf.76", "hgccg.2", "ufyuif.1", "ghvhcydoor.1", "yfhgh.88", "rrrtr.35", "wallmountedrooftop.1", "Dusttodawnlightingfixture.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.0100.01018.43
8.3.50.0140.00821.15
8.3.40.0070.00718.70
8.3.30.0120.00319.22
8.3.20.0000.00720.13
8.3.10.0040.00423.53
8.3.00.0050.00319.50
8.2.180.0070.01016.50
8.2.170.0110.01122.96
8.2.160.0000.01320.35
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0000.00826.16
8.2.120.0070.00022.10
8.2.110.0000.00822.11
8.2.100.0040.00717.75
8.2.90.0020.00519.20
8.2.80.0030.00617.97
8.2.70.0070.00317.36
8.2.60.0000.00918.16
8.2.50.0000.00818.07
8.2.40.0060.00320.01
8.2.30.0050.00517.99
8.2.20.0060.00317.75
8.2.10.0050.00218.05
8.2.00.0050.00317.79
8.1.280.0110.00725.92
8.1.270.0080.00022.03
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00324.03
8.1.230.0040.00719.12
8.1.220.0000.00917.74
8.1.210.0060.00318.77
8.1.200.0040.00417.23
8.1.190.0040.00417.13
8.1.180.0130.00018.10
8.1.170.0060.00318.64
8.1.160.0030.00322.05
8.1.150.0020.00518.95
8.1.140.0000.00717.35
8.1.130.0070.00017.81
8.1.120.0070.00017.36
8.1.110.0030.00717.48
8.1.100.0000.00717.52
8.1.90.0040.00417.42
8.1.80.0070.00017.36
8.1.70.0000.00717.41
8.1.60.0030.00517.52
8.1.50.0000.00817.47
8.1.40.0000.00717.51
8.1.30.0000.00817.58
8.1.20.0070.00017.61
8.1.10.0000.00717.57
8.1.00.0040.00417.55
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00018.49
8.0.270.0060.00017.17
8.0.260.0030.00317.16
8.0.250.0050.00216.91
8.0.240.0000.00716.79
8.0.230.0030.00616.86
8.0.220.0070.00016.85
8.0.210.0000.00716.92
8.0.200.0000.00616.86
8.0.190.0030.00616.84
8.0.180.0000.00716.96
8.0.170.0000.00716.89
8.0.160.0030.00316.91
8.0.150.0040.00416.71
8.0.140.0030.00516.82
8.0.130.0060.00013.30
8.0.120.0040.00416.86
8.0.110.0080.00016.91
8.0.100.0060.00316.83
8.0.90.0000.00716.75
8.0.80.0070.01416.88
8.0.70.0040.00416.86
8.0.60.0000.00716.86
8.0.50.0030.00516.77
8.0.30.0090.01517.23
8.0.20.0080.01117.40
8.0.10.0040.00416.99
8.0.00.0050.01116.67
7.4.330.0050.00015.05
7.4.320.0050.00216.52
7.4.300.0030.00316.58
7.4.290.0000.00716.60
7.4.280.0070.00016.48
7.4.270.0000.00716.55
7.4.260.0040.00416.48
7.4.250.0050.00216.54
7.4.240.0020.00516.55
7.4.230.0030.00316.39
7.4.220.0090.00916.55
7.4.210.0120.00616.51
7.4.200.0000.00716.48
7.4.160.0140.00316.56
7.4.150.0060.01217.40
7.4.140.0170.00317.86
7.4.130.0090.00816.52
7.4.120.0100.00616.62
7.4.110.0100.01316.47
7.4.100.0130.01216.60
7.4.90.0140.00416.49
7.4.80.0060.01019.39
7.4.70.0030.01316.44
7.4.60.0070.01016.64
7.4.50.0000.00816.35
7.4.40.0070.01016.30
7.4.30.0090.00916.36
7.4.00.0100.00714.89
7.3.330.0030.00313.12
7.3.320.0000.00513.31
7.3.310.0000.00716.22
7.3.300.0030.00316.36
7.3.290.0060.00916.31
7.3.280.0090.00716.32
7.3.270.0080.01617.40
7.3.260.0120.00616.36
7.3.250.0080.01016.37
7.3.240.0070.01016.42
7.3.230.0170.00016.39
7.3.210.0030.01216.57
7.3.200.0090.00919.39
7.3.190.0090.00916.43
7.3.180.0090.00616.23
7.3.170.0130.00316.44
7.3.160.0120.00316.59
7.2.330.0080.00816.58
7.2.320.0060.01216.61
7.2.310.0060.01816.44
7.2.300.0100.00616.50
7.2.290.0050.01616.46
7.2.00.0040.00919.10
7.1.100.0030.01018.03
7.1.70.0000.00917.30
7.1.60.0090.01519.11
7.1.50.0120.00916.71
7.1.00.0030.07722.48
7.0.200.0110.00416.97
7.0.140.0030.07322.15
7.0.60.0130.07319.93
7.0.50.0000.07717.85
7.0.40.0130.08020.09
7.0.30.0230.04320.08
7.0.20.0230.08020.11
7.0.10.0130.05320.23
7.0.00.0070.04020.20
5.6.210.0300.06320.66
5.6.200.0030.08718.29
5.6.190.0100.05320.51
5.6.180.0070.05020.46
5.6.170.0230.04320.55
5.6.160.0130.07720.39
5.6.150.0130.06718.28
5.6.140.0000.08718.29
5.6.130.0070.06018.11
5.6.120.0030.04321.13
5.6.110.0000.04321.02
5.6.100.0070.03720.98
5.6.90.0100.05720.96
5.6.80.0030.07720.50
5.6.70.4100.04020.36
5.5.350.0170.06020.49
5.5.340.0170.06717.97
5.5.330.0030.04320.19
5.5.320.0300.07020.23
5.5.310.0300.08020.41
5.5.300.0000.04018.04
5.5.290.0070.06017.95
5.5.280.0100.06320.98
5.5.270.0100.08720.73
5.5.260.0070.08020.76
5.5.250.0130.07720.49
5.5.240.0200.07020.07
5.4.450.0070.06019.16
5.4.440.1030.08019.47
5.4.430.0100.06019.16
5.4.420.0630.00019.37
5.4.410.0630.00019.27
5.4.400.0600.00019.12
5.4.390.0670.00019.09
5.4.380.0670.00019.24
5.4.370.0670.00019.03
5.4.360.0630.00019.21
5.4.350.0630.00019.12
5.4.340.0050.03412.00
5.4.320.0050.03612.49
5.4.310.0040.03912.48
5.4.300.0060.03912.48
5.4.290.0070.03712.48
5.4.280.0050.03612.38
5.4.270.0050.03712.38
5.4.260.0060.04412.38
5.4.250.0060.03812.38
5.4.240.0050.03612.38
5.4.230.0070.03612.38
5.4.220.0060.03512.37
5.4.210.0050.03512.37
5.4.200.0080.03412.38
5.4.190.0070.03412.37
5.4.180.0040.03612.37
5.4.170.0070.03512.38
5.4.160.0020.03912.38
5.4.150.0020.03912.38
5.4.140.0060.03612.06
5.4.130.0070.03512.05
5.4.120.0070.03412.00
5.4.110.0080.03412.00
5.4.100.0100.03212.00
5.4.90.0040.03912.00
5.4.80.0050.03812.00
5.4.70.0060.03511.99
5.4.60.0060.03511.99
5.4.50.0070.03711.99
5.4.40.0060.03511.98
5.4.30.0050.03511.97
5.4.20.0050.03611.98
5.4.10.0060.03611.98
5.4.00.0010.04111.47
5.3.290.0090.03612.80
5.3.280.0070.04012.71
5.3.270.0050.04112.72
5.3.260.0080.03612.71
5.3.250.0070.03612.72
5.3.240.0070.03612.72
5.3.230.0080.03612.71
5.3.220.0060.03712.68
5.3.210.0070.03812.68
5.3.200.0040.03812.68
5.3.190.0100.03312.67
5.3.180.0060.03912.67
5.3.170.0080.03812.67
5.3.160.0030.03812.68
5.3.150.0030.03912.67
5.3.140.0080.03412.66
5.3.130.0060.03912.66
5.3.120.0050.04012.66
5.3.110.0040.04212.66
5.3.100.0100.03912.12
5.3.90.0050.04312.09
5.3.80.0080.03412.08
5.3.70.0070.03512.08
5.3.60.0100.03312.06
5.3.50.0060.03712.01
5.3.40.0030.03912.01
5.3.30.0060.03411.98
5.3.20.0100.03011.75
5.3.10.0080.03211.71
5.3.00.0080.03411.70
5.2.170.0050.0309.20
5.2.160.0070.0279.21
5.2.150.0040.0319.21
5.2.140.0030.0329.20
5.2.130.0030.0309.17
5.2.120.0040.0289.16
5.2.110.0050.0289.17
5.2.100.0090.0399.17
5.2.90.0060.0269.17
5.2.80.0090.0289.16
5.2.70.0040.0309.16
5.2.60.0070.0289.11
5.2.50.0050.0299.09
5.2.40.0040.0299.06
5.2.30.0050.0299.04
5.2.20.0040.0289.03
5.2.10.0070.0258.94
5.2.00.0050.0298.80
5.1.60.0010.0278.07
5.1.50.0060.0238.07
5.1.40.0050.0248.05
5.1.30.0000.0308.40
5.1.20.0050.0258.42
5.1.10.0050.0258.15
5.1.00.0030.0268.15
5.0.50.0020.0216.63
5.0.40.0030.0286.48
5.0.30.0020.0326.30
5.0.20.0020.0216.27
5.0.10.0040.0196.25
5.0.00.0040.0296.24
4.4.90.0040.0144.78
4.4.80.0040.0144.75
4.4.70.0030.0154.76
4.4.60.0040.0144.75
4.4.50.0020.0154.77
4.4.40.0040.0274.71
4.4.30.0030.0154.76
4.4.20.0020.0164.84
4.4.10.0040.0144.85
4.4.00.0020.0264.76
4.3.110.0010.0174.67
4.3.100.0030.0144.66
4.3.90.0040.0174.63
4.3.80.0020.0284.59
4.3.70.0040.0224.63
4.3.60.0060.0164.63
4.3.50.0040.0174.63
4.3.40.0030.0234.54
4.3.30.0010.0173.29
4.3.20.0040.0133.27
4.3.10.0020.0153.22
4.3.00.0000.0276.75

preferences:
45.44 ms | 401 KiB | 5 Q