3v4l.org

run code in 300+ PHP versions simultaneously
<?php function makeCatList($param){ $arResult = array(); $s = array("@[aаА]@u","@[bбБ]@u","@[cсС]@u","@[dдД]@u","@[eеЕ]@u","@[tтТ]@u","@[rрР]@u","@TB@u"); $r = array("A","B","C","D","E","T","r","Tb"); $param["string"] = preg_replace($s, $r, $param["string"]); if(preg_match_all("/((?:[A-D]1)|(?:[A-D][E]?)|(Tr|Tb))/u", $param["string"], $mCats)){ $arCats = sort($mCats[0]); print_r($mCats); return asort($arCats); } else return false; } print_r(makeCatList(array("string"=>"сАв1beс1edeTr")));

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.0070.00716.88
8.3.50.0120.00822.19
8.3.40.0110.00418.95
8.3.30.0120.00918.91
8.3.20.0040.00420.34
8.3.10.0000.00721.94
8.3.00.0100.00017.88
8.2.180.0080.00818.63
8.2.170.0110.01122.96
8.2.160.0110.00420.43
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0080.00022.23
8.2.110.0100.00019.44
8.2.100.0040.00818.09
8.2.90.0040.00419.22
8.2.80.0030.00917.97
8.2.70.0030.00617.86
8.2.60.0000.00817.80
8.2.50.0080.00018.07
8.2.40.0030.00618.22
8.2.30.0000.00718.00
8.2.20.0000.00817.89
8.2.10.0070.00318.10
8.2.00.0000.00817.90
8.1.280.0140.00025.92
8.1.270.0030.00623.67
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00319.21
8.1.230.0090.00317.58
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0000.00917.50
8.1.190.0040.00417.35
8.1.180.0040.00718.10
8.1.170.0030.00518.61
8.1.160.0050.00221.99
8.1.150.0050.00218.68
8.1.140.0040.00417.46
8.1.130.0030.00317.92
8.1.120.0040.00417.57
8.1.110.0000.00817.59
8.1.100.0000.00717.58
8.1.90.0040.00417.56
8.1.80.0040.00417.48
8.1.70.0000.00717.54
8.1.60.0090.00017.73
8.1.50.0040.00417.56
8.1.40.0060.00317.58
8.1.30.0040.00417.74
8.1.20.0080.00017.72
8.1.10.0030.00617.66
8.1.00.0000.00917.63
8.0.300.0000.00918.77
8.0.290.0000.00717.00
8.0.280.0000.00718.42
8.0.270.0050.00217.23
8.0.260.0060.00018.41
8.0.250.0000.00717.03
8.0.240.0040.00417.22
8.0.230.0000.00717.22
8.0.220.0000.00817.13
8.0.210.0000.00817.18
8.0.200.0030.00317.13
8.0.190.0060.00317.22
8.0.180.0080.00017.13
8.0.170.0000.00917.09
8.0.160.0080.00017.07
8.0.150.0060.00317.03
8.0.140.0000.00717.11
8.0.130.0030.00313.54
8.0.120.0050.00317.07
8.0.110.0050.00317.04
8.0.100.0040.00417.11
8.0.90.0050.00217.07
8.0.80.0080.00817.16
8.0.70.0000.00817.15
8.0.60.0040.00417.14
8.0.50.0040.00417.18
8.0.30.0080.01117.18
8.0.20.0120.00717.40
8.0.10.0080.00017.15
8.0.00.0120.01016.89
7.4.330.0030.00315.00
7.4.320.0030.00616.74
7.4.300.0000.00716.75
7.4.290.0030.00316.86
7.4.280.0050.00316.70
7.4.270.0030.00316.84
7.4.260.0000.00716.61
7.4.250.0030.00616.70
7.4.240.0020.00516.80
7.4.230.0030.00316.66
7.4.220.0080.01116.78
7.4.210.0100.00716.96
7.4.200.0000.00816.54
7.4.190.0000.00716.82
7.4.160.0120.00416.73
7.4.150.0070.01117.40
7.4.140.0080.01317.86
7.4.130.0090.01216.66
7.4.120.0060.01216.69
7.4.110.0090.01216.52
7.4.100.0070.01016.72
7.4.90.0070.01016.79
7.4.80.0110.00519.39
7.4.70.0140.00316.81
7.4.60.0200.00016.64
7.4.50.0030.00516.65
7.4.40.0060.01216.63
7.4.30.0030.01716.82
7.4.10.0080.01115.14
7.4.00.0070.00815.15
7.3.330.0030.00513.45
7.3.320.0000.00613.51
7.3.310.0000.00716.62
7.3.300.0020.00516.59
7.3.290.0060.01216.70
7.3.280.0120.00616.60
7.3.270.0130.00317.40
7.3.260.0090.00916.43
7.3.250.0090.00916.59
7.3.240.0110.00816.52
7.3.230.0030.01316.54
7.3.210.0150.00616.73
7.3.200.0070.01419.39
7.3.190.0090.00916.44
7.3.180.0090.00616.51
7.3.170.0000.01616.63
7.3.160.0000.01516.40
7.3.130.0080.01014.94
7.3.120.0080.01114.92
7.3.110.0100.01014.89
7.3.100.0060.01115.13
7.3.90.0090.00414.98
7.3.80.0060.00815.14
7.3.70.0100.00514.85
7.3.60.0080.00315.03
7.3.50.0020.01014.88
7.3.40.0050.00914.96
7.3.30.0050.00914.95
7.3.20.0120.00316.64
7.3.10.0030.00916.49
7.3.00.0090.00616.83
7.2.330.0090.00916.65
7.2.320.0120.00616.78
7.2.310.0000.01816.84
7.2.300.0070.01116.57
7.2.290.0120.01316.65
7.2.260.0090.00915.14
7.2.250.0050.01315.26
7.2.240.0060.00914.90
7.2.230.0050.00815.23
7.2.220.0060.00815.26
7.2.210.0090.00614.99
7.2.200.0040.01415.29
7.2.190.0060.00815.14
7.2.180.0000.01515.02
7.2.170.0080.00915.09
7.2.160.0040.00814.95
7.2.150.0050.00917.13
7.2.140.0070.00616.86
7.2.130.0080.00617.00
7.2.120.0030.01117.01
7.2.110.0040.01117.14
7.2.100.0060.00817.05
7.2.90.0090.00317.06
7.2.80.0020.01317.06
7.2.70.0120.00217.10
7.2.60.0050.01317.22
7.2.50.0030.01216.78
7.2.40.0050.01017.08
7.2.30.0050.01317.22
7.2.20.0080.00516.98
7.2.10.0030.00817.08
7.2.00.0050.00716.96
7.1.330.0060.00915.93
7.1.320.0080.00615.99
7.1.310.0080.00716.08
7.1.300.0080.00615.99
7.1.290.0040.00715.90
7.1.280.0090.00616.00
7.1.270.0030.01015.99
7.1.260.0050.00915.98
7.1.250.0050.00716.12
7.1.240.0080.00516.06
7.1.230.0070.00715.88
7.1.220.0020.01115.92
7.1.210.0080.00515.99
7.1.200.0070.00715.83
7.1.190.0050.00916.02
7.1.180.0100.00315.84
7.1.170.0050.00815.98
7.1.160.0050.01116.07
7.1.150.0050.01216.00
7.1.140.0020.01216.00
7.1.130.0050.00815.86
7.1.120.0030.01315.88
7.1.110.0070.00716.14
7.1.100.0070.00715.83
7.1.90.0050.00516.12
7.1.80.0100.00516.06
7.1.70.0070.00516.47
7.1.60.0050.00717.12
7.1.50.0040.01016.53
7.1.40.0030.00916.07
7.1.30.0060.00616.00
7.1.20.0040.01015.91
7.1.10.0050.00515.84
7.1.00.0010.03418.11
7.0.330.0070.00715.40
7.0.320.0020.01115.76
7.0.310.0100.00315.64
7.0.300.0060.00515.66
7.0.290.0070.00615.46
7.0.280.0060.00815.61
7.0.270.0030.00915.41
7.0.260.0030.01215.65
7.0.250.0070.00615.47
7.0.240.0090.00515.61
7.0.230.0070.00815.56
7.0.220.0070.00715.33
7.0.210.0070.00715.72
7.0.200.0030.00816.12
7.0.190.0050.00815.57
7.0.180.0070.00515.50
7.0.170.0050.00915.51
7.0.160.0020.01115.51
7.0.150.0030.00915.47
7.0.140.0090.03017.75
7.0.130.0060.00315.74
7.0.120.0000.01315.65
7.0.110.0060.00315.45
7.0.100.0050.00515.59
7.0.90.0090.00315.42
7.0.80.0080.00315.51
7.0.70.0050.00915.63
7.0.60.0050.02417.13
7.0.50.0050.02016.46
7.0.40.0070.03415.89
7.0.30.0130.01815.82
7.0.20.0150.02815.84
7.0.10.0060.02015.79
7.0.00.0080.03015.79
5.6.400.0090.00714.54
5.6.390.0050.01214.57
5.6.380.0050.00914.52
5.6.370.0080.00614.31
5.6.360.0060.00714.63
5.6.350.0110.00414.40
5.6.340.0070.00914.66
5.6.330.0090.00614.57
5.6.320.0030.01014.66
5.6.310.0110.00214.59
5.6.300.0080.00514.70
5.6.290.0040.00914.58
5.6.280.0060.02816.53
5.6.270.0050.00914.41
5.6.260.0000.01114.54
5.6.250.0060.00514.66
5.6.240.0050.00614.25
5.6.230.0030.01114.49
5.6.220.0080.00614.54
5.6.210.0040.01916.50
5.6.200.0070.03015.64
5.6.190.0090.01916.60
5.6.180.0090.02916.44
5.6.170.0150.02616.44
5.6.160.0020.03916.53
5.6.150.0110.02815.68
5.6.140.0060.02015.59
5.6.130.0080.03315.66
5.6.120.0070.02016.71
5.6.110.0060.01816.48
5.6.100.0020.03316.75
5.6.90.0040.02216.76
5.6.80.0080.03116.44
5.6.70.0030.01114.33
5.6.60.0040.00614.33
5.6.50.0070.00814.43
5.6.40.0060.00614.37
5.6.30.0090.00514.55
5.6.20.0070.00714.37
5.6.10.0050.00914.38
5.6.00.0030.01214.23
5.5.380.0050.00914.54
5.5.370.0060.00814.34
5.5.360.0060.00614.56
5.5.350.1460.01516.43
5.5.340.0110.02815.62
5.5.330.0090.03216.14
5.5.320.0100.02016.43
5.5.310.0050.02116.38
5.5.300.0060.02115.54
5.5.290.0090.03115.65
5.5.280.0090.03316.46
5.5.270.0040.02316.60
5.5.260.0070.03116.55
5.5.250.0070.01516.42
5.5.240.0050.02216.22
5.5.230.0060.01114.35
5.5.220.0080.00914.31
5.5.210.0050.00714.40
5.5.200.0090.00914.30
5.5.190.0080.00614.29
5.5.180.0120.00214.28
5.5.170.0070.00514.26
5.5.160.0090.00514.38
5.5.150.0040.01014.25
5.5.140.0060.00614.41
5.5.130.0050.00814.26
5.5.120.0070.01014.29
5.5.110.0110.00914.19
5.5.100.0080.00714.05
5.5.90.0050.01014.43
5.5.80.0070.00714.10
5.5.70.0130.00014.31
5.5.60.0080.00314.26
5.5.50.0080.00414.26
5.5.40.0060.00914.11
5.5.30.0110.00414.04
5.5.20.0110.00214.31
5.5.10.0050.00514.00
5.5.00.0060.00814.04
5.4.450.0080.02314.38
5.4.440.0090.02314.48
5.4.430.0110.01814.38
5.4.420.0050.02414.47
5.4.410.0110.01714.43
5.4.400.0090.02014.37
5.4.390.0110.02414.23
5.4.380.0090.02114.09
5.4.370.0090.02014.19
5.4.360.0140.01714.21
5.4.350.0070.02614.13
5.4.340.0050.02414.13
5.4.330.0090.00211.90
5.4.320.0060.01712.10
5.4.310.0070.01912.11
5.4.300.0070.01912.11
5.4.290.0030.02812.10
5.4.280.0070.02212.07
5.4.270.0080.02112.07
5.4.260.0080.01912.07
5.4.250.0080.02312.07
5.4.240.0060.02412.07
5.4.230.0050.02312.07
5.4.220.0060.02012.07
5.4.210.0050.02012.07
5.4.200.0080.01812.07
5.4.190.0070.01612.06
5.4.180.0050.01612.07
5.4.170.0030.02112.07
5.4.160.0040.02212.07
5.4.150.0080.02212.07
5.4.140.0060.03011.96
5.4.130.0060.01911.96
5.4.120.0060.02011.94
5.4.110.0120.02711.94
5.4.100.0120.05011.94
5.4.90.0080.02311.94
5.4.80.0080.02011.94
5.4.70.0030.02611.94
5.4.60.0080.01911.94
5.4.50.0050.02211.94
5.4.40.0050.02211.93
5.4.30.0070.01811.93
5.4.20.0090.02111.93
5.4.10.0050.02211.93
5.4.00.0070.02011.76
5.3.290.0020.02412.20
5.3.280.0080.02212.17
5.3.270.0070.02312.18
5.3.260.0100.02112.18
5.3.250.0070.02412.17
5.3.240.0070.02412.18
5.3.230.0050.02212.17
5.3.220.0090.02012.16
5.3.210.0110.02112.16
5.3.200.0070.02412.16
5.3.190.0100.02112.16
5.3.180.0050.02512.16
5.3.170.0060.02412.16
5.3.160.0040.02712.16
5.3.150.0070.02312.16
5.3.140.0050.02412.16
5.3.130.0060.02412.15
5.3.120.0050.02112.15
5.3.110.0060.02512.15
5.3.100.0030.02311.98
5.3.90.0080.02011.97
5.3.80.0040.02311.97
5.3.70.0040.02411.97
5.3.60.0040.02311.97
5.3.50.0070.02011.95
5.3.40.0050.02011.95
5.3.30.0080.03311.94
5.3.20.0050.02111.86
5.3.10.0040.02911.85
5.3.00.0090.03011.84
5.2.170.0050.0499.24
5.2.160.0160.0809.23
5.2.150.0120.0699.23
5.2.140.0070.0439.23
5.2.130.0180.0499.19
5.2.120.0070.0419.19
5.2.110.0180.0799.20
5.2.100.0060.0459.19
5.2.90.0080.0429.19
5.2.80.0080.0449.18
5.2.70.0090.0439.18
5.2.60.0090.0409.14
5.2.50.0060.0459.11
5.2.40.0060.0409.09
5.2.30.0060.0319.07
5.2.20.0080.0279.06
5.2.10.0020.0408.95
5.2.00.0110.0428.80
5.1.60.0060.0288.09
5.1.50.0070.0428.09
5.1.40.0080.0348.07
5.1.30.0060.0418.42
5.1.20.0100.0498.45
5.1.10.0090.0418.17
5.1.00.0080.0388.17
5.0.50.0040.0396.65
5.0.40.0050.0336.51
5.0.30.0060.0556.32
5.0.20.0050.0286.28
5.0.10.0090.0336.27
5.0.00.0120.0446.27
4.4.90.0090.0204.78
4.4.80.0060.0154.75
4.4.70.0040.0174.76
4.4.60.0050.0174.75
4.4.50.0030.0184.77
4.4.40.0050.0274.71
4.4.30.0060.0154.76
4.4.20.0040.0164.84
4.4.10.0010.0194.85
4.4.00.0070.0304.76
4.3.110.0000.0214.67
4.3.100.0050.0154.66
4.3.90.0040.0164.63
4.3.80.0060.0234.59
4.3.70.0030.0154.63
4.3.60.0030.0164.63
4.3.50.0060.0144.63
4.3.40.0040.0264.54
4.3.30.0050.0163.32
4.3.20.0060.0173.30
4.3.10.0050.0213.25
4.3.00.0030.0208.65

preferences:
52.31 ms | 401 KiB | 5 Q