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.60.0110.00716.86
8.3.50.0140.00922.20
8.3.40.0070.00718.80
8.3.30.0140.00019.09
8.3.20.0060.01220.20
8.3.10.0040.00423.66
8.3.00.0070.00317.60
8.2.180.0090.00618.54
8.2.170.0090.00622.96
8.2.160.0170.00320.43
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0020.00522.43
8.2.110.0060.00319.31
8.2.100.0070.00418.09
8.2.90.0040.00419.05
8.2.80.0000.00817.97
8.2.70.0030.00717.75
8.2.60.0000.00917.93
8.2.50.0050.00318.07
8.2.40.0030.00719.88
8.2.30.0050.00318.04
8.2.20.0030.00517.94
8.2.10.0040.00418.14
8.2.00.0000.00717.90
8.1.280.0110.01125.92
8.1.270.0130.00723.86
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00019.26
8.1.230.0090.00318.89
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0030.00617.35
8.1.180.0070.00318.10
8.1.170.0000.00818.47
8.1.160.0000.00722.04
8.1.150.0040.00418.65
8.1.140.0040.00417.53
8.1.130.0000.00717.86
8.1.120.0030.00417.55
8.1.110.0000.00717.53
8.1.100.0000.00817.45
8.1.90.0000.00717.45
8.1.80.0090.00017.46
8.1.70.0060.00317.49
8.1.60.0030.00617.63
8.1.50.0030.00517.67
8.1.40.0030.00617.66
8.1.30.0040.00417.64
8.1.20.0000.00817.81
8.1.10.0040.00417.75
8.1.00.0060.00317.70
8.0.300.0060.00320.73
8.0.290.0030.00517.05
8.0.280.0030.00318.28
8.0.270.0050.00217.21
8.0.260.0030.00517.27
8.0.250.0000.00717.20
8.0.240.0050.00317.08
8.0.230.0000.00717.18
8.0.220.0000.00716.98
8.0.210.0070.00017.14
8.0.200.0000.00717.07
8.0.190.0030.00517.12
8.0.180.0000.00817.09
8.0.170.0090.00016.97
8.0.160.0030.00616.95
8.0.150.0040.00717.01
8.0.140.0000.00816.89
8.0.130.0040.00413.40
8.0.120.0000.00816.92
8.0.110.0000.00717.08
8.0.100.0000.00716.85
8.0.90.0000.00716.92
8.0.80.0120.00917.00
8.0.70.0030.00516.98
8.0.60.0020.00517.00
8.0.50.0040.00417.09
8.0.30.0070.01117.00
8.0.20.0140.00517.46
8.0.10.0040.00416.94
8.0.00.0100.01316.83
7.4.330.0030.00315.00
7.4.320.0030.00616.65
7.4.300.0030.00316.72
7.4.290.0000.00816.81
7.4.280.0080.00016.67
7.4.270.0000.00716.81
7.4.260.0040.00416.77
7.4.250.0000.00716.82
7.4.240.0020.00516.82
7.4.230.0000.00716.88
7.4.220.0090.01016.70
7.4.210.0030.01416.89
7.4.200.0000.00716.53
7.4.190.0000.00716.88
7.4.160.0050.01916.39
7.4.150.0060.01217.40
7.4.140.0160.00717.86
7.4.130.0080.00916.71
7.4.120.0070.01016.65
7.4.110.0130.00416.61
7.4.100.0040.01516.65
7.4.90.0030.01316.61
7.4.80.0130.00919.39
7.4.70.0110.00516.67
7.4.60.0060.01016.54
7.4.50.0080.00016.63
7.4.40.0130.00616.38
7.4.30.0090.00916.60
7.4.00.0060.00615.31
7.3.330.0040.00413.54
7.3.320.0030.00313.48
7.3.310.0050.00316.52
7.3.300.0070.00016.52
7.3.290.0080.01316.52
7.3.280.0080.01316.53
7.3.270.0140.00317.40
7.3.260.0140.00616.81
7.3.250.0110.00616.64
7.3.240.0110.00516.81
7.3.230.0100.00616.51
7.3.210.0100.00716.34
7.3.200.0100.01419.39
7.3.190.0110.01116.88
7.3.180.0140.00316.82
7.3.170.0070.01516.75
7.3.160.0100.00616.50
7.3.120.0060.00915.04
7.3.10.0040.01116.69
7.3.00.0090.00716.75
7.2.330.0120.00616.48
7.2.320.0090.00916.71
7.2.310.0090.00916.41
7.2.300.0000.02416.69
7.2.290.0120.00416.59
7.2.130.0050.01117.13
7.2.120.0050.00816.97
7.2.110.0060.00617.04
7.2.100.0110.00517.09
7.2.90.0080.00516.92
7.2.80.0050.01117.07
7.2.70.0010.01017.09
7.2.60.0090.00816.90
7.2.50.0060.00816.86
7.2.40.0090.00516.91
7.2.30.0030.00817.12
7.2.20.0060.00717.06
7.2.10.0100.00616.76
7.2.00.0040.00917.76
7.1.250.0060.00416.04
7.1.240.0140.00316.11
7.1.230.0070.00715.91
7.1.220.0060.00916.03
7.1.210.0040.01115.73
7.1.200.0030.01216.04
7.1.190.0040.01116.04
7.1.180.0130.00315.69
7.1.170.0120.00316.00
7.1.160.0030.01316.11
7.1.150.0070.01016.11
7.1.140.0090.00615.88
7.1.130.0000.01515.93
7.1.120.0040.01016.07
7.1.110.0070.01016.13
7.1.100.0050.00817.20
7.1.90.0040.01116.01
7.1.80.0060.00615.96
7.1.70.0070.00416.50
7.1.60.0110.00817.83
7.1.50.0100.00716.55
7.1.40.0030.00716.15
7.1.30.0000.01315.98
7.1.20.0100.00715.76
7.1.10.0110.00416.09
7.1.00.0040.04019.13
7.0.330.0170.00015.51
7.0.320.0080.00315.32
7.0.310.0120.00015.59
7.0.300.0070.00415.45
7.0.290.0030.01415.36
7.0.280.0130.00015.64
7.0.270.0030.00915.47
7.0.260.0140.00015.57
7.0.250.0030.00915.63
7.0.240.0090.00915.82
7.0.230.0060.00315.47
7.0.220.0130.00315.72
7.0.210.0030.01215.36
7.0.200.0050.00516.12
7.0.190.0100.00315.38
7.0.180.0120.00315.44
7.0.170.0130.00615.73
7.0.160.0000.01315.38
7.0.150.0090.00615.43
7.0.140.0020.04218.83
7.0.130.0030.01015.50
7.0.120.0060.00615.64
7.0.110.0100.04417.76
7.0.100.0080.04317.70
7.0.90.0070.03717.72
7.0.80.0150.03717.82
7.0.70.0080.03617.70
7.0.60.0100.03717.60
7.0.50.0120.03917.87
7.0.40.0120.03716.67
7.0.30.0100.04216.76
7.0.20.0050.04616.65
7.0.10.0090.04616.78
7.0.00.0080.04316.62
5.6.380.0070.01114.27
5.6.370.0060.00714.56
5.6.360.0030.00714.60
5.6.350.0050.00514.27
5.6.340.0030.00914.54
5.6.330.0000.01214.48
5.6.320.0070.01014.76
5.6.310.0060.00614.87
5.6.300.0110.00014.09
5.6.290.0120.00014.68
5.6.280.0050.03817.74
5.6.270.0000.01014.17
5.6.260.0030.04717.64
5.6.250.0080.02717.57
5.6.240.0050.04617.44
5.6.230.0070.03017.64
5.6.220.0120.03717.45
5.6.210.0050.02317.53
5.6.200.0080.04317.39
5.6.190.0120.03017.59
5.6.180.0090.04217.45
5.6.170.0050.04017.59
5.6.160.0120.03817.60
5.6.150.0060.04217.48
5.6.140.0070.04217.60
5.6.130.0040.03117.54
5.6.120.0070.04517.56
5.6.110.0130.03717.57
5.6.100.0050.04817.44
5.6.90.0070.02817.68
5.6.80.0110.03517.10
5.6.70.0100.02617.33
5.6.60.0070.03717.10
5.6.50.0100.04017.17
5.6.40.0030.04517.14
5.6.30.0080.02517.18
5.6.20.0130.04017.24
5.6.10.0050.04417.04
5.6.00.0150.03517.03
5.5.380.0050.04015.78
5.5.370.0120.03715.86
5.5.360.0120.02415.85
5.5.350.0110.04315.82
5.5.340.0070.04015.94
5.5.330.0070.04015.99
5.5.320.0050.04116.03
5.5.310.0080.04816.03
5.5.300.0110.04015.99
5.5.290.0120.04015.99
5.5.280.0090.03715.98
5.5.270.0050.04316.13
5.5.260.0050.04316.03
5.5.250.0100.04015.95
5.5.240.0050.02515.80
5.5.230.0080.04015.81
5.5.220.0100.03715.68
5.5.210.0000.03315.70
5.5.200.0050.04015.75
5.5.190.0050.04215.69
5.5.180.0050.04215.74
5.5.170.0060.00611.18
5.5.160.0080.04215.75
5.5.150.0030.04315.63
5.5.140.0000.04115.74
5.5.130.0130.03415.91
5.5.120.0080.02715.75
5.5.110.0070.04215.78
5.5.100.0050.04415.58
5.5.90.0110.02615.69
5.5.80.0090.03015.72
5.5.70.0080.03515.63
5.5.60.0050.04215.69
5.5.50.0090.04115.62
5.5.40.0020.04715.72
5.5.30.0100.03715.76
5.5.20.0020.04315.60
5.5.10.0050.04015.60
5.5.00.0050.03815.57
5.4.450.0130.03715.25
5.4.440.0080.04015.37
5.4.430.0070.03515.32
5.4.420.0050.04515.32
5.4.410.0080.03815.19
5.4.400.0070.03815.17
5.4.390.0070.04015.08
5.4.380.0000.03915.13
5.4.370.0090.03715.18
5.4.360.0070.04015.18
5.4.350.0070.03915.23
5.4.340.0060.04315.08
5.4.330.0030.00711.20
5.4.320.0030.04615.11
5.4.310.0120.03315.18
5.4.300.0080.03215.09
5.4.290.0050.02415.25
5.4.280.0050.03315.19
5.4.270.0030.04515.09
5.4.260.0050.04315.08
5.4.250.0080.03515.10
5.4.240.0100.03515.09
5.4.230.0100.03915.17
5.4.220.0060.04215.17
5.4.210.0070.04015.10
5.4.200.0080.03815.24
5.4.190.0040.03915.19
5.4.180.0090.03415.23
5.4.170.0070.03515.17
5.4.160.0080.03815.18
5.4.150.0090.04115.09
5.4.140.0100.03713.86
5.4.130.0060.03613.78
5.4.120.0070.03513.76
5.4.110.0080.04213.79
5.4.100.0090.03513.80
5.4.90.0060.03613.79
5.4.80.0030.04213.86
5.4.70.0060.03913.94
5.4.60.0070.03713.90
5.4.50.0070.03713.71
5.4.40.0070.03813.73
5.4.30.0090.04213.87
5.4.20.0050.03713.82
5.4.10.0060.03913.75
5.4.00.0060.02813.54
5.3.290.0090.03812.90
5.3.280.0030.03912.96
5.3.270.0080.03312.91
5.3.260.0070.04212.89
5.3.250.0060.04012.96
5.3.240.0070.02212.96
5.3.230.0050.03012.88
5.3.220.0050.04212.88
5.3.210.0070.03912.85
5.3.200.0060.03312.87
5.3.190.0020.04212.94
5.3.180.0070.03712.92
5.3.170.0080.03512.80
5.3.160.0090.03812.87
5.3.150.0110.03612.86
5.3.140.0030.04312.86
5.3.130.0030.04512.87
5.3.120.0050.04312.93
5.3.110.0050.02612.87
5.3.100.0050.04012.62
5.3.90.0030.03912.71
5.3.80.0030.04012.67
5.3.70.0070.03412.61
5.3.60.0080.04012.66
5.3.50.0130.03112.56
5.3.40.0080.03512.55
5.3.30.0080.03312.66
5.3.20.0080.03712.42
5.3.10.0070.02712.40
5.3.00.0060.03812.34
5.2.170.0050.03311.52
5.2.160.0030.03311.52
5.2.150.0070.02811.52
5.2.140.0090.03011.52
5.2.130.0050.01511.52
5.2.120.0050.03311.52
5.2.110.0050.03311.52
5.2.100.0040.03211.52
5.2.90.0020.02911.52
5.2.80.0030.03511.52
5.2.70.0140.01311.52
5.2.60.0060.02811.52
5.2.50.0030.03011.52
5.2.40.0060.03011.52
5.2.30.0070.02811.52
5.2.20.0040.03311.52
5.2.10.0050.02011.52
5.2.00.0020.02111.52
5.1.60.0050.01711.52
5.1.50.0030.01711.52
5.1.40.0070.01011.52
5.1.30.0030.01511.52
5.1.20.0050.01311.52
5.1.10.0000.01511.52
5.1.00.0000.02111.52
5.0.50.0050.01011.52
5.0.40.0040.00811.52
5.0.30.0030.01511.52
5.0.20.0000.01411.52
5.0.10.0000.01211.52
5.0.00.0020.01911.52
4.4.90.0030.02111.52
4.4.80.0000.01711.52
4.4.70.0040.01811.52
4.4.60.0020.01911.52
4.4.50.0010.01611.52
4.4.40.0030.01511.52
4.4.30.0050.01511.52
4.4.20.0020.01711.52
4.4.10.0030.00811.52
4.4.00.0040.01211.52
4.3.110.0030.00911.52
4.3.100.0000.01111.52
4.3.90.0000.01111.52
4.3.80.0010.01511.52
4.3.70.0020.01011.52
4.3.60.0030.00811.52
4.3.50.0000.01111.52
4.3.40.0010.01311.52
4.3.30.0000.01211.52
4.3.20.0030.00811.52
4.3.10.0020.00911.52
4.3.00.0030.00711.52

preferences:
45.51 ms | 401 KiB | 5 Q