3v4l.org

run code in 300+ PHP versions simultaneously
<?php function makeCatList($param){ $arResult = array(); $s = array("/[aаА]/ui","/[bбБ]/ui","/[cсС]/ui","/[dдД]/ui","/[eеЕ]/ui","/[tтТ]/ui","/[rрР]/ui","TB"); $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)){ //unset($mCats[0]); print_r($mCats); return asort($mCats); } 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.0170.00316.75
8.3.50.0090.00822.25
8.3.40.0040.01119.17
8.3.30.0110.01119.26
8.3.20.0090.00320.16
8.3.10.0030.00523.52
8.3.00.0070.00419.63
8.2.180.0090.00618.79
8.2.170.0060.01022.96
8.2.160.0070.00720.35
8.2.150.0000.00824.18
8.2.140.0030.00624.66
8.2.130.0080.00026.16
8.2.120.0040.00422.29
8.2.110.0060.00322.34
8.2.100.0090.00318.16
8.2.90.0030.00519.22
8.2.80.0080.00017.97
8.2.70.0050.00317.88
8.2.60.0050.00317.93
8.2.50.0040.00418.07
8.2.40.0000.01417.89
8.2.30.0080.00018.07
8.2.20.0000.00817.92
8.2.10.0000.00818.21
8.2.00.0050.00317.99
8.1.280.0140.00025.92
8.1.270.0040.00423.90
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0030.00623.82
8.1.230.0060.00619.09
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00917.47
8.1.190.0060.00317.48
8.1.180.0030.00618.10
8.1.170.0060.00318.76
8.1.160.0040.00421.88
8.1.150.0050.00218.78
8.1.140.0020.00517.50
8.1.130.0030.00317.91
8.1.120.0040.00417.46
8.1.110.0040.00417.48
8.1.100.0000.00717.58
8.1.90.0070.00017.48
8.1.80.0060.00317.45
8.1.70.0030.00317.41
8.1.60.0080.00017.74
8.1.50.0030.00617.66
8.1.40.0000.00917.65
8.1.30.0000.00817.73
8.1.20.0040.00417.66
8.1.10.0050.00317.70
8.1.00.0050.00317.64
8.0.300.0000.00718.77
8.0.290.0000.00717.05
8.0.280.0030.00318.41
8.0.270.0050.00317.23
8.0.260.0000.00718.32
8.0.250.0000.00717.20
8.0.240.0050.00317.30
8.0.230.0000.00717.09
8.0.220.0000.00817.10
8.0.210.0030.00317.17
8.0.200.0060.00017.14
8.0.190.0030.00517.23
8.0.180.0040.00417.08
8.0.170.0040.00417.03
8.0.160.0040.00417.05
8.0.150.0030.00617.03
8.0.140.0080.00016.97
8.0.130.0000.00613.49
8.0.120.0030.00617.14
8.0.110.0000.00817.21
8.0.100.0000.00717.07
8.0.90.0040.00417.16
8.0.80.0070.00717.20
8.0.70.0040.00417.22
8.0.60.0050.00217.16
8.0.50.0040.00417.05
8.0.30.0110.00917.20
8.0.20.0130.01617.40
8.0.10.0000.00817.25
8.0.00.0110.00916.95
7.4.330.0000.00715.00
7.4.320.0060.00316.72
7.4.300.0030.00316.78
7.4.290.0030.00316.77
7.4.280.0000.00716.66
7.4.270.0030.00516.76
7.4.260.0070.00316.88
7.4.250.0000.00816.82
7.4.240.0000.00716.87
7.4.230.0070.00016.85
7.4.220.0100.00716.74
7.4.210.0060.00916.76
7.4.200.0050.00216.75
7.4.190.0000.00716.95
7.4.160.0100.00716.50
7.4.150.0100.00717.40
7.4.140.0060.01617.86
7.4.130.0080.01216.91
7.4.120.0100.00916.79
7.4.110.0160.00316.90
7.4.100.0090.01816.57
7.4.90.0070.01016.84
7.4.80.0110.00719.39
7.4.70.0140.00316.79
7.4.60.0090.00916.64
7.4.50.0000.00616.55
7.4.40.0130.01016.50
7.4.30.0040.01116.41
7.4.00.0080.00315.18
7.3.330.0020.00413.57
7.3.320.0000.00513.56
7.3.310.0040.00416.43
7.3.300.0070.00016.50
7.3.290.0120.00616.56
7.3.280.0100.00816.60
7.3.270.0100.00717.40
7.3.260.0030.01416.70
7.3.250.0130.00516.61
7.3.240.0030.01316.69
7.3.230.0120.00616.59
7.3.210.0100.01016.73
7.3.200.0040.01819.39
7.3.190.0160.00616.70
7.3.180.0070.01116.55
7.3.170.0060.01016.66
7.3.160.0130.00316.53
7.3.120.0060.00915.07
7.3.10.0070.00716.69
7.3.00.0110.00716.62
7.2.330.0130.00416.73
7.2.320.0090.01416.84
7.2.310.0000.01716.64
7.2.300.0150.00316.79
7.2.290.0110.00616.59
7.2.130.0070.01016.98
7.2.120.0080.00316.97
7.2.110.0070.00616.98
7.2.100.0090.00816.81
7.2.90.0060.01116.92
7.2.80.0130.00716.97
7.2.70.0080.00816.98
7.2.60.0070.00716.84
7.2.50.0090.00716.91
7.2.40.0100.00616.94
7.2.30.0090.00816.86
7.2.20.0090.00916.88
7.2.10.0130.00216.86
7.2.00.0100.00717.99
7.1.250.0080.00616.08
7.1.240.0100.00716.05
7.1.230.0130.00415.98
7.1.220.0090.01516.03
7.1.210.0070.01116.03
7.1.200.0120.00315.98
7.1.190.0150.00316.07
7.1.180.0110.00415.75
7.1.170.0070.00715.96
7.1.160.0080.00615.86
7.1.150.0070.00715.79
7.1.140.0100.00316.01
7.1.130.0120.00616.00
7.1.120.0040.00716.08
7.1.110.0060.00616.06
7.1.100.0080.00817.29
7.1.90.0110.00416.09
7.1.80.0100.00715.96
7.1.70.0050.00716.67
7.1.60.0140.00417.72
7.1.50.0080.01216.62
7.1.40.0130.00615.92
7.1.30.0070.01115.85
7.1.20.0120.01215.99
7.1.10.0110.00715.63
7.1.00.0050.04119.15
7.0.330.0100.01015.52
7.0.320.0150.00315.40
7.0.310.0060.00915.57
7.0.300.0110.00415.63
7.0.290.0040.01115.36
7.0.280.0100.00315.52
7.0.270.0110.00715.70
7.0.260.0110.00715.56
7.0.250.0130.00015.37
7.0.240.0090.00915.56
7.0.230.0060.00615.40
7.0.220.0070.00715.45
7.0.210.0070.00715.49
7.0.200.0060.00616.26
7.0.190.0100.00615.49
7.0.180.0130.00015.55
7.0.170.0170.00315.63
7.0.160.0000.01015.70
7.0.150.0070.00715.60
7.0.140.0090.03818.91
7.0.130.0060.00815.56
7.0.120.0030.00715.41
7.0.110.0080.00415.66
7.0.100.0090.00415.70
7.0.90.0080.00815.70
7.0.80.0110.00715.21
7.0.70.0040.00815.52
7.0.60.0110.03917.80
7.0.50.0090.04216.71
7.0.40.0100.04016.85
7.0.30.0150.03217.05
7.0.20.0150.03916.96
7.0.10.0070.04016.88
7.0.00.0060.03516.94
5.6.380.0060.00614.38
5.6.370.0090.00914.37
5.6.360.0040.01314.40
5.6.350.0090.00314.14
5.6.340.0000.01214.46
5.6.330.0050.01014.35
5.6.320.0070.00314.32
5.6.310.0040.00714.43
5.6.300.0070.00714.37
5.6.290.0060.00614.46
5.6.280.0080.03817.62
5.6.270.0040.00414.29
5.6.260.0060.00914.32
5.6.250.0090.00314.46
5.6.240.0030.01314.36
5.6.230.0040.00814.72
5.6.220.0090.00414.43
5.6.210.0080.04217.44
5.6.200.0080.02216.21
5.6.190.0110.03817.49
5.6.180.0130.02717.40
5.6.170.0190.03317.48
5.6.160.0130.04017.42
5.6.150.0060.04216.26
5.6.140.0070.04316.29
5.6.130.0100.03816.19
5.6.120.0150.03517.84
5.6.110.0050.02217.64
5.6.100.0110.03317.58
5.6.90.0050.04717.77
5.6.80.0060.02617.27
5.6.70.0060.00914.27
5.6.60.0110.00414.28
5.6.50.0080.00414.09
5.6.40.0040.00914.06
5.6.30.0030.01214.18
5.6.20.0070.00714.57
5.6.10.0000.01014.28
5.6.00.0030.01014.25
5.5.380.0090.00311.21
5.5.370.0090.00011.18
5.5.360.0070.00711.25
5.5.350.1920.02915.82
5.5.340.0070.02714.58
5.5.330.0090.04015.69
5.5.320.0100.02615.78
5.5.310.0060.02415.73
5.5.300.0090.03714.66
5.5.290.0050.04314.61
5.5.280.0120.03815.98
5.5.270.0040.02615.95
5.5.260.0060.04315.95
5.5.250.0050.02315.98
5.5.240.0040.03015.63
5.5.230.0000.01311.30
5.5.220.0000.01211.18
5.5.210.0090.00011.26
5.5.200.0040.00811.33
5.5.190.0060.00611.31
5.5.180.0040.00711.18
5.5.170.0080.00411.18
5.5.160.0110.00011.18
5.5.150.0080.00311.41
5.5.140.0100.00011.47
5.5.130.0000.01011.18
5.5.120.0060.00611.18
5.5.110.0120.00011.40
5.5.100.0020.00711.18
5.5.90.0040.00411.18
5.5.80.0060.00611.18
5.5.70.0060.00311.20
5.5.60.0050.00511.18
5.5.50.0000.01011.18
5.5.40.0080.00011.18
5.5.30.0000.00811.34
5.5.20.0000.00811.18
5.5.10.0090.00311.18
5.5.00.0080.00511.41
5.4.450.0160.02515.36
5.4.440.0100.04115.40
5.4.430.0150.02815.23
5.4.420.0130.02815.32
5.4.410.0190.02315.31
5.4.400.0170.03015.07
5.4.390.0110.03615.20
5.4.380.0120.04315.02
5.4.370.0080.02914.82
5.4.360.0130.02514.89
5.4.350.0050.03314.93
5.4.340.0090.02814.84
5.4.330.0000.00911.18
5.4.320.0060.02411.84
5.4.310.0070.02311.84
5.4.300.0060.02311.84
5.4.290.0060.03011.84
5.4.280.0100.02411.86
5.4.270.0040.03111.79
5.4.260.0070.03811.79
5.4.250.0050.03211.79
5.4.240.0100.02811.79
5.4.230.0040.02311.79
5.4.220.0080.01911.78
5.4.210.0050.02311.79
5.4.200.0070.02511.79
5.4.190.0060.02311.81
5.4.180.0050.02311.78
5.4.170.0080.02111.79
5.4.160.0080.01911.79
5.4.150.0060.02111.87
5.4.140.0060.02211.63
5.4.130.0070.02111.71
5.4.120.0100.01911.63
5.4.110.0080.02111.60
5.4.100.0110.01811.67
5.4.90.0060.02311.59
5.4.80.0080.02111.60
5.4.70.0090.01911.64
5.4.60.0070.02111.63
5.4.50.0110.01911.72
5.4.40.0100.02111.59
5.4.30.0080.02011.61
5.4.20.0080.02011.58
5.4.10.0110.01611.61
5.4.00.0070.02111.33
5.3.290.0040.02311.99
5.3.280.0070.02111.94
5.3.270.0060.02411.95
5.3.260.0070.02511.95
5.3.250.0050.02511.95
5.3.240.0050.02411.95
5.3.230.0060.02411.94
5.3.220.0050.02611.93
5.3.210.0090.02811.93
5.3.200.0070.03111.93
5.3.190.0020.03511.93
5.3.180.0120.02611.92
5.3.170.0100.03011.92
5.3.160.0060.03211.92
5.3.150.0120.02711.92
5.3.140.0100.02811.92
5.3.130.0090.03111.92
5.3.120.0090.03111.92
5.3.110.0090.02611.92
5.3.100.0120.02711.66
5.3.90.0080.03211.64
5.3.80.0090.02911.64
5.3.70.0040.03111.64
5.3.60.0080.02911.63
5.3.50.0080.03011.61
5.3.40.0060.03011.61
5.3.30.0080.02711.59
5.3.20.0100.02711.47
5.3.10.0080.02811.46
5.3.00.0130.02411.45
5.2.170.0060.02310.21
5.2.160.0060.02410.21
5.2.150.0070.02310.21
5.2.140.0040.02710.20
5.2.130.0030.02610.19
5.2.120.0040.02410.18
5.2.110.0020.02710.19
5.2.100.0070.02310.18
5.2.90.0040.02410.18
5.2.80.0040.02610.18
5.2.70.0070.02310.18
5.2.60.0030.02710.16
5.2.50.0060.02510.14
5.2.40.0070.02210.14
5.2.30.0070.02210.12
5.2.20.0090.02110.11
5.2.10.0050.02310.06
5.2.00.0030.0269.99
5.1.60.0070.0219.63
5.1.50.0100.0189.63
5.1.40.0080.0229.62
5.1.30.0070.0269.80
5.1.20.0070.0249.81
5.1.10.0110.0209.67
5.1.00.0090.0249.67
5.0.50.0080.0208.91
5.0.40.0070.0198.84
5.0.30.0060.0288.75
5.0.20.0060.0198.73
5.0.10.0080.0178.72
5.0.00.0090.0268.72
4.4.90.0060.0167.98
4.4.80.0050.0167.96
4.4.70.0040.0147.96
4.4.60.0070.0127.97
4.4.50.0050.0147.97
4.4.40.0030.0247.94
4.4.30.0080.0137.97
4.4.20.0070.0098.01
4.4.10.0030.0138.01
4.4.00.0040.0167.97
4.3.110.0050.0127.92
4.3.100.0040.0137.92
4.3.90.0020.0157.91
4.3.80.0030.0197.88
4.3.70.0050.0117.90
4.3.60.0060.0127.90
4.3.50.0060.0107.90
4.3.40.0030.0187.86
4.3.30.0060.0097.25
4.3.20.0040.0127.23
4.3.10.0030.0147.21
4.3.00.0030.0159.91

preferences:
42.55 ms | 401 KiB | 5 Q