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.0120.00316.88
8.3.50.0200.00916.54
8.3.40.0120.00618.97
8.3.30.0110.00318.68
8.3.20.0090.00018.61
8.3.10.0080.00020.71
8.3.00.0040.00819.38
8.2.180.0090.00618.17
8.2.170.0140.00019.08
8.2.160.0150.00422.96
8.2.150.0060.00325.66
8.2.140.0030.00524.66
8.2.130.0080.00026.16
8.2.120.0080.00019.61
8.2.110.0090.00922.27
8.2.100.0110.00020.48
8.2.90.0040.00418.46
8.2.80.0000.00917.97
8.2.70.0040.00417.80
8.2.60.0000.01018.04
8.2.50.0040.00418.10
8.2.40.0110.00418.04
8.2.30.0050.00218.02
8.2.20.0040.00417.80
8.2.10.0040.00417.89
8.2.00.0040.00417.87
8.1.280.0070.00725.92
8.1.270.0060.00324.66
8.1.260.0050.00326.35
8.1.250.0030.00628.09
8.1.240.0030.00624.02
8.1.230.0110.00019.16
8.1.220.0000.00817.91
8.1.210.0060.00318.77
8.1.200.0060.00317.61
8.1.190.0060.00317.48
8.1.180.0030.00518.10
8.1.170.0000.00719.08
8.1.160.0070.00018.92
8.1.150.0040.00418.73
8.1.140.0020.00517.52
8.1.130.0030.00317.78
8.1.120.0040.00417.37
8.1.110.0020.00517.52
8.1.100.0000.00717.54
8.1.90.0040.00417.43
8.1.80.0030.00517.42
8.1.70.0070.00017.45
8.1.60.0030.00617.67
8.1.50.0040.00417.52
8.1.40.0000.00717.67
8.1.30.0000.00817.73
8.1.20.0000.00817.79
8.1.10.0000.00717.50
8.1.00.0060.00617.48
8.0.300.0040.00419.78
8.0.290.0000.00716.88
8.0.280.0000.00718.51
8.0.270.0000.00717.32
8.0.260.0000.00716.85
8.0.250.0000.00816.95
8.0.240.0050.00317.12
8.0.230.0070.00017.08
8.0.220.0000.01016.93
8.0.210.0030.00316.99
8.0.200.0030.00317.05
8.0.190.0000.00717.11
8.0.180.0070.00017.02
8.0.170.0000.00816.96
8.0.160.0070.00017.11
8.0.150.0040.00417.07
8.0.140.0060.00217.02
8.0.130.0030.00313.50
8.0.120.0000.00716.90
8.0.110.0030.00516.96
8.0.100.0020.00516.91
8.0.90.0000.00816.87
8.0.80.0120.01217.07
8.0.70.0070.00017.08
8.0.60.0070.00017.07
8.0.50.0050.00216.93
8.0.30.0050.01317.40
8.0.20.0110.01116.95
8.0.10.0000.00816.96
8.0.00.0130.00916.98
7.4.330.0030.00313.31
7.4.320.0030.00316.96
7.4.300.0000.00616.70
7.4.290.0070.00016.88
7.4.280.0040.00416.78
7.4.270.0040.00416.73
7.4.260.0050.00013.56
7.4.250.0080.00016.65
7.4.240.0070.00016.80
7.4.230.0000.00716.84
7.4.220.0110.00716.78
7.4.210.0070.00916.87
7.4.200.0040.00416.95
7.4.190.0030.00516.97
7.4.160.0060.00916.98
7.4.150.0070.01016.68
7.4.140.0090.01416.76
7.4.130.0070.01316.88
7.4.120.0120.00516.77
7.4.110.0220.00316.73
7.4.100.0110.00616.59
7.4.90.0030.01616.77
7.4.80.0090.00919.39
7.4.70.0030.01316.82
7.4.60.0080.01316.91
7.4.50.0120.00016.83
7.4.40.0000.01516.73
7.4.30.0120.00616.87
7.4.00.0070.01015.24
7.3.330.0030.00313.48
7.3.320.0000.00613.29
7.3.310.0030.00316.56
7.3.300.0070.00016.56
7.3.290.0030.01916.57
7.3.280.0060.01216.54
7.3.270.0200.00316.79
7.3.260.0070.01116.80
7.3.250.0090.01016.84
7.3.240.0100.01016.48
7.3.230.0090.00916.57
7.3.210.0120.00316.59
7.3.200.0130.01016.71
7.3.190.0070.01016.53
7.3.180.0090.00916.83
7.3.170.0070.01016.79
7.3.160.0070.01116.80
7.3.120.0040.01115.16
7.3.10.0040.00916.62
7.3.00.0110.00416.80
7.2.330.0050.01416.55
7.2.320.0150.00616.93
7.2.310.0300.02316.69
7.2.300.0090.00916.86
7.2.290.0130.01016.83
7.2.130.0050.01016.74
7.2.120.0070.01116.77
7.2.110.0080.00616.61
7.2.100.0040.01217.00
7.2.90.0040.01316.93
7.2.80.0100.00716.87
7.2.70.0030.01416.75
7.2.60.0060.00816.93
7.2.50.0100.00716.87
7.2.40.0080.01017.04
7.2.30.0080.00816.95
7.2.20.0080.00817.02
7.2.10.0070.00916.83
7.2.00.0060.01017.88
7.1.250.0090.01015.76
7.1.240.0030.00715.68
7.1.230.0040.01115.90
7.1.220.0030.00915.88
7.1.210.0070.00715.82
7.1.200.0060.00615.89
7.1.190.0060.00615.93
7.1.180.0070.00715.77
7.1.170.0060.00315.79
7.1.160.0030.01015.70
7.1.150.0030.01015.54
7.1.140.0060.00615.59
7.1.130.0000.00916.02
7.1.120.0050.00516.01
7.1.110.0090.00015.68
7.1.100.0060.01016.82
7.1.90.0090.00615.66
7.1.80.0070.00715.75
7.1.70.0020.00616.59
7.1.60.0070.01317.46
7.1.50.0080.01016.13
7.1.40.0100.00315.69
7.1.30.0050.00515.80
7.1.20.0100.00315.85
7.1.10.0070.00715.84
7.1.00.0050.04119.17
7.0.330.0060.00615.24
7.0.320.0060.00915.44
7.0.310.0030.01215.47
7.0.300.0110.00415.47
7.0.290.0000.01215.48
7.0.280.0060.00615.52
7.0.270.0060.00615.04
7.0.260.0090.00315.15
7.0.250.0030.00615.38
7.0.240.0030.00715.50
7.0.230.0060.00615.46
7.0.220.0030.01015.40
7.0.210.0060.00615.64
7.0.200.0060.00316.30
7.0.190.0030.01015.52
7.0.180.0060.00915.26
7.0.170.0070.01015.44
7.0.160.0040.01115.53
7.0.150.0090.00315.46
7.0.140.0050.03818.90
7.0.130.0140.00015.45
7.0.120.0080.03518.85
7.0.110.0030.00715.55
7.0.100.0000.01015.43
7.0.90.0110.00415.35
7.0.80.0080.00415.45
7.0.70.0050.00515.45
7.0.60.0090.03417.61
7.0.50.0070.02716.74
7.0.40.0020.02916.91
7.0.30.0180.02816.86
7.0.20.0280.03816.69
7.0.10.0070.02516.73
7.0.00.0050.03216.89
5.6.380.0090.00614.63
5.6.370.0100.00614.19
5.6.360.0080.00814.60
5.6.350.0040.01114.55
5.6.340.0070.00714.38
5.6.330.0100.00314.46
5.6.320.0060.00614.05
5.6.310.0070.00714.24
5.6.300.0110.00314.51
5.6.290.0040.01114.36
5.6.280.0060.03817.77
5.6.270.0000.01314.43
5.6.260.0000.01014.31
5.6.250.0070.00714.37
5.6.240.0060.00314.35
5.6.230.0040.00414.51
5.6.220.0030.00614.38
5.6.210.0120.03817.56
5.6.200.0030.03416.35
5.6.190.0080.04217.49
5.6.180.0160.02017.42
5.6.170.0160.02117.32
5.6.160.0070.04717.33
5.6.150.0030.04616.40
5.6.140.0030.02516.39
5.6.130.0060.04216.27
5.6.120.0060.04117.85
5.6.110.0060.04517.66
5.6.100.0060.04717.78
5.6.90.0060.04217.74
5.6.80.0100.03817.34
5.6.70.0030.00914.41
5.6.60.0030.00614.05
5.6.50.0000.01014.30
5.6.40.0040.00714.40
5.6.30.0100.00314.36
5.6.20.0070.00714.37
5.6.10.0030.01213.93
5.6.00.0100.00314.13
5.5.380.0030.00311.16
5.5.370.0050.00511.40
5.5.360.0000.00811.06
5.5.350.0050.03915.81
5.5.340.0130.02314.54
5.5.330.0050.03015.64
5.5.320.2040.02215.69
5.5.310.0130.04115.68
5.5.300.0040.04114.57
5.5.290.0020.03414.46
5.5.280.0050.02016.03
5.5.270.0100.02815.95
5.5.260.0050.04516.02
5.5.250.0060.04115.93
5.5.240.0140.04015.57
5.5.230.0000.01111.11
5.5.220.0030.00711.06
5.5.210.0030.00611.13
5.5.200.0000.01011.12
5.5.190.0000.01211.20
5.5.180.0040.00411.06
5.5.170.0070.00511.06
5.5.160.0030.00611.06
5.5.150.0060.00011.06
5.5.140.0060.00311.06
5.5.130.0000.00611.19
5.5.120.0060.00011.06
5.5.110.0030.00911.06
5.5.100.0000.01011.09
5.5.90.0030.00911.14
5.5.80.0090.00311.06
5.5.70.0030.00311.06
5.5.60.0000.00711.06
5.5.50.0030.00711.09
5.5.40.0030.00511.06
5.5.30.0030.00611.06
5.5.20.0030.00311.08
5.5.10.0060.00311.08
5.5.00.0040.00811.06
5.4.450.0020.03015.27
5.4.440.0030.03715.16
5.4.430.0110.03315.09
5.4.420.0020.04515.09
5.4.410.0080.03715.13
5.4.400.0020.04715.08
5.4.390.0030.04614.99
5.4.380.0050.03814.93
5.4.370.0020.02814.93
5.4.360.0050.04515.03
5.4.350.0070.02214.92
5.4.340.0050.02814.99
5.4.330.0000.00811.06
5.4.320.0050.04015.12
5.4.310.0020.04814.99
5.4.300.0050.02515.07
5.4.290.0070.02814.92
5.4.280.0060.02614.99
5.4.270.0090.03615.15
5.4.260.0140.02215.10
5.4.250.0030.02515.07
5.4.240.0060.04215.07
5.4.230.0080.02515.05
5.4.220.0070.04115.12
5.4.210.0020.04315.17
5.4.200.0060.04014.99
5.4.190.0030.02615.13
5.4.180.0040.02714.93
5.4.170.0050.04315.11
5.4.160.0050.04015.12
5.4.150.0020.03015.09
5.4.140.0060.04013.70
5.4.130.0000.03013.65
5.4.120.0010.02613.75
5.4.110.0050.02513.77
5.4.100.0060.03813.64
5.4.90.0000.03713.73
5.4.80.0050.03713.65
5.4.70.0080.03813.64
5.4.60.0050.04013.70
5.4.50.0100.03713.67
5.4.40.0020.02113.71
5.4.30.0050.02213.74
5.4.20.0040.02213.75
5.4.10.0080.03313.73
5.4.00.0060.03013.42
5.3.290.0030.04812.84
5.3.280.0020.02812.82
5.3.270.0020.04912.81
5.3.260.0080.03012.78
5.3.250.0060.03512.80
5.3.240.0120.03312.81
5.3.230.0020.04512.80
5.3.220.0110.03512.80
5.3.210.0050.04012.79
5.3.200.0020.04112.79
5.3.190.0110.03912.79
5.3.180.0070.03712.73
5.3.170.0060.03812.78
5.3.160.0070.03912.79
5.3.150.0020.03812.81
5.3.140.0030.02612.79
5.3.130.0070.03212.77
5.3.120.0050.03512.70
5.3.110.0180.03012.76
5.3.100.0060.02912.52
5.3.90.0070.03312.51
5.3.80.0020.02412.46
5.3.70.0010.03812.53
5.3.60.0020.03012.51
5.3.50.0050.03912.49
5.3.40.0070.03012.52
5.3.30.0070.03812.45
5.3.20.0000.03212.34
5.3.10.0080.03512.34
5.3.00.0020.03412.32
5.2.170.0020.02011.06
5.2.160.0030.01711.02
5.2.150.0020.03211.10
5.2.140.0030.03011.08
5.2.130.0030.03411.06
5.2.120.0000.02711.08
5.2.110.0060.03011.05
5.2.100.0060.02911.03
5.2.90.0070.03111.08
5.2.80.0040.03011.04
5.2.70.0020.03711.08
5.2.60.0000.02111.04
5.2.50.0030.02711.04
5.2.40.0000.02411.00
5.2.30.0050.02511.01
5.2.20.0030.03010.97
5.2.10.0050.02710.96
5.2.00.0050.03210.90
5.1.60.0060.01110.52
5.1.50.0040.01410.54
5.1.40.0010.01610.55
5.1.30.0020.01910.70
5.1.20.0070.01810.75
5.1.10.0030.02510.56
5.1.00.0020.02810.57
5.0.50.0000.0209.76
5.0.40.0040.0269.71
5.0.30.0010.0349.64
5.0.20.0030.0219.70
5.0.10.0040.0199.65
5.0.00.0030.0299.64
4.4.90.0010.0109.64
4.4.80.0000.0209.64
4.4.70.0030.0209.64
4.4.60.0040.0189.64
4.4.50.0000.0199.64
4.4.40.0040.0289.64
4.4.30.0010.0109.64
4.4.20.0020.0209.64
4.4.10.0050.0179.64
4.4.00.0020.0289.64
4.3.110.0010.0169.64
4.3.100.0050.0199.64
4.3.90.0030.0189.64
4.3.80.0030.0249.64
4.3.70.0000.0159.64
4.3.60.0000.0149.64
4.3.50.0030.0129.64
4.3.40.0000.0269.64
4.3.30.0030.0189.64
4.3.20.0010.0209.64
4.3.10.0020.0109.64
4.3.00.0010.0119.64

preferences:
64.29 ms | 401 KiB | 5 Q