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[0]); 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.0030.01016.75
8.3.50.0090.01022.26
8.3.40.0110.00418.93
8.3.30.0110.00319.22
8.3.20.0040.00420.21
8.3.10.0050.00323.36
8.3.00.0100.00017.50
8.2.180.0120.00918.91
8.2.170.0150.00622.96
8.2.160.0030.01020.43
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0000.00826.16
8.2.120.0050.00322.26
8.2.110.0060.00322.07
8.2.100.0070.00417.97
8.2.90.0050.00319.23
8.2.80.0050.00317.97
8.2.70.0060.00317.75
8.2.60.0040.00418.04
8.2.50.0030.00618.07
8.2.40.0120.00017.87
8.2.30.0030.00518.00
8.2.20.0050.00317.84
8.2.10.0000.00918.14
8.2.00.0000.00817.89
8.1.280.0070.00725.92
8.1.270.0090.00023.91
8.1.260.0110.00426.35
8.1.250.0040.00428.09
8.1.240.0100.00023.87
8.1.230.0070.00418.83
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0070.00317.47
8.1.190.0080.00017.21
8.1.180.0100.00018.10
8.1.170.0040.00418.48
8.1.160.0040.00421.98
8.1.150.0000.00818.64
8.1.140.0040.00417.57
8.1.130.0040.00417.77
8.1.120.0040.00417.62
8.1.110.0080.00017.60
8.1.100.0040.00417.55
8.1.90.0040.00417.56
8.1.80.0090.00017.56
8.1.70.0030.00317.48
8.1.60.0030.00617.70
8.1.50.0000.00817.67
8.1.40.0030.00617.68
8.1.30.0030.00617.71
8.1.20.0050.00317.67
8.1.10.0050.00217.73
8.1.00.0030.00617.63
8.0.300.0080.00020.79
8.0.290.0040.00417.04
8.0.280.0030.00318.41
8.0.270.0000.00717.09
8.0.260.0030.00317.22
8.0.250.0070.00017.14
8.0.240.0040.00417.20
8.0.230.0000.00717.16
8.0.220.0030.00317.09
8.0.210.0000.00717.14
8.0.200.0030.00317.01
8.0.190.0060.00317.06
8.0.180.0000.00717.02
8.0.170.0040.00417.04
8.0.160.0070.00017.01
8.0.150.0040.00416.94
8.0.140.0040.00417.05
8.0.130.0000.00613.44
8.0.120.0080.00016.97
8.0.110.0070.00017.02
8.0.100.0040.00417.13
8.0.90.0040.00416.93
8.0.80.0090.00917.07
8.0.70.0040.00416.91
8.0.60.0000.00816.84
8.0.50.0000.00716.84
8.0.30.0110.00817.19
8.0.20.0150.00917.40
8.0.10.0050.00217.22
8.0.00.0120.01016.90
7.4.330.0030.00315.00
7.4.320.0030.00616.70
7.4.300.0050.00216.79
7.4.290.0000.00716.70
7.4.280.0040.00416.77
7.4.270.0000.00716.70
7.4.260.0040.00416.84
7.4.250.0000.00916.72
7.4.240.0000.00716.77
7.4.230.0030.00316.82
7.4.220.0060.01216.94
7.4.210.0040.01216.81
7.4.200.0040.00416.70
7.4.190.0040.00416.61
7.4.160.0040.01816.62
7.4.150.0110.00617.40
7.4.140.0080.01117.86
7.4.130.0130.00816.86
7.4.120.0070.01316.72
7.4.110.0110.00916.62
7.4.100.0060.01616.90
7.4.90.0120.00616.47
7.4.80.0100.00719.39
7.4.70.0110.00616.97
7.4.60.0120.00616.66
7.4.50.0040.00016.57
7.4.40.0130.00316.65
7.4.30.0060.01016.67
7.4.00.0090.01015.13
7.3.330.0040.00413.51
7.3.320.0000.00513.32
7.3.310.0040.00416.56
7.3.300.0000.00716.39
7.3.290.0090.01216.48
7.3.280.0060.01216.51
7.3.270.0090.00917.40
7.3.260.0150.00316.76
7.3.250.0110.00616.75
7.3.240.0110.00516.46
7.3.230.0030.01316.42
7.3.210.0080.01216.89
7.3.200.0060.01219.39
7.3.190.0120.00616.35
7.3.180.0070.01016.64
7.3.170.0030.01916.61
7.3.160.0060.00916.54
7.3.120.0080.01014.84
7.3.110.0090.01014.69
7.3.100.0060.00914.95
7.3.90.0060.01214.95
7.3.80.0090.00014.88
7.3.70.0030.01014.67
7.3.60.0080.00814.96
7.3.50.0000.01114.93
7.3.40.0080.00414.74
7.3.30.0030.00614.75
7.3.20.0030.01016.67
7.3.10.0000.01216.54
7.3.00.0060.00316.74
7.2.330.0120.00616.80
7.2.320.0160.00316.77
7.2.310.0060.01216.79
7.2.300.0090.01216.65
7.2.290.0110.01116.62
7.2.250.0070.01415.18
7.2.240.0060.01115.11
7.2.230.0060.01214.94
7.2.220.0060.00915.29
7.2.210.0030.01014.81
7.2.200.0000.01615.07
7.2.190.0110.00015.10
7.2.180.0070.01014.89
7.2.170.0080.00315.20
7.2.00.0000.01219.61
7.1.330.0000.01616.20
7.1.320.0000.01015.92
7.1.310.0140.00315.95
7.1.300.0060.00915.97
7.1.290.0060.00915.95
7.1.280.0060.00615.94
7.1.270.0060.00615.67
7.1.260.0060.00915.82
7.1.200.0000.01215.79
7.1.100.0060.00618.50
7.1.70.0000.01217.39
7.1.60.0100.01019.46
7.1.50.0000.01617.06
7.1.00.0030.07722.30
7.0.200.0020.00517.04
7.0.140.0000.07722.03
7.0.60.0130.07021.68
7.0.50.0070.08017.91
7.0.40.0200.07020.30
7.0.30.0370.07320.22
7.0.20.0100.06020.19
7.0.10.0130.08020.26
7.0.00.0130.08320.18
5.6.280.0070.07021.10
5.6.210.0200.06320.63
5.6.200.0030.09018.27
5.6.190.0100.06320.39
5.6.180.0170.04320.61
5.6.170.0230.04020.56
5.6.160.0070.05020.54
5.6.150.0100.05018.12
5.6.140.0070.07018.28
5.6.130.0100.07718.17
5.6.120.0030.08321.02
5.6.110.0030.04721.12
5.6.100.0030.07721.02
5.6.90.0070.06720.95
5.6.80.0130.03320.41
5.5.350.0170.06020.39
5.5.340.0100.05318.07
5.5.330.0070.05020.40
5.5.320.0170.04320.29
5.5.310.0000.04320.24
5.5.300.0030.07018.09
5.5.290.0070.03718.01
5.5.280.0100.06720.96
5.5.270.0100.09020.89
5.5.260.0100.08320.87
5.5.250.0030.07720.66
5.5.240.0300.07320.16
5.4.450.0070.06319.39
5.4.440.0170.07319.45
5.4.430.0130.05719.16
5.4.420.0170.05319.15
5.4.410.0170.05019.06
5.4.400.0170.06719.03
5.4.390.0170.05019.13
5.4.380.0170.05018.78
5.4.370.0130.05318.63
5.4.360.0130.05318.78
5.4.350.0070.06018.78
5.4.340.0170.04718.64
5.4.320.0070.03812.51
5.4.310.0060.03912.50
5.4.300.0040.03912.50
5.4.290.0100.05112.50
5.4.280.0080.04812.40
5.4.270.0120.05612.40
5.4.260.0110.04912.40
5.4.250.0050.04412.40
5.4.240.0120.03612.40
5.4.230.0090.04012.39
5.4.220.0060.04412.39
5.4.210.0050.04412.39
5.4.200.0110.04112.40
5.4.190.0090.05212.39
5.4.180.0060.04912.39
5.4.170.0060.04312.40
5.4.160.0080.04212.40
5.4.150.0070.04112.40
5.4.140.0060.04412.08
5.4.130.0040.04112.07
5.4.120.0060.03912.02
5.4.110.0060.04412.02
5.4.100.0060.03512.02
5.4.90.0060.03812.02
5.4.80.0060.04112.02
5.4.70.0100.04012.02
5.4.60.0080.04812.01
5.4.50.0080.04912.01
5.4.40.0120.04312.00
5.4.30.0070.04711.99
5.4.20.0110.04611.99
5.4.10.0060.04911.99
5.4.00.0090.04811.48
5.3.290.0040.04112.80
5.3.280.0070.04912.70
5.3.270.0060.05512.72
5.3.260.0110.05012.72
5.3.250.0140.04812.72
5.3.240.0090.05312.72
5.3.230.0050.05512.71
5.3.220.0090.05212.68
5.3.210.0080.05612.68
5.3.200.0060.05712.68
5.3.190.0100.04712.67
5.3.180.0070.03812.68
5.3.170.0050.04012.67
5.3.160.0070.03812.68
5.3.150.0080.04312.68
5.3.140.0050.03812.66
5.3.130.0050.04112.66
5.3.120.0090.03612.66
5.3.110.0080.03912.66
5.3.100.0110.03612.13
5.3.90.0040.04012.12
5.3.80.0080.03512.11
5.3.70.0090.03712.10
5.3.60.0080.04512.09
5.3.50.0080.04312.04
5.3.40.0070.03612.04
5.3.30.0040.04112.00
5.3.20.0040.04211.78
5.3.10.0110.04011.74
5.3.00.0070.03811.73
5.2.170.0050.0359.24
5.2.160.0080.0349.23
5.2.150.0050.0349.23
5.2.140.0070.0309.23
5.2.130.0070.0299.19
5.2.120.0040.0319.19
5.2.110.0050.0309.20
5.2.100.0050.0439.19
5.2.90.0060.0309.19
5.2.80.0040.0329.18
5.2.70.0080.0379.18
5.2.60.0060.0349.14
5.2.50.0040.0369.11
5.2.40.0030.0339.09
5.2.30.0080.0289.06
5.2.20.0060.0309.06
5.2.10.0100.0288.94
5.2.00.0060.0428.81
5.1.60.0060.0358.09
5.1.50.0060.0258.09
5.1.40.0030.0268.07
5.1.30.0040.0328.42
5.1.20.0060.0388.44
5.1.10.0060.0368.17
5.1.00.0040.0288.17
5.0.50.0060.0216.65
5.0.40.0040.0236.51
5.0.30.0030.0356.32
5.0.20.0050.0206.28
5.0.10.0050.0216.26
5.0.00.0060.0316.26
4.4.90.0050.0154.78
4.4.80.0020.0184.76
4.4.70.0010.0194.76
4.4.60.0040.0164.75
4.4.50.0030.0174.77
4.4.40.0060.0294.71
4.4.30.0060.0144.76
4.4.20.0060.0164.84
4.4.10.0050.0184.85
4.4.00.0030.0304.76
4.3.110.0030.0174.67
4.3.100.0080.0114.66
4.3.90.0020.0164.63
4.3.80.0040.0234.58
4.3.70.0040.0144.63
4.3.60.0070.0144.62
4.3.50.0000.0204.63
4.3.40.0020.0264.54
4.3.30.0030.0163.32
4.3.20.0010.0183.30
4.3.10.0010.0173.25
4.3.00.0030.0208.65

preferences:
44.05 ms | 401 KiB | 5 Q