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)){ //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.40.0130.00318.74
8.3.30.0100.00719.01
8.3.20.0030.01720.30
8.3.10.0040.00423.48
8.3.00.0080.00319.50
8.2.170.0140.00322.96
8.2.160.0040.01120.35
8.2.150.0000.00724.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0110.00322.28
8.2.110.0080.00422.10
8.2.100.0090.00318.12
8.2.90.0050.00318.86
8.2.80.0050.00517.97
8.2.70.0040.00417.88
8.2.60.0030.00517.93
8.2.50.0050.00318.07
8.2.40.0030.00518.22
8.2.30.0030.00618.06
8.2.20.0040.00417.77
8.2.10.0000.00818.14
8.2.00.0030.00517.89
8.1.270.0040.00423.82
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0090.00020.84
8.1.230.0080.00318.98
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0090.00217.23
8.1.190.0000.00817.48
8.1.180.0040.00418.10
8.1.170.0040.00418.84
8.1.160.0040.00418.91
8.1.150.0000.00718.73
8.1.140.0000.00717.56
8.1.130.0000.00717.78
8.1.120.0000.00717.58
8.1.110.0020.00517.50
8.1.100.0040.00417.53
8.1.90.0000.00717.51
8.1.80.0030.00617.48
8.1.70.0090.00017.47
8.1.60.0040.00417.71
8.1.50.0000.00817.54
8.1.40.0030.00617.55
8.1.30.0040.00417.77
8.1.20.0040.00417.85
8.1.10.0000.00717.62
8.1.00.0060.00317.52
8.0.300.0040.00418.77
8.0.290.0040.00816.63
8.0.280.0000.00718.36
8.0.270.0000.00717.21
8.0.260.0060.00017.17
8.0.250.0000.00717.21
8.0.240.0000.00817.16
8.0.230.0000.00817.23
8.0.220.0040.00417.15
8.0.210.0040.00417.15
8.0.200.0030.00317.03
8.0.190.0040.00417.06
8.0.180.0030.00517.07
8.0.170.0090.00016.94
8.0.160.0000.00817.09
8.0.150.0040.00316.95
8.0.140.0050.00217.02
8.0.130.0040.00413.43
8.0.120.0040.00417.01
8.0.110.0000.00716.89
8.0.100.0050.00216.85
8.0.90.0040.00416.91
8.0.80.0080.00917.02
8.0.70.0000.00816.90
8.0.60.0030.00516.97
8.0.50.0000.00716.90
8.0.30.0150.00517.24
8.0.20.0090.00917.40
8.0.10.0040.00417.05
8.0.00.0150.00516.95
7.4.330.0070.00015.00
7.4.320.0070.00316.65
7.4.300.0030.00316.66
7.4.290.0040.00416.65
7.4.280.0000.00716.60
7.4.270.0050.00216.63
7.4.260.0000.00716.77
7.4.250.0000.00816.63
7.4.240.0050.00216.75
7.4.230.0050.00316.57
7.4.220.0090.00916.74
7.4.210.0050.01016.90
7.4.200.0040.00416.88
7.4.190.0000.00816.77
7.4.160.0090.01316.53
7.4.150.0180.00017.40
7.4.140.0060.01617.86
7.4.130.0050.01316.75
7.4.120.0110.00616.76
7.4.110.0040.01216.56
7.4.100.0070.01116.64
7.4.90.0030.01416.75
7.4.80.0110.01119.39
7.4.70.0070.01016.70
7.4.60.0000.01516.63
7.4.50.0000.00416.58
7.4.40.0140.00316.71
7.4.30.0080.00816.71
7.4.10.0090.00915.09
7.4.00.0070.01214.92
7.3.330.0080.00013.38
7.3.320.0000.00513.44
7.3.310.0040.00416.40
7.3.300.0000.00716.43
7.3.290.0070.01116.52
7.3.280.0070.01016.52
7.3.270.0160.00017.40
7.3.260.0100.00716.67
7.3.250.0090.01016.54
7.3.240.0110.00616.43
7.3.230.0140.00316.59
7.3.210.0120.00616.49
7.3.200.0130.01019.39
7.3.190.0130.00716.63
7.3.180.0100.00716.77
7.3.170.0060.01216.64
7.3.160.0060.00916.59
7.3.130.0070.00714.62
7.3.120.0020.01614.86
7.3.110.0110.01114.61
7.3.100.0070.00715.22
7.3.90.0070.00714.97
7.3.80.0000.01114.99
7.3.70.0060.00614.93
7.3.60.0070.00415.06
7.3.50.0120.00614.95
7.3.40.0040.00815.05
7.3.30.0030.01314.76
7.3.20.0060.00616.91
7.3.10.0030.00916.77
7.3.00.0070.00716.78
7.2.330.0120.00616.68
7.2.320.0060.01516.74
7.2.310.0150.00316.89
7.2.300.0070.01516.73
7.2.290.0080.00816.56
7.2.260.0030.01615.09
7.2.250.0060.01015.36
7.2.240.0040.00815.39
7.2.230.0070.00715.18
7.2.220.0030.01014.82
7.2.210.0000.01415.11
7.2.200.0030.01015.09
7.2.190.0100.00714.96
7.2.180.0140.00315.16
7.2.170.0040.00814.92
7.2.160.0030.00615.08
7.2.150.0000.01316.86
7.2.140.0040.00716.73
7.2.130.0040.01117.11
7.2.120.0100.00616.78
7.2.110.0060.01316.98
7.2.100.0060.01316.94
7.2.90.0060.00616.82
7.2.80.0100.00616.89
7.2.70.0090.00616.98
7.2.60.0080.00816.84
7.2.50.0000.00917.03
7.2.40.0030.01316.92
7.2.30.0090.00317.24
7.2.20.0030.01016.88
7.2.10.0090.00016.96
7.2.00.0030.01316.75
7.1.330.0100.00316.22
7.1.320.0060.00915.86
7.1.310.0110.00316.21
7.1.300.0120.00316.02
7.1.290.0060.00616.18
7.1.280.0030.00716.02
7.1.270.0050.00815.66
7.1.260.0060.00616.01
7.1.250.0070.00716.10
7.1.240.0060.01015.88
7.1.230.0070.01016.05
7.1.220.0070.00316.05
7.1.210.0040.00416.09
7.1.200.0060.00916.00
7.1.190.0070.00715.65
7.1.180.0070.01015.71
7.1.170.0000.01215.98
7.1.160.0000.01415.83
7.1.150.0070.00715.95
7.1.140.0060.00916.00
7.1.130.0040.01115.88
7.1.120.0060.00616.02
7.1.110.0030.01016.14
7.1.100.0050.00917.20
7.1.90.0030.01015.99
7.1.80.0030.00716.09
7.1.70.0020.00716.79
7.1.60.0070.01217.76
7.1.50.0070.01116.34
7.1.40.0130.00016.19
7.1.30.0000.01515.84
7.1.20.0040.00715.71
7.1.10.0030.00915.78
7.1.00.0070.04019.08
7.0.330.0030.00615.59
7.0.320.0090.00015.50
7.0.310.0030.00815.46
7.0.300.0110.00315.39
7.0.290.0070.00715.70
7.0.280.0030.00615.45
7.0.270.0070.00715.55
7.0.260.0110.00415.46
7.0.250.0060.00615.70
7.0.240.0100.00715.70
7.0.230.0090.00615.68
7.0.220.0060.00615.54
7.0.210.0090.00315.53
7.0.200.0060.00616.13
7.0.190.0100.00015.39
7.0.180.0030.00715.72
7.0.170.0070.00715.78
7.0.160.0100.00715.60
7.0.150.0030.00615.60
7.0.140.0070.03818.84
7.0.130.0030.01215.53
7.0.120.0040.00715.56
7.0.110.0030.01315.69
7.0.100.0040.01115.78
7.0.90.0060.00615.43
7.0.80.0100.00315.76
7.0.70.0070.01115.43
7.0.60.0090.04317.72
7.0.50.0050.03516.85
7.0.40.0050.03216.88
7.0.30.0170.04216.80
7.0.20.0170.02916.91
7.0.10.0110.04316.86
7.0.00.0060.04517.10
5.6.400.0000.00914.62
5.6.390.0000.01714.24
5.6.380.0070.00714.59
5.6.370.0090.00914.70
5.6.360.0000.01514.43
5.6.350.0030.01014.52
5.6.340.0030.01014.57
5.6.330.0040.00814.34
5.6.320.0040.01214.38
5.6.310.0100.00314.57
5.6.300.0090.00614.60
5.6.290.0060.00614.43
5.6.280.0030.04017.75
5.6.270.0110.00614.32
5.6.260.0000.01714.52
5.6.250.0140.00414.55
5.6.240.0000.01514.67
5.6.230.0050.00514.76
5.6.220.0120.00614.16
5.6.210.0080.02317.46
5.6.200.0070.03816.21
5.6.190.0060.04317.57
5.6.180.0110.04317.56
5.6.170.0220.02717.42
5.6.160.0050.02417.52
5.6.150.0120.03016.54
5.6.140.0030.02316.24
5.6.130.0020.03216.48
5.6.120.0080.04017.78
5.6.110.0050.02517.75
5.6.100.0080.04517.55
5.6.90.0060.04117.77
5.6.80.0030.02717.25
5.6.70.0040.01114.27
5.6.60.0060.00914.35
5.6.50.0030.01014.29
5.6.40.0060.00614.41
5.6.30.0000.00914.09
5.6.20.0070.00714.50
5.6.10.0100.00714.35
5.6.00.0060.00914.38
5.5.380.0040.00714.38
5.5.370.0040.01214.27
5.5.360.0140.00314.09
5.5.350.1670.02317.41
5.5.340.0080.03916.21
5.5.330.0070.04217.40
5.5.320.0150.02217.43
5.5.310.0230.03517.32
5.5.300.0070.04516.13
5.5.290.0060.03616.07
5.5.280.0080.02617.71
5.5.270.0070.02717.60
5.5.260.0110.04117.61
5.5.250.0070.02417.59
5.5.240.0050.04317.25
5.5.230.0030.00914.41
5.5.220.0030.01314.28
5.5.210.0070.00314.11
5.5.200.0070.00714.26
5.5.190.0030.01014.38
5.5.180.0100.00614.52
5.5.170.0000.01114.33
5.5.160.0060.00614.45
5.5.150.0070.00914.44
5.5.140.0150.00314.39
5.5.130.0070.00714.11
5.5.120.0060.00614.41
5.5.110.0100.00014.10
5.5.100.0070.00714.01
5.5.90.0080.00814.37
5.5.80.0000.01614.52
5.5.70.0040.00814.35
5.5.60.0030.01414.24
5.5.50.0090.00613.87
5.5.40.0140.00014.37
5.5.30.0060.00614.20
5.5.20.0040.00414.23
5.5.10.0000.01414.28
5.5.00.0070.00714.45
5.4.450.0080.03615.39
5.4.440.0150.02715.50
5.4.430.0130.03715.34
5.4.420.0070.03315.21
5.4.410.0120.03715.37
5.4.400.0050.03315.07
5.4.390.0070.03215.16
5.4.380.0140.03214.96
5.4.370.0090.03114.92
5.4.360.0120.02614.97
5.4.350.0070.03215.01
5.4.340.0080.02814.85
5.4.330.0000.00711.08
5.4.320.0050.02111.79
5.4.310.0070.03111.79
5.4.300.0110.02411.79
5.4.290.0020.02511.87
5.4.280.0050.02211.74
5.4.270.0040.02511.74
5.4.260.0080.02811.74
5.4.250.0030.02511.81
5.4.240.0050.02311.83
5.4.230.0050.02211.74
5.4.220.0070.02011.74
5.4.210.0060.02111.74
5.4.200.0060.02011.78
5.4.190.0040.02111.73
5.4.180.0050.02211.80
5.4.170.0030.02311.74
5.4.160.0040.02011.74
5.4.150.0060.02311.74
5.4.140.0050.02311.63
5.4.130.0090.02611.74
5.4.120.0070.02211.63
5.4.110.0060.02611.55
5.4.100.0100.05211.55
5.4.90.0070.02111.56
5.4.80.0050.02411.55
5.4.70.0060.02311.55
5.4.60.0050.02111.56
5.4.50.0060.02111.54
5.4.40.0060.02111.54
5.4.30.0050.02311.54
5.4.20.0020.02511.54
5.4.10.0030.02311.54
5.4.00.0070.02211.28
5.3.290.0050.02711.94
5.3.280.0050.03011.89
5.3.270.0070.02711.90
5.3.260.0090.02811.90
5.3.250.0060.02911.90
5.3.240.0090.03211.90
5.3.230.0020.03511.89
5.3.220.0060.03111.88
5.3.210.0090.02811.88
5.3.200.0060.02911.88
5.3.190.0070.02611.88
5.3.180.0040.03011.88
5.3.170.0060.02311.88
5.3.160.0060.02311.88
5.3.150.0060.02011.88
5.3.140.0060.02111.87
5.3.130.0100.02511.87
5.3.120.0060.02411.87
5.3.110.0090.02011.87
5.3.100.0050.02411.60
5.3.90.0060.02111.60
5.3.80.0040.02411.59
5.3.70.0060.02211.59
5.3.60.0050.02311.58
5.3.50.0030.02611.56
5.3.40.0050.02411.56
5.3.30.0070.02311.54
5.3.20.0050.02011.43
5.3.10.0050.02011.41
5.3.00.0050.02211.40
5.2.170.0070.0339.23
5.2.160.0070.0289.24
5.2.150.0030.0349.23
5.2.140.0060.0309.24
5.2.130.0060.0299.19
5.2.120.0060.0289.19
5.2.110.0050.0309.20
5.2.100.0050.0299.19
5.2.90.0070.0329.20
5.2.80.0050.0329.19
5.2.70.0070.0349.18
5.2.60.0050.0359.14
5.2.50.0080.0349.11
5.2.40.0050.0309.09
5.2.30.0110.0349.06
5.2.20.0050.0489.06
5.2.10.0080.0378.95
5.2.00.0090.0298.81
5.1.60.0060.0238.09
5.1.50.0070.0238.09
5.1.40.0050.0258.07
5.1.30.0020.0308.42
5.1.20.0090.0238.45
5.1.10.0070.0318.17
5.1.00.0100.0348.16
5.0.50.0050.0296.64
5.0.40.0050.0306.50
5.0.30.0060.0406.32
5.0.20.0060.0196.28
5.0.10.0070.0196.26
5.0.00.0040.0326.26
4.4.90.0050.0154.78
4.4.80.0030.0164.75
4.4.70.0070.0154.75
4.4.60.0050.0154.75
4.4.50.0080.0114.77
4.4.40.0040.0264.71
4.4.30.0010.0214.76
4.4.20.0040.0234.84
4.4.10.0040.0184.85
4.4.00.0050.0254.76
4.3.110.0040.0174.67
4.3.100.0050.0144.66
4.3.90.0040.0164.63
4.3.80.0040.0344.58
4.3.70.0040.0144.63
4.3.60.0050.0144.63
4.3.50.0050.0154.63
4.3.40.0040.0324.54
4.3.30.0020.0183.32
4.3.20.0010.0233.29
4.3.10.0030.0173.25
4.3.00.0070.0238.64

preferences:
38.66 ms | 400 KiB | 5 Q