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]); 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.40.0070.01119.24
8.3.30.0070.01419.18
8.3.20.0080.01120.34
8.3.10.0080.00023.53
8.3.00.0030.00717.88
8.2.170.0100.01022.96
8.2.160.0100.01020.33
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0110.00326.16
8.2.120.0140.00022.29
8.2.110.0030.00622.38
8.2.100.0040.00818.03
8.2.90.0040.00419.02
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0080.00019.78
8.2.50.0000.00818.07
8.2.40.0080.00020.00
8.2.30.0040.00417.94
8.2.20.0080.00017.96
8.2.10.0070.00018.01
8.2.00.0060.00317.83
8.1.270.0030.00523.83
8.1.260.0060.01226.35
8.1.250.0040.01128.09
8.1.240.0040.00423.90
8.1.230.0000.01219.08
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0080.00317.47
8.1.190.0080.00017.53
8.1.180.0000.01118.10
8.1.170.0040.00418.57
8.1.160.0040.00421.97
8.1.150.0000.00818.68
8.1.140.0070.00017.50
8.1.130.0000.00717.90
8.1.120.0000.00717.60
8.1.110.0000.00817.45
8.1.100.0040.00417.45
8.1.90.0070.00017.61
8.1.80.0000.00817.53
8.1.70.0030.00617.56
8.1.60.0040.00417.75
8.1.50.0060.00317.65
8.1.40.0060.00317.63
8.1.30.0030.00617.65
8.1.20.0040.00417.69
8.1.10.0020.00517.76
8.1.00.0040.00417.52
8.0.300.0050.00218.77
8.0.290.0070.00016.93
8.0.280.0050.00318.28
8.0.270.0080.00017.16
8.0.260.0040.00417.23
8.0.250.0080.00017.19
8.0.240.0030.00617.06
8.0.230.0050.00317.08
8.0.220.0050.00217.13
8.0.210.0030.00317.12
8.0.200.0030.00317.05
8.0.190.0040.00417.08
8.0.180.0000.00917.15
8.0.170.0050.00317.08
8.0.160.0000.00817.14
8.0.150.0000.00817.07
8.0.140.0050.00317.13
8.0.130.0000.00713.60
8.0.120.0000.00817.05
8.0.110.0040.00417.06
8.0.100.0040.00417.12
8.0.90.0000.00716.92
8.0.80.0100.00517.10
8.0.70.0020.00517.11
8.0.60.0000.00817.04
8.0.50.0050.00217.11
8.0.30.0080.01117.29
8.0.20.0130.00817.40
8.0.10.0000.00717.05
8.0.00.0040.01316.99
7.4.330.0000.00715.00
7.4.320.0030.00616.55
7.4.300.0070.00016.72
7.4.290.0000.00716.72
7.4.280.0000.00716.75
7.4.270.0000.00816.71
7.4.260.0030.00716.72
7.4.250.0030.00516.68
7.4.240.0030.00416.83
7.4.230.0030.00316.88
7.4.220.0100.01416.79
7.4.210.0060.00816.75
7.4.200.0050.00216.80
7.4.190.0040.00416.97
7.4.160.0000.01616.83
7.4.150.0070.01117.40
7.4.140.0170.00717.86
7.4.130.0110.00616.67
7.4.120.0080.00916.65
7.4.110.0140.00316.80
7.4.100.0110.00716.59
7.4.90.0080.00916.69
7.4.80.0100.01319.39
7.4.70.0100.01016.53
7.4.60.0100.00716.38
7.4.50.0000.00416.53
7.4.40.0140.00616.50
7.4.30.0100.00716.79
7.4.10.0040.01415.05
7.4.00.0060.00915.09
7.3.330.0080.00013.43
7.3.320.0000.00513.57
7.3.310.0000.00716.61
7.3.300.0030.00316.45
7.3.290.0090.00616.57
7.3.280.0110.00916.56
7.3.270.0140.00317.40
7.3.260.0130.00916.40
7.3.250.0090.00816.51
7.3.240.0100.00616.73
7.3.230.0090.00916.65
7.3.210.0100.00716.49
7.3.200.0130.01019.39
7.3.190.0190.00416.34
7.3.180.0120.00916.57
7.3.170.0090.01216.64
7.3.160.0030.01316.59
7.3.130.0000.01915.00
7.3.120.0080.01014.96
7.3.110.0080.00815.25
7.3.100.0030.01015.09
7.3.90.0120.00314.92
7.3.80.0100.00314.93
7.3.70.0150.00314.77
7.3.60.0040.00715.03
7.3.50.0100.00314.88
7.3.40.0040.00415.00
7.3.30.0000.01114.95
7.3.20.0090.00616.77
7.3.10.0040.01116.57
7.3.00.0000.00916.56
7.2.330.0090.00916.86
7.2.320.0090.00916.97
7.2.310.0120.00616.84
7.2.300.0160.00316.67
7.2.290.0060.01216.81
7.2.260.0070.01315.11
7.2.250.0070.01115.18
7.2.240.0070.00715.34
7.2.230.0000.01415.14
7.2.220.0040.01415.22
7.2.210.0030.01015.17
7.2.200.0090.00615.16
7.2.190.0070.00715.25
7.2.180.0110.00414.74
7.2.170.0000.01114.88
7.2.160.0070.00715.42
7.2.150.0030.01316.87
7.2.140.0080.00816.79
7.2.130.0100.00317.19
7.2.120.0040.01417.20
7.2.110.0060.00616.87
7.2.100.0100.00317.11
7.2.90.0090.00617.16
7.2.80.0070.00816.90
7.2.70.0040.01116.94
7.2.60.0060.00916.93
7.2.50.0070.00717.23
7.2.40.0030.00617.05
7.2.30.0060.00617.13
7.2.20.0060.00917.05
7.2.10.0070.01017.14
7.2.00.0030.01017.23
7.1.330.0090.00615.97
7.1.320.0060.00916.04
7.1.310.0140.00016.05
7.1.300.0000.01516.15
7.1.290.0090.00015.91
7.1.280.0000.00915.99
7.1.270.0030.01016.01
7.1.260.0060.00616.16
7.1.250.0080.00416.09
7.1.240.0030.01015.77
7.1.230.0030.00915.90
7.1.220.0080.00616.09
7.1.210.0030.01415.97
7.1.200.0040.00815.78
7.1.190.0110.00316.02
7.1.180.0030.01016.13
7.1.170.0000.01415.99
7.1.160.0040.00816.14
7.1.150.0030.00916.01
7.1.140.0000.00915.97
7.1.130.0120.00616.08
7.1.120.0080.00416.04
7.1.110.0060.00315.88
7.1.100.0070.01016.13
7.1.90.0100.00716.07
7.1.80.0070.00715.84
7.1.70.0070.00116.73
7.1.60.0080.00817.80
7.1.50.0080.01216.55
7.1.40.0000.01216.06
7.1.30.0100.00716.07
7.1.20.0060.00616.13
7.1.10.0090.00915.82
7.1.00.0080.03619.13
7.0.330.0030.00915.44
7.0.320.0030.01315.50
7.0.310.0030.00915.75
7.0.300.0030.01015.48
7.0.290.0070.00715.75
7.0.280.0100.00315.59
7.0.270.0120.00615.36
7.0.260.0070.00715.39
7.0.250.0100.00315.48
7.0.240.0060.01215.78
7.0.230.0140.00015.18
7.0.220.0090.00615.68
7.0.210.0040.00715.83
7.0.200.0010.00816.16
7.0.190.0040.00715.67
7.0.180.0040.00415.51
7.0.170.0040.01215.65
7.0.160.0030.01015.76
7.0.150.0030.00615.78
7.0.140.0030.04018.73
7.0.130.0070.00715.30
7.0.120.0030.01415.55
7.0.110.0070.01015.58
7.0.100.0070.00415.36
7.0.90.0030.01015.60
7.0.80.0030.00715.73
7.0.70.0030.01115.34
7.0.60.0070.04517.83
7.0.50.0080.02816.56
7.0.40.0030.03717.04
7.0.30.0220.03716.87
7.0.20.0220.03616.85
7.0.10.0030.03216.81
7.0.00.0090.04416.73
5.6.400.0000.01414.51
5.6.390.0060.00614.22
5.6.380.0100.00714.88
5.6.370.0070.00714.49
5.6.360.0000.01614.41
5.6.350.0060.00614.75
5.6.340.0030.00614.14
5.6.330.0030.01414.66
5.6.320.0000.01414.64
5.6.310.0070.01014.31
5.6.300.0040.00414.60
5.6.290.0080.00514.31
5.6.280.0020.03917.52
5.6.270.0060.01214.30
5.6.260.0040.01114.44
5.6.250.0070.00714.56
5.6.240.0000.01414.39
5.6.230.0070.00714.36
5.6.220.0140.00314.40
5.6.210.0050.02717.49
5.6.200.0070.03716.38
5.6.190.0050.04617.37
5.6.180.0070.02817.55
5.6.170.0220.03517.43
5.6.160.0090.03117.46
5.6.150.0080.02516.40
5.6.140.0050.03016.43
5.6.130.0020.04016.29
5.6.120.0070.04217.74
5.6.110.0050.02617.73
5.6.100.0070.04517.61
5.6.90.0100.04417.70
5.6.80.0030.04417.54
5.6.70.0030.00914.13
5.6.60.0100.00614.39
5.6.50.0130.00014.32
5.6.40.0090.00614.36
5.6.30.0040.01114.38
5.6.20.0040.01114.56
5.6.10.0030.01214.43
5.6.00.0000.01414.34
5.5.380.0030.01314.38
5.5.370.0060.01014.50
5.5.360.0100.00714.45
5.5.350.1440.02217.40
5.5.340.0100.04016.24
5.5.330.0070.03217.37
5.5.320.0170.02517.39
5.5.310.0170.04417.21
5.5.300.0080.03816.18
5.5.290.0130.03716.16
5.5.280.0030.04817.59
5.5.270.0030.04317.44
5.5.260.0060.02517.62
5.5.250.0060.04017.50
5.5.240.0020.04517.22
5.5.230.0070.00714.30
5.5.220.0070.00314.25
5.5.210.0060.00614.24
5.5.200.0090.00914.00
5.5.190.0070.01014.34
5.5.180.0120.00314.31
5.5.170.0000.01614.42
5.5.160.0080.00613.92
5.5.150.0050.00514.20
5.5.140.0080.00714.23
5.5.130.0040.01014.32
5.5.120.0080.00614.27
5.5.110.0090.00614.47
5.5.100.0030.01314.31
5.5.90.0070.01014.32
5.5.80.0000.01414.12
5.5.70.0090.00614.13
5.5.60.0000.01114.41
5.5.50.0070.00714.20
5.5.40.0030.00714.23
5.5.30.0130.00314.20
5.5.20.0040.00814.38
5.5.10.0030.01014.18
5.5.00.0060.00914.45
5.4.450.0160.03816.03
5.4.440.0120.02516.09
5.4.430.0120.03416.16
5.4.420.0080.03215.97
5.4.410.0180.03015.95
5.4.400.0130.03815.86
5.4.390.0100.03115.85
5.4.380.0130.03215.86
5.4.370.0120.02115.86
5.4.360.0150.02515.86
5.4.350.0120.02215.85
5.4.340.0100.02415.94
5.4.330.0030.01012.63
5.4.320.0080.02615.74
5.4.310.0050.02415.82
5.4.300.0080.02115.82
5.4.290.0100.02115.74
5.4.280.0080.02115.81
5.4.270.0060.02615.92
5.4.260.0100.02215.86
5.4.250.0080.02515.88
5.4.240.0150.01515.75
5.4.230.0050.02615.89
5.4.220.0090.02015.92
5.4.210.0100.02015.94
5.4.200.0130.02015.89
5.4.190.0090.02315.92
5.4.180.0070.02415.91
5.4.170.0150.03515.92
5.4.160.0120.02215.91
5.4.150.0080.02215.78
5.4.140.0110.02114.55
5.4.130.0110.02114.51
5.4.120.0140.03214.49
5.4.110.0170.03814.61
5.4.100.0140.03514.57
5.4.90.0140.02414.52
5.4.80.0200.03314.61
5.4.70.0150.03014.61
5.4.60.0100.03114.46
5.4.50.0150.03514.39
5.4.40.0130.03314.53
5.4.30.0120.02814.47
5.4.20.0200.02214.58
5.4.10.0150.03614.58
5.4.00.0160.02614.25
5.3.290.0120.01813.60
5.3.280.0070.02413.61
5.3.270.0130.01813.58
5.3.260.0050.02413.58
5.3.250.0160.01513.63
5.3.240.0160.01713.68
5.3.230.0150.02513.65
5.3.220.0150.03713.66
5.3.210.0160.02513.68
5.3.200.0180.03813.71
5.3.190.0110.02613.61
5.3.180.0160.03713.56
5.3.170.0150.03713.55
5.3.160.0150.03713.62
5.3.150.0140.03513.59
5.3.140.0130.04013.55
5.3.130.0150.03813.55
5.3.120.0120.04013.55
5.3.110.0100.04513.55
5.3.100.0150.02713.29
5.3.90.0150.03713.37
5.3.80.0130.04013.33
5.3.70.0160.02413.44
5.3.60.0170.03513.26
5.3.50.0100.04213.25
5.3.40.0120.04313.26
5.3.30.0100.02713.32
5.3.20.0110.03013.20
5.3.10.0120.04013.10
5.3.00.0160.03313.25
5.2.170.0300.05312.36
5.2.160.0230.04312.36
5.2.150.0230.06012.36
5.2.140.0230.06012.36
5.2.130.0170.04012.36
5.2.120.0270.05012.36
5.2.110.0170.06712.36
5.2.100.0270.04712.36
5.2.90.0200.06012.36
5.2.80.0130.05312.36
5.2.70.0200.03712.36
5.2.60.0170.04012.36
5.2.50.0130.04312.36
5.2.40.0200.05712.36
5.2.30.0200.04312.36
5.2.20.0230.03712.36
5.2.10.0170.03312.36
5.2.00.0200.05712.36
5.1.60.0230.04312.36
5.1.50.0200.03312.36
5.1.40.0170.04312.36
5.1.30.0230.02312.36
5.1.20.0130.03712.36
5.1.10.0170.05312.36
5.1.00.0130.03712.36
5.0.50.0100.02312.36
5.0.40.0130.02012.36
5.0.30.0170.03312.36
5.0.20.0100.02312.36
5.0.10.0030.03012.36
5.0.00.0070.06312.36
4.4.90.0070.02012.36
4.4.80.0100.02012.36
4.4.70.0070.02712.36
4.4.60.0100.02712.36
4.4.50.0100.02312.36
4.4.40.0170.02312.36
4.4.30.0130.02712.36
4.4.20.0170.01312.36
4.4.10.0070.02012.36
4.4.00.0100.02312.36
4.3.110.0030.02712.36
4.3.100.0030.03712.36
4.3.90.0100.03312.36
4.3.80.0130.04712.36
4.3.70.0070.02712.36
4.3.60.0070.02312.36
4.3.50.0100.02712.36
4.3.40.0170.03012.36
4.3.30.0070.02312.36
4.3.20.0070.02312.36
4.3.10.0070.03012.36
4.3.00.0000.03012.36

preferences:
74.74 ms | 400 KiB | 5 Q