3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = "°Freen\x18 ew°\x90ɮ\x7F\xc2"; //$result = preg_replace('~[\x{0000}-\x{000F}\x{007F}-\x{00a0}]~S', '', $result); $result = preg_replace('~[\x{0000}-\x{000F}\x{007F}-\x{00a0}}]~', '', $result); /* //reject overly long 2 byte sequences, as well as characters above U+10000 and replace with ? $result= preg_replace( '/[\xC2-\xDF]((?![\x80-\xBF])|[\x80-\xBF]{2,})/S', '', $result ); */ echo $result;

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.70.0090.01216.63
8.3.60.0100.01018.27
8.3.50.0100.00722.08
8.3.40.0040.01118.75
8.3.30.0070.00719.21
8.3.20.0070.00020.16
8.3.10.0080.00023.53
8.3.00.0040.00422.45
8.2.190.0040.01117.00
8.2.180.0120.00616.50
8.2.170.0070.00722.96
8.2.160.0100.00322.34
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00319.43
8.2.110.0060.00322.13
8.2.100.0170.00017.54
8.2.90.0050.00319.22
8.2.80.0060.00318.04
8.2.70.0040.00717.88
8.2.60.0000.00918.04
8.2.50.0000.00818.07
8.2.40.0040.00418.09
8.2.30.0070.00018.06
8.2.20.0030.00517.80
8.2.10.0050.00217.90
8.2.00.0040.00417.92
8.1.280.0140.00725.92
8.1.270.0040.00423.79
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00723.96
8.1.230.0070.00419.15
8.1.220.0070.00017.74
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0000.00917.43
8.1.180.0000.00818.10
8.1.170.0030.00618.70
8.1.160.0040.00421.91
8.1.150.0040.00418.71
8.1.140.0000.00717.54
8.1.130.0000.00717.86
8.1.120.0030.00417.48
8.1.110.0040.00417.56
8.1.100.0070.00017.53
8.1.90.0040.00417.43
8.1.80.0030.00417.44
8.1.70.0080.00017.53
8.1.60.0050.00317.68
8.1.50.0060.00317.62
8.1.40.0050.00217.62
8.1.30.0040.00417.75
8.1.20.0000.00817.57
8.1.10.0040.00417.64
8.1.00.0000.00817.58
8.0.300.0070.00018.77
8.0.290.0000.00717.05
8.0.280.0040.00418.46
8.0.270.0030.00317.28
8.0.260.0000.00916.96
8.0.250.0070.00017.13
8.0.240.0030.00316.96
8.0.230.0000.00717.04
8.0.220.0030.00316.95
8.0.210.0000.00716.93
8.0.200.0080.00017.05
8.0.190.0030.00517.02
8.0.180.0040.00816.87
8.0.170.0000.00817.00
8.0.160.0030.00316.91
8.0.150.0030.00316.92
8.0.140.0040.00416.95
8.0.130.0000.00613.32
8.0.120.0080.00016.86
8.0.110.0020.00517.03
8.0.100.0050.00316.99
8.0.90.0070.00016.82
8.0.80.0030.01716.86
8.0.70.0000.00717.02
8.0.60.0070.00016.91
8.0.50.0000.00716.84
8.0.30.0120.00817.39
8.0.20.0090.01017.49
8.0.10.0050.00217.08
8.0.00.0080.01116.84
7.4.330.0030.00315.00
7.4.320.0060.00016.66
7.4.300.0030.00316.79
7.4.290.0000.00716.65
7.4.280.0000.00616.66
7.4.270.0000.00716.76
7.4.260.0030.00316.68
7.4.250.0000.00716.54
7.4.240.0010.00616.68
7.4.230.0040.00316.73
7.4.220.0070.01016.71
7.4.210.0100.00616.76
7.4.200.0070.00016.57
7.4.190.0030.00316.52
7.4.160.0140.00316.80
7.4.150.0150.00917.40
7.4.140.0110.01117.86
7.4.130.0080.01216.78
7.4.120.0070.01016.79
7.4.110.0100.00716.61
7.4.100.0090.01216.51
7.4.90.0090.00916.71
7.4.80.0060.01016.77
7.4.70.0060.01016.71
7.4.60.0140.00316.86
7.4.50.0030.00516.74
7.4.40.0070.01022.77
7.4.30.0070.01116.79
7.4.10.0090.00915.74
7.4.00.0070.00815.72
7.3.330.0000.00613.09
7.3.320.0000.00613.07
7.3.310.0000.00716.27
7.3.300.0000.00616.19
7.3.290.0140.00716.31
7.3.280.0070.01116.36
7.3.270.0140.00317.40
7.3.260.0090.00916.44
7.3.250.0130.00416.51
7.3.240.0090.00916.52
7.3.230.0080.00816.39
7.3.210.0080.00916.56
7.3.200.0080.01219.39
7.3.190.0120.00616.30
7.3.180.0070.01016.30
7.3.170.0110.01116.43
7.3.160.0030.01316.76
7.3.130.0070.01215.54
7.3.120.0100.00615.44
7.3.110.0100.00815.63
7.3.100.0100.00515.66
7.3.90.0070.00915.77
7.3.80.0020.00915.78
7.3.70.0030.01215.53
7.3.60.0070.00815.52
7.3.50.0050.00915.67
7.3.40.0030.01015.63
7.3.30.0020.00915.55
7.3.20.0070.00717.38
7.3.10.0070.00517.23
7.3.00.0070.00617.19
7.2.330.0030.01416.66
7.2.320.0130.00316.70
7.2.310.0090.00816.53
7.2.300.0090.01516.61
7.2.290.0120.01216.59
7.2.260.0050.01515.83
7.2.250.0100.00815.81
7.2.240.0060.01015.86
7.2.230.0060.01215.82
7.2.220.0060.00815.80
7.2.210.0070.00915.89
7.2.200.0000.01115.88
7.2.190.0030.01015.88
7.2.180.0070.00615.85
7.2.170.0030.01215.92
7.2.160.0040.01115.87
7.2.150.0050.00717.64
7.2.140.0050.00717.83
7.2.130.0050.01117.31
7.2.120.0090.00617.17
7.2.110.0060.00717.23
7.2.100.0050.01017.32
7.2.90.0090.00717.33
7.2.80.0080.00517.27
7.2.70.0060.00917.36
7.2.60.0100.00617.33
7.2.50.0070.00717.37
7.2.40.0070.00717.32
7.2.30.0080.00717.33
7.2.20.0080.00717.26
7.2.10.0050.00917.41
7.2.00.0060.00717.29
7.1.330.0090.00616.70
7.1.320.0100.00316.75
7.1.310.0110.00416.62
7.1.300.0070.00816.72
7.1.290.0050.00816.78
7.1.280.0050.00616.73
7.1.270.0040.01116.56
7.1.260.0060.00416.75
7.1.250.0090.00716.42
7.1.240.0100.00316.40
7.1.230.0070.00616.46
7.1.220.0070.00916.44
7.1.210.0090.00616.47
7.1.200.0060.00616.31
7.1.190.0040.01016.49
7.1.180.0090.00616.36
7.1.170.0140.00216.36
7.1.160.0060.00816.41
7.1.150.0040.00916.45
7.1.140.0110.00316.34
7.1.130.0120.00216.49
7.1.120.0020.00916.24
7.1.110.0060.00916.56
7.1.100.0070.00516.87
7.1.90.0080.00616.39
7.1.80.0100.00616.32
7.1.70.0070.00616.67
7.1.60.0110.00717.13
7.1.50.0050.01116.55
7.1.40.0080.00516.39
7.1.30.0060.00716.34
7.1.20.0070.00916.47
7.1.10.0080.00416.49
7.1.00.0070.02117.89
7.0.330.0050.00516.25
7.0.320.0080.00415.99
7.0.310.0050.00716.11
7.0.300.0090.00316.01
7.0.290.0070.00815.93
7.0.280.0080.00616.03
7.0.270.0100.00616.20
7.0.260.0050.00916.21
7.0.250.0060.00516.05
7.0.240.0080.00816.23
7.0.230.0060.00916.16
7.0.220.0070.00616.27
7.0.210.0090.00516.08
7.0.200.0070.00716.24
7.0.190.0080.00416.05
7.0.180.0020.01116.15
7.0.170.0110.00316.28
7.0.160.0080.00516.04
7.0.150.0030.00916.18
7.0.140.0070.02117.63
7.0.130.0050.00816.10
7.0.120.0060.00616.23
7.0.110.0050.00916.05
7.0.100.0150.02517.11
7.0.90.0060.02516.89
7.0.80.0060.02817.03
7.0.70.0080.02316.99
7.0.60.0170.02217.06
7.0.50.0060.02217.19
7.0.40.0060.02615.67
7.0.30.0070.02515.68
7.0.20.0070.01815.54
7.0.10.0060.02115.58
7.0.00.0090.02615.67
5.6.400.0040.00715.26
5.6.390.0000.01015.22
5.6.380.0050.01114.87
5.6.370.0060.00815.02
5.6.360.0090.00615.09
5.6.350.0070.00614.79
5.6.340.0040.01114.75
5.6.330.0090.00714.79
5.6.320.0060.00814.76
5.6.310.0090.00714.92
5.6.300.0060.00814.99
5.6.290.0090.00514.94
5.6.280.0060.02516.33
5.6.270.0100.00614.86
5.6.260.0070.00714.99
5.6.250.0110.01616.35
5.6.240.0080.01716.25
5.6.230.0050.01816.26
5.6.220.0060.02516.31
5.6.210.0080.02316.23
5.6.200.0080.01916.34
5.6.190.0110.02216.28
5.6.180.0080.01616.42
5.6.170.0090.02516.33
5.6.160.0070.02516.37
5.6.150.0060.02716.42
5.6.140.0100.01716.37
5.6.130.0070.02716.38
5.6.120.0080.02516.33
5.6.110.0050.02616.31
5.6.100.0080.02216.32
5.6.90.0070.02516.30
5.6.80.0060.02516.11
5.6.70.0090.02116.18
5.6.60.0100.02116.16
5.6.50.0090.02316.18
5.6.40.0070.02316.15
5.6.30.0050.02116.13
5.6.20.0060.02516.21
5.6.10.0050.01516.18
5.6.00.0070.02316.20
5.5.380.0060.02515.40
5.5.370.0050.02615.32
5.5.360.0080.02115.43
5.5.350.0050.02115.45
5.5.340.0050.02515.53
5.5.330.0070.02315.49
5.5.320.0090.02115.61
5.5.310.0080.02415.50
5.5.300.0060.01415.56
5.5.290.0050.02615.52
5.5.280.0050.02015.63
5.5.270.0080.02415.51
5.5.260.0060.02415.55
5.5.250.0070.02615.44
5.5.240.0050.02715.28
5.5.230.0080.02315.34
5.5.220.0050.01815.38
5.5.210.0090.02115.32
5.5.200.0060.02415.25
5.5.190.0070.01715.32
5.5.180.0080.02515.27
5.5.170.0060.00814.69
5.5.160.0070.02115.36
5.5.150.0060.01815.28
5.5.140.0030.02015.35
5.5.130.0080.01915.39
5.5.120.0070.02215.30
5.5.110.0050.02615.29
5.5.100.0040.02415.32
5.5.90.0030.02215.24
5.5.80.0080.01315.36
5.5.70.0080.01915.27
5.5.60.0030.02815.25
5.5.50.0090.02315.27
5.5.40.0050.01715.24
5.5.30.0070.02315.31
5.5.20.0080.01715.21
5.5.10.0060.02315.23
5.5.00.0040.01915.30
5.4.450.0070.01914.30
5.4.440.0030.02714.28
5.4.430.0040.02514.26
5.4.420.0050.02414.20
5.4.410.0060.02314.21
5.4.400.0060.02214.16
5.4.390.0090.01214.07
5.4.380.0060.02214.10
5.4.370.0070.01314.15
5.4.360.0050.02314.12
5.4.350.0060.02314.15
5.4.340.0060.01714.18
5.4.330.0020.00612.48
5.4.320.0060.02214.14
5.4.310.0090.01314.09
5.4.300.0050.01614.13
5.4.290.0080.01714.08
5.4.280.0050.02214.13
5.4.270.0070.01714.08
5.4.260.0070.01514.13
5.4.250.0070.02014.17
5.4.240.0090.01214.11
5.4.230.0060.02314.15
5.4.220.0050.02714.12
5.4.210.0040.02114.15
5.4.200.0050.01914.10
5.4.190.0060.02014.10
5.4.180.0050.02114.16
5.4.170.0080.02214.06
5.4.160.0100.01714.11
5.4.150.0040.02514.19
5.4.140.0020.01813.41
5.4.130.0060.01213.40
5.4.120.0050.01913.39
5.4.110.0020.01613.48
5.4.100.0060.02113.45
5.4.90.0050.02013.50
5.4.80.0030.01613.51
5.4.70.0060.02113.50
5.4.60.0050.02213.43
5.4.50.0070.01413.45
5.4.40.0050.02313.50
5.4.30.0080.01813.52
5.4.20.0050.02313.48
5.4.10.0070.01913.47
5.4.00.0060.02113.31
5.3.290.0070.02313.20
5.3.280.0050.02013.16
5.3.270.0060.02513.15
5.3.260.0010.02613.09
5.3.250.0070.02213.16
5.3.240.0030.01713.05
5.3.230.0020.01613.13
5.3.220.0040.01913.15
5.3.210.0020.02713.13
5.3.200.0050.01613.11
5.3.190.0060.02313.19
5.3.180.0020.02713.18
5.3.170.0030.02313.09
5.3.160.0060.02413.08
5.3.150.0050.02413.14
5.3.140.0020.01713.08
5.3.130.0060.02213.15
5.3.120.0060.02213.07
5.3.110.0030.02413.14
5.3.100.0060.02312.99
5.3.90.0050.02313.06
5.3.80.0040.02312.92
5.3.70.0050.02213.00
5.3.60.0050.01912.98
5.3.50.0080.02212.94
5.3.40.0070.02012.90
5.3.30.0070.02212.94
5.3.20.0080.02112.86
5.3.10.0060.02312.84
5.3.00.0050.01412.84
5.2.170.0070.02911.41
5.2.160.0060.03111.41
5.2.150.0060.03511.41
5.2.140.0060.02711.41
5.2.130.0030.03311.41
5.2.120.0070.03511.41
5.2.110.0090.03011.41
5.2.100.0050.03111.41
5.2.90.0080.03011.41
5.2.80.0050.03511.41
5.2.70.0050.03211.41
5.2.60.0070.02811.41
5.2.50.0050.03211.41
5.2.40.0090.03011.41
5.2.30.0060.02311.41
5.2.20.0070.03211.41
5.2.10.0040.03311.41
5.2.00.0050.02311.41
5.1.60.0040.03011.41
5.1.50.0080.02811.41
5.1.40.0050.02311.41
5.1.30.0060.01311.41
5.1.20.0060.02511.41
5.1.10.0040.02211.41
5.1.00.0050.02211.41
5.0.50.0060.02311.41
5.0.40.0050.02311.41
5.0.30.0030.02811.41
5.0.20.0030.01411.41
5.0.10.0060.02211.41
5.0.00.0050.03211.41
4.4.90.0030.01911.41
4.4.80.0060.01611.41
4.4.70.0000.02011.41
4.4.60.0020.01911.41
4.4.50.0050.02011.41
4.4.40.0040.02711.41
4.4.30.0020.02211.41
4.4.20.0040.01411.41
4.4.10.0030.02011.41
4.4.00.0030.02711.41
4.3.110.0040.01711.41
4.3.100.0040.01811.41
4.3.90.0020.01411.41
4.3.80.0010.02111.41
4.3.70.0040.01411.41
4.3.60.0060.01811.41
4.3.50.0000.02311.41
4.3.40.0020.02511.41
4.3.30.0000.02011.41
4.3.20.0020.01511.41
4.3.10.0000.02011.41
4.3.00.0060.01611.41

preferences:
47.02 ms | 401 KiB | 5 Q