3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('PREG_CLASS_SEARCH_EXCLUDE', '\x{0}-\x{2c}\x{2e}-\x{2f}\x{3a}-\x{40}\x{5b}-\x{60}\x{7b}-\x{bf}\x{d7}\x{f7}\x{2b0}-'. '\x{385}\x{387}\x{3f6}\x{482}-\x{489}\x{559}-\x{55f}\x{589}-\x{5c7}\x{5f3}-'. '\x{61f}\x{640}\x{64b}-\x{65e}\x{66a}-\x{66d}\x{670}\x{6d4}\x{6d6}-\x{6ed}'. '\x{6fd}\x{6fe}\x{700}-\x{70f}\x{711}\x{730}-\x{74a}\x{7a6}-\x{7b0}\x{901}-'. '\x{903}\x{93c}\x{93e}-\x{94d}\x{951}-\x{954}\x{962}-\x{965}\x{970}\x{981}-'. '\x{983}\x{9bc}\x{9be}-\x{9cd}\x{9d7}\x{9e2}\x{9e3}\x{9f2}-\x{a03}\x{a3c}-'. '\x{a4d}\x{a70}\x{a71}\x{a81}-\x{a83}\x{abc}\x{abe}-\x{acd}\x{ae2}\x{ae3}'. '\x{af1}-\x{b03}\x{b3c}\x{b3e}-\x{b57}\x{b70}\x{b82}\x{bbe}-\x{bd7}\x{bf0}-'. '\x{c03}\x{c3e}-\x{c56}\x{c82}\x{c83}\x{cbc}\x{cbe}-\x{cd6}\x{d02}\x{d03}'. '\x{d3e}-\x{d57}\x{d82}\x{d83}\x{dca}-\x{df4}\x{e31}\x{e34}-\x{e3f}\x{e46}-'. '\x{e4f}\x{e5a}\x{e5b}\x{eb1}\x{eb4}-\x{ebc}\x{ec6}-\x{ecd}\x{f01}-\x{f1f}'. '\x{f2a}-\x{f3f}\x{f71}-\x{f87}\x{f90}-\x{fd1}\x{102c}-\x{1039}\x{104a}-'. '\x{104f}\x{1056}-\x{1059}\x{10fb}\x{10fc}\x{135f}-\x{137c}\x{1390}-\x{1399}'. '\x{166d}\x{166e}\x{1680}\x{169b}\x{169c}\x{16eb}-\x{16f0}\x{1712}-\x{1714}'. '\x{1732}-\x{1736}\x{1752}\x{1753}\x{1772}\x{1773}\x{17b4}-\x{17db}\x{17dd}'. '\x{17f0}-\x{180e}\x{1843}\x{18a9}\x{1920}-\x{1945}\x{19b0}-\x{19c0}\x{19c8}'. '\x{19c9}\x{19de}-\x{19ff}\x{1a17}-\x{1a1f}\x{1d2c}-\x{1d61}\x{1d78}\x{1d9b}-'. '\x{1dc3}\x{1fbd}\x{1fbf}-\x{1fc1}\x{1fcd}-\x{1fcf}\x{1fdd}-\x{1fdf}\x{1fed}-'. '\x{1fef}\x{1ffd}-\x{2070}\x{2074}-\x{207e}\x{2080}-\x{2101}\x{2103}-\x{2106}'. '\x{2108}\x{2109}\x{2114}\x{2116}-\x{2118}\x{211e}-\x{2123}\x{2125}\x{2127}'. '\x{2129}\x{212e}\x{2132}\x{213a}\x{213b}\x{2140}-\x{2144}\x{214a}-\x{2b13}'. '\x{2ce5}-\x{2cff}\x{2d6f}\x{2e00}-\x{3005}\x{3007}-\x{303b}\x{303d}-\x{303f}'. '\x{3099}-\x{309e}\x{30a0}\x{30fb}\x{30fd}\x{30fe}\x{3190}-\x{319f}\x{31c0}-'. '\x{31cf}\x{3200}-\x{33ff}\x{4dc0}-\x{4dff}\x{a015}\x{a490}-\x{a716}\x{a802}'. '\x{a806}\x{a80b}\x{a823}-\x{a82b}'. //\x{d800}-\x{f8ff} '\x{fb1e}\x{fb29}\x{fd3e}'. '\x{fd3f}\x{fdfc}-\x{fe6b}\x{feff}-\x{ff0f}\x{ff1a}-\x{ff20}\x{ff3b}-\x{ff40}'. '\x{ff5b}-\x{ff65}\x{ff70}\x{ff9e}\x{ff9f}\x{ffe0}-\x{fffd}'); $string = 'abc'; $string = preg_replace('/['.PREG_CLASS_SEARCH_EXCLUDE.']+/u', ' ', $string); echo $string; ?>

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.0040.01118.40
8.3.50.0120.01222.05
8.3.40.0120.00618.74
8.3.30.0090.00619.00
8.3.20.0050.00318.85
8.3.10.0000.00820.60
8.3.00.0080.00023.53
8.2.180.0180.00316.50
8.2.170.0130.00322.96
8.2.160.0060.00920.51
8.2.150.0040.01124.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0080.00019.36
8.2.110.0060.00322.19
8.2.100.0060.00617.97
8.2.90.0080.00019.35
8.2.80.0040.00418.16
8.2.70.0040.00417.88
8.2.60.0040.00418.16
8.2.50.0050.00318.07
8.2.40.0030.00718.34
8.2.30.0050.00319.75
8.2.20.0050.00317.96
8.2.10.0000.00818.05
8.2.00.0050.00317.93
8.1.280.0060.00925.92
8.1.270.0040.00423.99
8.1.260.0110.00726.35
8.1.250.0040.00428.09
8.1.240.0030.00620.81
8.1.230.0110.00021.02
8.1.220.0040.00418.77
8.1.210.0090.00019.09
8.1.200.0060.00317.48
8.1.190.0000.00817.66
8.1.180.0030.00518.10
8.1.170.0030.00618.96
8.1.160.0040.00419.00
8.1.150.0050.00318.80
8.1.140.0040.00417.73
8.1.130.0070.00017.98
8.1.120.0000.00717.67
8.1.110.0000.00817.67
8.1.100.0040.00417.71
8.1.90.0040.00417.62
8.1.80.0000.00717.66
8.1.70.0040.00417.51
8.1.60.0000.00917.82
8.1.50.0000.00717.71
8.1.40.0030.00517.82
8.1.30.0030.00617.79
8.1.20.0040.00417.92
8.1.10.0040.00417.63
8.1.00.0000.00817.73
8.0.300.0000.00720.10
8.0.290.0040.00417.13
8.0.280.0030.00518.55
8.0.270.0030.00517.40
8.0.260.0070.00017.14
8.0.250.0000.01017.16
8.0.240.0040.00417.10
8.0.230.0000.00717.25
8.0.220.0040.00417.17
8.0.210.0050.00217.07
8.0.200.0000.00717.32
8.0.190.0070.00017.25
8.0.180.0000.00817.23
8.0.170.0040.00417.11
8.0.160.0050.00317.19
8.0.150.0040.00417.05
8.0.140.0070.00017.21
8.0.130.0060.00313.57
8.0.120.0080.00017.16
8.0.110.0000.00717.07
8.0.100.0040.00417.08
8.0.90.0040.00417.09
8.0.80.0120.00817.12
8.0.70.0040.00417.17
8.0.60.0070.00017.23
8.0.50.0030.00517.16
8.0.30.0110.01217.30
8.0.20.0160.00617.40
8.0.10.0000.00817.14
8.0.00.0030.01916.97
7.4.330.0030.00315.07
7.4.320.0070.00016.79
7.4.300.0070.00016.95
7.4.290.0040.00416.74
7.4.280.0030.00616.80
7.4.270.0030.00316.91
7.4.260.0060.00013.57
7.4.250.0050.00316.77
7.4.240.0040.00416.79
7.4.230.0030.00316.98
7.4.220.0080.01116.75
7.4.210.0060.00916.89
7.4.200.0060.00316.83
7.4.190.0030.00316.68
7.4.160.0090.00916.83
7.4.150.0120.00617.40
7.4.140.0100.01417.86
7.4.130.0060.01116.96
7.4.120.0130.00716.79
7.4.110.0160.00616.68
7.4.100.0120.00616.93
7.4.90.0120.01216.93
7.4.80.0050.01019.37
7.4.70.0100.00716.75
7.4.60.0140.00816.77
7.4.50.0030.00616.48
7.4.40.0000.01622.27
7.4.30.0060.01316.71
7.4.10.0030.01415.41
7.4.00.0050.01115.10
7.3.330.0000.00513.31
7.3.320.0050.00013.48
7.3.310.0030.00316.71
7.3.300.0050.00216.56
7.3.290.0110.00316.58
7.3.280.0100.00816.60
7.3.270.0070.01117.40
7.3.260.0090.00918.24
7.3.250.0050.01616.88
7.3.240.0090.00916.62
7.3.230.0080.00916.86
7.3.210.0100.00716.79
7.3.200.0100.00719.39
7.3.190.0130.00316.46
7.3.180.0100.00616.82
7.3.170.0070.01016.91
7.3.160.0030.01316.86
7.3.130.0030.01014.85
7.3.120.0040.01315.28
7.3.110.0030.01614.97
7.3.100.0070.00714.82
7.3.90.0070.00415.02
7.3.80.0060.00915.28
7.3.70.0090.00615.23
7.3.60.0060.00915.08
7.3.50.0060.00314.95
7.3.40.0030.00814.71
7.3.30.0040.00815.21
7.3.20.0060.00316.93
7.3.10.0050.00916.82
7.3.00.0070.00416.69
7.2.330.0030.01616.99
7.2.320.0100.01016.90
7.2.310.0130.00616.91
7.2.300.0100.00716.93
7.2.290.0070.01017.04
7.2.260.0040.01415.45
7.2.250.0030.01615.27
7.2.240.0030.01015.43
7.2.230.0070.00715.13
7.2.220.0100.00615.13
7.2.210.0090.00615.36
7.2.200.0080.00515.34
7.2.190.0000.01615.32
7.2.180.0090.00615.37
7.2.170.0030.01015.39
7.2.160.0090.00315.47
7.2.150.0110.00717.11
7.2.140.0080.00417.21
7.2.130.0090.00717.00
7.2.120.0100.00516.86
7.2.110.0040.00717.04
7.2.100.0030.00917.00
7.2.90.0100.00817.08
7.2.80.0040.01117.12
7.2.70.0060.00816.82
7.2.60.0090.00517.14
7.2.50.0120.00417.10
7.2.40.0050.00616.99
7.2.30.0000.01516.97
7.2.20.0050.00716.86
7.2.10.0070.00717.11
7.2.00.0050.00917.91
7.1.330.0070.00716.08
7.1.320.0150.00015.93
7.1.310.0120.00316.17
7.1.300.0040.01115.86
7.1.290.0030.00615.81
7.1.280.0100.00315.69
7.1.270.0100.00316.03
7.1.260.0100.00016.18
7.1.250.0110.00415.84
7.1.240.0000.01316.14
7.1.230.0000.00915.99
7.1.220.0060.00615.96
7.1.210.0070.00315.80
7.1.200.0050.00915.90
7.1.190.0080.00016.12
7.1.180.0060.00616.13
7.1.170.0060.00615.91
7.1.160.0130.00016.13
7.1.150.0030.01315.83
7.1.140.0060.00615.95
7.1.130.0000.01115.86
7.1.120.0030.00915.79
7.1.110.0060.00316.06
7.1.100.0050.00817.29
7.1.90.0040.01116.06
7.1.80.0070.00716.13
7.1.70.0020.00916.37
7.1.60.0050.01217.55
7.1.50.0090.00616.61
7.1.40.0000.01315.99
7.1.30.0000.01415.86
7.1.20.0000.01115.95
7.1.10.0070.00716.00
7.1.00.0000.04619.18
7.0.330.0070.00715.64
7.0.320.0040.00915.39
7.0.310.0080.00015.61
7.0.300.0030.00615.63
7.0.290.0120.00315.56
7.0.280.0060.00615.76
7.0.270.0060.01015.46
7.0.260.0070.00715.61
7.0.250.0030.00515.25
7.0.240.0070.00715.41
7.0.230.0000.00815.53
7.0.220.0040.00415.55
7.0.210.0070.00715.53
7.0.200.0060.00615.93
7.0.190.0050.00515.82
7.0.180.0080.00815.38
7.0.170.0030.01515.46
7.0.160.0070.01015.70
7.0.150.0030.00915.59
7.0.140.0080.03718.79
7.0.130.0030.00715.70
7.0.120.0030.00615.69
7.0.110.0080.00615.80
7.0.100.0040.01115.76
7.0.90.0030.00615.50
7.0.80.0040.01215.80
7.0.70.0000.01115.70
7.0.60.0050.04317.88
7.0.50.0060.03116.59
7.0.40.0080.04315.64
7.0.30.0030.03715.68
7.0.20.0050.03715.73
7.0.10.0080.04015.76
7.0.00.0140.03815.75
5.6.400.0000.00914.54
5.6.390.0030.01314.30
5.6.380.0000.01414.42
5.6.370.0000.01714.54
5.6.360.0030.00714.13
5.6.350.0040.01114.67
5.6.340.0130.00313.93
5.6.330.0000.01614.25
5.6.320.0030.00514.78
5.6.310.0040.01114.84
5.6.300.0040.00714.23
5.6.290.0140.00314.45
5.6.280.0080.04017.66
5.6.270.0080.00614.31
5.6.260.0040.00714.46
5.6.250.0070.01014.63
5.6.240.0030.01014.51
5.6.230.0060.00614.70
5.6.220.0070.00714.75
5.6.210.0070.02917.51
5.6.200.0030.04516.23
5.6.190.0070.04316.37
5.6.180.0050.03516.32
5.6.170.0080.03816.24
5.6.160.0130.03016.23
5.6.150.0040.03716.27
5.6.140.0070.04216.17
5.6.130.0120.03816.26
5.6.120.0050.04716.21
5.6.110.0100.04316.30
5.6.100.0090.02816.30
5.6.90.0060.04416.09
5.6.80.0080.03015.73
5.6.70.0030.02715.90
5.6.60.0070.03015.80
5.6.50.0030.03015.84
5.6.40.0090.04215.80
5.6.30.0030.02915.85
5.6.20.0060.04115.90
5.6.10.0120.03716.00
5.6.00.0080.03315.87
5.5.380.0090.00614.06
5.5.370.0030.00914.25
5.5.360.0040.01114.51
5.5.350.0110.02217.29
5.5.340.0050.04616.15
5.5.330.0050.02816.27
5.5.320.0100.03716.08
5.5.310.0090.02816.09
5.5.300.0030.04916.00
5.5.290.0050.04316.05
5.5.280.0100.03516.15
5.5.270.0040.04416.22
5.5.260.0070.03716.28
5.5.250.0070.04516.00
5.5.240.0080.04315.75
5.5.230.0090.03515.88
5.5.220.0080.02115.84
5.5.210.0070.02815.65
5.5.200.0070.04515.80
5.5.190.0100.04015.70
5.5.180.0030.02715.80
5.5.170.0000.01114.54
5.5.160.0050.03515.81
5.5.150.0030.04315.85
5.5.140.0090.03015.89
5.5.130.0070.03215.82
5.5.120.0050.03515.85
5.5.110.0100.04215.79
5.5.100.0110.03615.80
5.5.90.0130.02515.55
5.5.80.0110.02815.79
5.5.70.0030.04215.82
5.5.60.0090.02715.68
5.5.50.0080.04315.60
5.5.40.0060.02215.57
5.5.30.0080.03815.63
5.5.20.0030.04315.50
5.5.10.0010.02815.75
5.5.00.0080.01815.75
5.4.450.0050.03215.19
5.4.440.0080.04015.13
5.4.430.0020.04415.04
5.4.420.0030.02915.34
5.4.410.0050.04215.29
5.4.400.0100.03815.00
5.4.390.0090.03815.01
5.4.380.0020.04514.93
5.4.370.0010.02515.09
5.4.360.0080.03515.04
5.4.350.0070.04115.02
5.4.340.0070.02014.86
5.4.330.0000.00910.83
5.4.320.0030.02515.11
5.4.310.0090.03515.05
5.4.300.0050.03814.98
5.4.290.0020.04114.98
5.4.280.0020.02915.03
5.4.270.0030.03314.84
5.4.260.0070.04015.04
5.4.250.0060.03315.01
5.4.240.0030.04015.06
5.4.230.0050.04314.95
5.4.220.0060.04215.01
5.4.210.0050.04215.02
5.4.200.0040.03015.04
5.4.190.0040.02414.96
5.4.180.0050.04315.05
5.4.170.0050.03815.16
5.4.160.0080.02514.95
5.4.150.0050.03714.95
5.4.140.0050.03613.70
5.4.130.0050.04013.67
5.4.120.0030.03813.69
5.4.110.0140.03213.62
5.4.100.0050.04213.69
5.4.90.0050.03713.71
5.4.80.0040.03513.44
5.4.70.0070.02613.58
5.4.60.0050.04013.75
5.4.50.0120.02813.57
5.4.40.0100.03913.70
5.4.30.0050.02113.56
5.4.20.0070.03813.57
5.4.10.0020.03513.63
5.4.00.0090.03713.38
5.3.290.0030.04612.62
5.3.280.0080.02612.52
5.3.270.0070.03512.47
5.3.260.0070.04012.58
5.3.250.0030.02612.41
5.3.240.0080.03712.40
5.3.230.0070.02912.46
5.3.220.0060.03512.37
5.3.210.0060.04112.53
5.3.200.0030.03712.35
5.3.190.0090.04012.54
5.3.180.0070.04012.46
5.3.170.0040.04112.37
5.3.160.0060.02912.37
5.3.150.0030.04512.49
5.3.140.0090.04012.45
5.3.130.0020.02512.37
5.3.120.0050.04012.50
5.3.110.0130.02712.47
5.3.100.0020.02912.12
5.3.90.0030.04012.24
5.3.80.0070.03712.03
5.3.70.0100.03912.16
5.3.60.0050.03812.20
5.3.50.0080.03812.14
5.3.40.0070.02012.08
5.3.30.0070.03912.10
5.3.20.0040.02412.01
5.3.10.0030.02611.89
5.3.00.0070.02111.94
5.2.170.0070.03711.15
5.2.160.0070.05711.07
5.2.150.0000.04011.13
5.2.140.0030.03711.14
5.2.130.0070.05011.27
5.2.120.0030.03311.05
5.2.110.0030.06011.14
5.2.100.0000.03011.06
5.2.90.0070.03710.94
5.2.80.0070.06311.10
5.2.70.0170.02311.04
5.2.60.0070.06010.89
5.2.50.0070.04311.03
5.2.40.0000.04010.84
5.2.30.0130.03310.98
5.2.20.0130.05310.98
5.2.10.0030.04310.77
5.2.00.0100.05310.70
5.1.60.0030.0509.93
5.1.50.0030.05310.00
5.1.40.0030.0539.89
5.1.30.0070.05310.31
5.1.20.0130.03710.25
5.1.10.0030.03010.11
5.1.00.0000.02710.00
5.0.50.0000.0508.57
5.0.40.0000.0338.38
5.0.30.0030.0608.30
5.0.20.0100.0308.40
5.0.10.0030.0438.16
5.0.00.0070.0338.25
4.4.90.0030.0307.57
4.4.80.0030.0337.57
4.4.70.0000.0337.57
4.4.60.0000.0177.57
4.4.50.0100.0107.57
4.4.40.0030.0577.57
4.4.30.0070.0307.57
4.4.20.0070.0177.57
4.4.10.0000.0407.57
4.4.00.0000.0577.57
4.3.110.0030.0237.57
4.3.100.0000.0377.57
4.3.90.0000.0277.57
4.3.80.0030.0577.57
4.3.70.0000.0337.57
4.3.60.0000.0337.57
4.3.50.0030.0337.57
4.3.40.0030.0537.57
4.3.30.0030.0337.57
4.3.20.0030.0277.57
4.3.10.0030.0337.57
4.3.00.0000.0377.57

preferences:
75.07 ms | 401 KiB | 5 Q