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",); preg_replace($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.0070.00719.00
8.3.30.0090.00519.23
8.3.20.0110.00420.16
8.3.10.0080.00023.64
8.3.00.0090.00317.63
8.2.170.0080.00822.96
8.2.160.0070.00720.52
8.2.150.0040.00424.18
8.2.140.0070.00724.66
8.2.130.0040.00426.16
8.2.120.0040.00422.27
8.2.110.0100.00019.22
8.2.100.0040.00817.78
8.2.90.0090.00019.05
8.2.80.0000.00817.97
8.2.70.0030.00517.50
8.2.60.0050.00318.03
8.2.50.0060.00318.10
8.2.40.0080.00518.01
8.2.30.0000.00718.07
8.2.20.0060.00317.63
8.2.10.0040.00418.04
8.2.00.0040.00417.73
8.1.270.0060.00324.00
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0070.00322.47
8.1.230.0090.00617.70
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.25
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0020.00518.43
8.1.160.0000.00722.01
8.1.150.0000.00718.70
8.1.140.0060.00317.40
8.1.130.0040.00417.74
8.1.120.0050.00217.39
8.1.110.0040.00417.42
8.1.100.0040.00417.41
8.1.90.0000.00717.44
8.1.80.0030.00617.42
8.1.70.0030.00317.35
8.1.60.0000.00817.58
8.1.50.0040.00417.41
8.1.40.0000.00817.39
8.1.30.0000.00917.59
8.1.20.0090.00017.67
8.1.10.0040.00417.48
8.1.00.0040.00417.41
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0000.00718.40
8.0.270.0070.00017.11
8.0.260.0070.00017.17
8.0.250.0040.00416.99
8.0.240.0040.00416.98
8.0.230.0000.00716.94
8.0.220.0070.00016.81
8.0.210.0000.00716.88
8.0.200.0030.00316.92
8.0.190.0000.00816.84
8.0.180.0000.00716.94
8.0.170.0000.00716.91
8.0.160.0040.00417.00
8.0.150.0030.00616.86
8.0.140.0000.00716.84
8.0.130.0050.00013.26
8.0.120.0040.00416.86
8.0.110.0040.00416.95
8.0.100.0000.00716.86
8.0.90.0070.00017.02
8.0.80.0130.00616.87
8.0.70.0040.00416.88
8.0.60.0040.00416.75
8.0.50.0000.00716.99
8.0.30.0140.00916.99
8.0.20.0170.00717.40
8.0.10.0050.00216.88
8.0.00.0100.00816.85
7.4.330.0000.00615.00
7.4.320.0040.00416.76
7.4.300.0050.00216.71
7.4.290.0030.00316.67
7.4.280.0030.00616.86
7.4.270.0030.00316.74
7.4.260.0030.00316.73
7.4.250.0040.00416.59
7.4.240.0050.00216.72
7.4.230.0000.00716.72
7.4.220.0090.00916.77
7.4.210.0120.00316.90
7.4.200.0000.00716.71
7.4.190.0000.00716.69
7.4.160.0130.00316.63
7.4.150.0090.00917.40
7.4.140.0060.01317.86
7.4.130.0100.01016.73
7.4.120.0140.00316.73
7.4.110.0090.00916.75
7.4.100.0090.01216.63
7.4.90.0100.00716.68
7.4.80.0120.00419.39
7.4.70.0070.01116.70
7.4.60.0110.00716.43
7.4.50.0040.00416.72
7.4.40.0040.01216.76
7.4.30.0030.01216.68
7.4.00.0050.01115.02
7.3.330.0070.00013.50
7.3.320.0050.00013.44
7.3.310.0040.00416.48
7.3.300.0000.00716.54
7.3.290.0090.01116.47
7.3.280.0080.00916.51
7.3.270.0060.01217.40
7.3.260.0120.00916.70
7.3.250.0080.00816.57
7.3.240.0120.00616.72
7.3.230.0090.00916.39
7.3.210.0120.00616.82
7.3.200.0190.00419.39
7.3.190.0160.00316.65
7.3.180.0140.00716.77
7.3.170.0050.01116.45
7.3.160.0150.00016.67
7.3.120.0030.01215.13
7.3.110.0070.01115.05
7.3.100.0060.00914.77
7.3.90.0090.00614.58
7.3.80.0030.01314.91
7.3.70.0060.00614.90
7.3.60.0030.00615.03
7.3.50.0060.00314.76
7.3.40.0070.00715.04
7.3.30.0030.00715.05
7.3.20.0060.00316.63
7.3.10.0100.00316.54
7.3.00.0100.00016.44
7.2.330.0110.01516.66
7.2.320.0120.00916.49
7.2.310.0100.01316.68
7.2.300.0090.01316.54
7.2.290.0090.00916.83
7.2.250.0060.01115.20
7.2.240.0030.01015.19
7.2.230.0000.01415.26
7.2.220.0060.00615.40
7.2.210.0030.00715.28
7.2.200.0070.00715.14
7.2.190.0070.00714.98
7.2.180.0000.01115.22
7.2.170.0060.01015.05
7.2.160.0100.00715.30
7.2.150.0070.00717.08
7.2.140.0000.01517.07
7.2.130.0050.00517.13
7.2.120.0120.00316.96
7.2.110.0080.00816.78
7.2.100.0100.00317.12
7.2.90.0030.01217.16
7.2.80.0070.00716.88
7.2.70.0000.01117.11
7.2.60.0090.00617.11
7.2.50.0090.00617.06
7.2.40.0060.00917.02
7.2.30.0000.01116.88
7.2.20.0060.01017.11
7.2.10.0030.00716.86
7.2.00.0060.01018.41
7.1.330.0070.01015.83
7.1.320.0040.00715.89
7.1.310.0000.00815.71
7.1.300.0030.00916.05
7.1.290.0140.00016.18
7.1.280.0110.00315.71
7.1.270.0060.00316.16
7.1.260.0080.00615.94
7.1.250.0040.01115.80
7.1.240.0080.00815.98
7.1.230.0030.00615.88
7.1.220.0110.00416.07
7.1.210.0040.01116.02
7.1.200.0030.00915.99
7.1.190.0090.00315.99
7.1.180.0060.01016.06
7.1.170.0120.00316.04
7.1.160.0090.00616.07
7.1.150.0040.01115.67
7.1.140.0030.01015.77
7.1.130.0060.00316.09
7.1.120.0000.01115.91
7.1.110.0000.00916.11
7.1.100.0060.00617.23
7.1.90.0030.01016.12
7.1.80.0090.00316.09
7.1.70.0030.00716.58
7.1.60.0090.00817.73
7.1.50.0060.01516.50
7.1.40.0030.01015.87
7.1.30.0070.00716.15
7.1.20.0070.00415.63
7.1.10.0040.00715.79
7.1.00.0050.04119.22
7.0.330.0030.00915.44
7.0.320.0050.00815.58
7.0.310.0030.00715.32
7.0.300.0080.00615.54
7.0.290.0120.00415.57
7.0.280.0030.00915.43
7.0.270.0070.00715.69
7.0.260.0040.01415.66
7.0.250.0100.00315.48
7.0.240.0060.00915.75
7.0.230.0070.00715.61
7.0.220.0000.01415.48
7.0.210.0070.00715.54
7.0.200.0060.00616.18
7.0.190.0070.00715.50
7.0.180.0000.01015.63
7.0.170.0030.01015.28
7.0.160.0030.01015.61
7.0.150.0070.00715.50
7.0.140.0020.04418.99
7.0.130.0030.00815.63
7.0.120.0040.00715.57
7.0.110.0030.01015.61
7.0.100.0060.00615.43
7.0.90.0040.01215.68
7.0.80.0040.01215.67
7.0.70.0070.00315.70
7.0.60.0070.04217.70
7.0.50.0060.04516.83
7.0.40.0080.04517.05
7.0.30.0200.04216.79
7.0.20.0180.02416.93
7.0.10.0110.02816.81
7.0.00.0000.03416.92
5.6.400.0140.00014.41
5.6.390.0060.01014.25
5.6.380.0080.00814.64
5.6.370.0070.00314.59
5.6.360.0030.00614.66
5.6.350.0090.00314.52
5.6.340.0040.01114.45
5.6.330.0120.00314.23
5.6.320.0060.00614.66
5.6.310.0040.01514.24
5.6.300.0060.00614.45
5.6.290.0100.00314.49
5.6.280.0020.04217.72
5.6.270.0030.00613.96
5.6.260.0040.00414.27
5.6.250.0060.00914.31
5.6.240.0110.00314.32
5.6.230.0110.00714.39
5.6.220.0080.00314.45
5.6.210.0070.04217.63
5.6.200.0090.03616.28
5.6.190.0060.02417.46
5.6.180.0160.04117.48
5.6.170.0160.04717.46
5.6.160.0030.02817.46
5.6.150.0050.04416.19
5.6.140.0060.02116.52
5.6.130.0100.03016.32
5.6.120.0070.03017.69
5.6.110.0070.04017.60
5.6.100.0030.02317.76
5.6.90.0100.04217.65
5.6.80.0060.02117.47
5.6.70.0090.00614.49
5.6.60.0040.00814.25
5.6.50.0060.00614.57
5.6.40.0080.00414.36
5.6.30.0090.00614.18
5.6.20.0150.00014.43
5.6.10.0150.00314.39
5.6.00.0000.01114.38
5.5.380.0080.00414.52
5.5.370.0040.01114.56
5.5.360.0080.00414.57
5.5.350.0170.04417.50
5.5.340.0020.03816.15
5.5.330.0090.04617.38
5.5.320.0150.02517.38
5.5.310.0170.04217.43
5.5.300.0050.02216.13
5.5.290.0030.02516.02
5.5.280.0040.03517.66
5.5.270.0050.02717.51
5.5.260.0050.04417.58
5.5.250.0070.04017.53
5.5.240.0030.04717.14
5.5.230.0030.00614.00
5.5.220.0000.00914.05
5.5.210.0060.01014.27
5.5.200.0030.00914.43
5.5.190.0110.00014.50
5.5.180.0060.00914.25
5.5.170.0110.00414.28
5.5.160.0040.01114.20
5.5.150.0030.01414.20
5.5.140.0030.00614.31
5.5.130.0070.00714.48
5.5.120.0030.01014.27
5.5.110.0060.00614.23
5.5.100.0060.00314.27
5.5.90.0110.00014.37
5.5.80.0000.01214.21
5.5.70.0070.00714.08
5.5.60.0090.00314.27
5.5.50.0030.01014.25
5.5.40.0070.01014.34
5.5.30.0000.01614.02
5.5.20.0030.00913.95
5.5.10.0110.00014.31
5.5.00.0040.01114.08
5.4.450.0050.03516.04
5.4.440.0080.03016.18
5.4.430.0120.02516.23
5.4.420.0080.03216.18
5.4.410.0100.02716.12
5.4.400.0080.02816.08
5.4.390.0110.03216.02
5.4.380.0080.03115.73
5.4.370.0070.03415.80
5.4.360.0080.02815.72
5.4.350.0090.02815.85
5.4.340.0130.02515.85
5.4.330.0000.00712.89
5.4.320.0080.01812.70
5.4.310.0040.02412.70
5.4.300.0040.02312.70
5.4.290.0040.02412.70
5.4.280.0050.02212.64
5.4.270.0100.02112.65
5.4.260.0110.01912.64
5.4.250.0070.02112.64
5.4.240.0050.02212.64
5.4.230.0050.02412.64
5.4.220.0100.02912.64
5.4.210.0050.03112.64
5.4.200.0050.02712.64
5.4.190.0040.02312.64
5.4.180.0080.01812.64
5.4.170.0040.02712.64
5.4.160.0080.02312.64
5.4.150.0040.02612.64
5.4.140.0050.02512.48
5.4.130.0040.02312.47
5.4.120.0030.02512.45
5.4.110.0040.02012.45
5.4.100.0100.01612.45
5.4.90.0040.02112.45
5.4.80.0050.02212.45
5.4.70.0030.02112.45
5.4.60.0040.02012.45
5.4.50.0090.01912.45
5.4.40.0020.02612.44
5.4.30.0040.02412.44
5.4.20.0040.02312.44
5.4.10.0040.02312.44
5.4.00.0060.02212.18
5.3.290.0110.02512.85
5.3.280.0080.01912.79
5.3.270.0070.02512.80
5.3.260.0050.02312.80
5.3.250.0070.02212.80
5.3.240.0060.02312.80
5.3.230.0030.02712.80
5.3.220.0040.03012.79
5.3.210.0020.02712.79
5.3.200.0030.02212.78
5.3.190.0070.02212.78
5.3.180.0050.02412.78
5.3.170.0080.03212.78
5.3.160.0050.03212.78
5.3.150.0060.03212.78
5.3.140.0060.02212.78
5.3.130.0070.02312.77
5.3.120.0050.02212.77
5.3.110.0020.02612.77
5.3.100.0060.02212.51
5.3.90.0040.02312.50
5.3.80.0060.02112.49
5.3.70.0020.02412.49
5.3.60.0070.02212.49
5.3.50.0020.02412.46
5.3.40.0040.02312.46
5.3.30.0040.02012.44
5.3.20.0020.02412.34
5.3.10.0060.01912.31
5.3.00.0080.02012.31
5.2.170.0030.0359.23
5.2.160.0080.0279.23
5.2.150.0020.0339.23
5.2.140.0050.0329.22
5.2.130.0040.0309.18
5.2.120.0040.0299.19
5.2.110.0050.0299.19
5.2.100.0050.0299.19
5.2.90.0050.0309.19
5.2.80.0070.0289.18
5.2.70.0060.0319.18
5.2.60.0020.0349.14
5.2.50.0040.0329.11
5.2.40.0080.0329.09
5.2.30.0090.0349.06
5.2.20.0100.0259.05
5.2.10.0090.0328.94
5.2.00.0030.0358.80
5.1.60.0090.0348.09
5.1.50.0090.0328.08
5.1.40.0050.0308.07
5.1.30.0090.0258.42
5.1.20.0040.0338.44
5.1.10.0040.0278.16
5.1.00.0080.0218.16
5.0.50.0080.0176.64
5.0.40.0040.0196.50
5.0.30.0050.0306.32
5.0.20.0020.0216.28
5.0.10.0040.0206.26
5.0.00.0020.0336.25
4.4.90.0020.0164.78
4.4.80.0020.0164.75
4.4.70.0020.0184.75
4.4.60.0020.0194.75
4.4.50.0040.0164.77
4.4.40.0020.0274.70
4.4.30.0030.0154.75
4.4.20.0030.0164.84
4.4.10.0020.0174.85
4.4.00.0050.0244.76
4.3.110.0050.0214.67
4.3.100.0020.0184.66
4.3.90.0050.0134.63
4.3.80.0050.0294.58
4.3.70.0050.0204.63
4.3.60.0050.0134.63
4.3.50.0030.0214.63
4.3.40.0030.0264.54
4.3.30.0010.0173.31
4.3.20.0020.0203.29
4.3.10.0030.0153.25
4.3.00.0000.0238.65

preferences:
47.14 ms | 400 KiB | 5 Q