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; } makeCatList(array("string"=>"dсАв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.00718.92
8.3.30.0080.00819.25
8.3.20.0070.00720.34
8.3.10.0050.00323.48
8.3.00.0080.00317.61
8.2.170.0110.00422.96
8.2.160.0070.00720.52
8.2.150.0030.00524.18
8.2.140.0000.00824.66
8.2.130.0090.00026.16
8.2.120.0130.00322.21
8.2.110.0030.00622.37
8.2.100.0120.00018.03
8.2.90.0050.00319.23
8.2.80.0030.00617.97
8.2.70.0060.00317.75
8.2.60.0040.00417.93
8.2.50.0030.00618.07
8.2.40.0070.00419.95
8.2.30.0000.00817.96
8.2.20.0080.00017.85
8.2.10.0040.00418.07
8.2.00.0000.00817.94
8.1.270.0040.00424.02
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0070.00323.97
8.1.230.0030.01019.16
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.47
8.1.190.0040.00417.48
8.1.180.0060.00318.10
8.1.170.0040.00418.40
8.1.160.0030.00521.90
8.1.150.0050.00318.77
8.1.140.0080.00017.57
8.1.130.0000.00717.77
8.1.120.0040.00417.46
8.1.110.0000.00817.54
8.1.100.0040.00417.51
8.1.90.0040.00417.43
8.1.80.0030.00617.57
8.1.70.0050.00317.55
8.1.60.0040.00417.74
8.1.50.0080.00017.65
8.1.40.0040.00417.59
8.1.30.0090.00017.58
8.1.20.0050.00317.67
8.1.10.0000.00817.76
8.1.00.0050.00317.54
8.0.300.0040.00420.73
8.0.290.0070.00017.16
8.0.280.0030.00318.46
8.0.270.0070.00017.14
8.0.260.0000.00617.14
8.0.250.0000.00717.09
8.0.240.0000.00917.19
8.0.230.0030.00317.11
8.0.220.0000.00717.09
8.0.210.0070.00017.02
8.0.200.0030.00317.21
8.0.190.0040.00417.13
8.0.180.0040.00417.00
8.0.170.0000.00817.04
8.0.160.0030.00317.18
8.0.150.0060.00317.15
8.0.140.0040.00416.97
8.0.130.0060.00313.57
8.0.120.0090.00017.04
8.0.110.0040.00417.10
8.0.100.0020.00516.96
8.0.90.0040.00416.96
8.0.80.0140.00617.10
8.0.70.0000.00717.06
8.0.60.0040.00416.94
8.0.50.0040.00417.14
8.0.30.0130.00517.45
8.0.20.0120.00817.40
8.0.10.0000.00717.04
8.0.00.0100.01116.78
7.4.330.0070.00015.00
7.4.320.0030.00616.79
7.4.300.0040.00416.74
7.4.290.0070.00016.80
7.4.280.0030.00516.85
7.4.270.0040.00416.86
7.4.260.0070.00316.71
7.4.250.0000.00816.75
7.4.240.0050.00216.70
7.4.230.0000.00716.61
7.4.220.0070.01816.89
7.4.210.0100.01016.85
7.4.200.0070.00016.80
7.4.190.0030.00316.59
7.4.160.0080.00816.75
7.4.150.0060.01217.40
7.4.140.0120.01117.86
7.4.130.0080.01116.68
7.4.120.0040.01216.77
7.4.110.0120.00616.72
7.4.100.0210.00316.83
7.4.90.0080.00916.73
7.4.80.0150.00619.39
7.4.70.0100.01016.82
7.4.60.0000.02116.68
7.4.50.0000.00816.57
7.4.40.0060.01216.64
7.4.30.0070.01116.76
7.4.00.0070.01015.19
7.3.330.0040.00413.55
7.3.320.0050.00013.57
7.3.310.0000.00816.39
7.3.300.0000.00716.58
7.3.290.0030.01316.57
7.3.280.0070.01116.59
7.3.270.0030.01617.40
7.3.260.0100.01016.78
7.3.250.0120.00916.72
7.3.240.0090.00916.84
7.3.230.0230.00016.39
7.3.210.0070.01116.70
7.3.200.0090.01019.39
7.3.190.0110.01216.49
7.3.180.0130.00316.65
7.3.170.0000.01716.60
7.3.160.0110.00416.66
7.3.120.0030.00914.85
7.2.330.0110.00716.75
7.2.320.0100.01016.79
7.2.310.0140.01016.89
7.2.300.0070.01416.64
7.2.290.0100.01316.93
7.2.60.0080.00816.77
7.2.00.0070.01019.75
7.1.200.0040.00415.93
7.1.100.0180.00518.21
7.1.70.0050.00317.14
7.1.60.0070.00719.46
7.1.50.0000.02417.17
7.1.00.0070.07322.46
7.0.200.0050.00317.09
7.0.140.0070.07022.18
7.0.60.0100.04019.86
7.0.50.0070.07717.91
7.0.40.0030.05720.27
7.0.30.0300.08020.09
7.0.20.0230.04020.27
7.0.10.0130.06720.19
7.0.00.0030.04320.21
5.6.280.0070.07021.13
5.6.210.0230.06720.69
5.6.200.0170.04318.29
5.6.190.0030.04720.49
5.6.180.2530.03720.47
5.6.170.0200.04020.71
5.6.160.0130.07720.54
5.6.150.0100.03318.19
5.6.140.0100.07018.14
5.6.130.0030.09018.10
5.6.120.0130.04020.99
5.6.110.0130.04321.00
5.6.100.0000.06320.98
5.6.90.0030.05321.00
5.6.80.0170.07320.38
5.6.70.4470.04720.35
5.5.350.0170.08020.45
5.5.340.0170.07317.96
5.5.330.0100.03720.27
5.5.320.0270.05720.35
5.5.310.0370.07320.34
5.5.300.0000.07017.99
5.5.290.0170.05317.96
5.5.280.0100.08320.67
5.5.270.0070.03720.80
5.5.260.0030.08720.88
5.5.250.0100.03720.50
5.5.240.0170.08020.19
5.4.450.0100.06019.34
5.4.440.0170.06019.20
5.4.430.0230.04319.43
5.4.420.0200.05319.47
5.4.410.0130.05719.48
5.4.400.0130.07318.95
5.4.390.0200.06319.28
5.4.380.0100.06018.60
5.4.370.0100.06018.57
5.4.360.0100.05718.81
5.4.350.0230.04318.75
5.4.340.0200.04718.73
5.4.320.0040.04112.51
5.4.310.0070.03812.50
5.4.300.0100.03912.51
5.4.290.0090.05012.51
5.4.280.0080.04912.41
5.4.270.0270.06712.40
5.4.260.0090.05112.40
5.4.250.0110.05212.40
5.4.240.0070.06812.40
5.4.230.0090.05112.39
5.4.220.0150.04912.40
5.4.210.0100.04712.40
5.4.200.0130.04712.40
5.4.190.0130.04512.39
5.4.180.0160.04312.39
5.4.170.0110.04612.40
5.4.160.0050.03812.40
5.4.150.0070.03712.39
5.4.140.0030.04112.08
5.4.130.0070.03612.07
5.4.120.0100.03512.03
5.4.110.0120.04012.02
5.4.100.0120.05812.02
5.4.90.0100.06812.02
5.4.80.0100.05912.02
5.4.70.0060.03812.02
5.4.60.0050.03812.02
5.4.50.0090.04512.01
5.4.40.0140.07411.99
5.4.30.0060.06111.99
5.4.20.0070.05411.99
5.4.10.0130.04212.00
5.4.00.0080.05611.48
5.3.290.0070.03812.80
5.3.280.0090.05112.71
5.3.270.0130.05312.72
5.3.260.0090.05512.72
5.3.250.0100.05012.72
5.3.240.0110.04912.72
5.3.230.0150.06712.71
5.3.220.0100.06612.68
5.3.210.0140.05012.68
5.3.200.0140.05112.68
5.3.190.0100.05012.68
5.3.180.0030.05412.67
5.3.170.0090.05512.67
5.3.160.0060.05712.68
5.3.150.0100.05512.67
5.3.140.0110.05812.66
5.3.130.0120.05212.66
5.3.120.0100.04012.66
5.3.110.0040.04212.66
5.3.100.0070.03712.13
5.3.90.0070.03612.11
5.3.80.0110.03312.10
5.3.70.0060.03912.10
5.3.60.0070.03812.09
5.3.50.0120.03312.04
5.3.40.0050.03712.04
5.3.30.0070.03412.00
5.3.20.0060.03711.78
5.3.10.0060.03911.74
5.3.00.0070.03611.73
5.2.170.0030.0339.24
5.2.160.0060.0329.23
5.2.150.0040.0369.23
5.2.140.0060.0429.23
5.2.130.0120.0499.19
5.2.120.0110.0449.19
5.2.110.0090.0299.20
5.2.100.0060.0369.19
5.2.90.0040.0429.19
5.2.80.0060.0389.18
5.2.70.0040.0379.18
5.2.60.0030.0339.14
5.2.50.0030.0329.11
5.2.40.0060.0309.09
5.2.30.0060.0289.06
5.2.20.0040.0379.05
5.2.10.0090.0348.95
5.2.00.0090.0298.81
5.1.60.0050.0278.10
5.1.50.0060.0298.09
5.1.40.0060.0258.07
5.1.30.0070.0278.42
5.1.20.0070.0268.45
5.1.10.0060.0278.17
5.1.00.0070.0258.17
5.0.50.0050.0216.65
5.0.40.0040.0296.51
5.0.30.0070.0316.32
5.0.20.0050.0206.29
5.0.10.0040.0216.26
5.0.00.0060.0346.27
4.4.90.0020.0214.78
4.4.80.0040.0264.75
4.4.70.0050.0144.75
4.4.60.0030.0174.76
4.4.50.0060.0204.77
4.4.40.0020.0284.71
4.4.30.0030.0174.76
4.4.20.0010.0194.84
4.4.10.0040.0164.85
4.4.00.0030.0264.76
4.3.110.0030.0174.67
4.3.100.0040.0154.67
4.3.90.0030.0164.63
4.3.80.0010.0274.58
4.3.70.0060.0154.63
4.3.60.0080.0184.63
4.3.50.0110.0294.63
4.3.40.0170.0464.54
4.3.30.0050.0283.32
4.3.20.0040.0233.30
4.3.10.0040.0233.25
4.3.00.0030.0208.64

preferences:
45.44 ms | 400 KiB | 5 Q