3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = "°Freen\x18 ew°\x90ɮ\xc2"; //$result = trim($result,"\xc2"/*"\xa0"*/); //echo preg_replace('#[\x00-\x1F\x7F-\x9F]#S', '', $result); //echo preg_replace('~[\x{0000}-\x{001F}\x{007F}-\x{00a0}]~', '', $result); echo preg_replace('~[\x{007F}-\x{00a0}]~', '', $result); /* //reject overly long 2 byte sequences, as well as characters above U+10000 and replace with ? $result= preg_replace('/[\x00-\x08\x10\x0B\x0C\x0E-\x19\x7F]'. '|[\x00-\x7F][\x80-\xBF]+'. '|([\xC0\xC1]|[\xF0-\xFF])[\x80-\xBF]*'. '|[\xC2-\xDF]((?![\x80-\xBF])|[\x80-\xBF]{2,})'. '|[\xE0-\xEF](([\x80-\xBF](?![\x80-\xBF]))|(?![\x80-\xBF]{2})|[\x80-\xBF]{3,})/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.60.0120.00916.75
8.3.50.0090.00622.00
8.3.40.0090.00618.99
8.3.30.0140.00019.17
8.3.20.0080.00020.22
8.3.10.0030.00523.70
8.3.00.0030.00521.03
8.2.180.0120.00316.48
8.2.170.0120.00322.96
8.2.160.0100.00320.47
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00520.85
8.2.110.0000.01122.27
8.2.100.0110.00020.59
8.2.90.0040.00419.23
8.2.80.0050.00317.97
8.2.70.0000.00917.75
8.2.60.0000.00918.03
8.2.50.0060.00318.07
8.2.40.0040.00418.03
8.2.30.0000.00718.31
8.2.20.0040.00417.85
8.2.10.0000.00818.08
8.2.00.0030.00617.87
8.1.280.0090.00625.92
8.1.270.0040.00423.79
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0060.00323.76
8.1.230.0070.00419.12
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0080.00417.09
8.1.190.0000.00817.35
8.1.180.0080.00018.10
8.1.170.0000.00818.39
8.1.160.0000.00821.91
8.1.150.0000.00718.70
8.1.140.0040.00417.55
8.1.130.0050.00317.77
8.1.120.0000.00717.61
8.1.110.0040.00717.59
8.1.100.0000.00717.44
8.1.90.0040.00417.44
8.1.80.0000.00717.51
8.1.70.0040.00417.47
8.1.60.0040.00417.64
8.1.50.0000.00817.57
8.1.40.0000.00917.61
8.1.30.0080.00017.75
8.1.20.0040.00417.76
8.1.10.0070.00017.65
8.1.00.0040.00417.50
8.0.300.0000.00918.77
8.0.290.0040.00416.88
8.0.280.0030.00518.46
8.0.270.0060.00317.28
8.0.260.0030.00317.29
8.0.250.0000.00717.02
8.0.240.0000.00717.14
8.0.230.0070.00016.93
8.0.220.0030.00317.02
8.0.210.0030.00316.91
8.0.200.0050.00317.05
8.0.190.0050.00317.09
8.0.180.0040.00416.89
8.0.170.0080.00017.01
8.0.160.0030.00516.86
8.0.150.0070.00016.91
8.0.140.0070.00316.84
8.0.130.0030.00313.40
8.0.120.0040.00416.96
8.0.110.0000.00717.02
8.0.100.0040.00416.93
8.0.90.0000.00716.88
8.0.80.0070.01317.04
8.0.70.0000.00716.85
8.0.60.0030.00316.95
8.0.50.0080.00016.96
8.0.30.0120.00617.22
8.0.20.0080.01117.43
8.0.10.0080.00016.94
8.0.00.0110.00616.82
7.4.330.0000.00515.00
7.4.320.0000.00716.74
7.4.300.0060.00016.64
7.4.290.0000.00716.72
7.4.280.0050.00216.74
7.4.270.0000.00716.64
7.4.260.0000.00716.73
7.4.250.0050.00316.76
7.4.240.0020.00616.71
7.4.230.0000.00716.81
7.4.220.0120.00616.71
7.4.210.0080.00616.83
7.4.200.0040.00416.65
7.4.190.0030.00316.54
7.4.160.0100.00616.57
7.4.150.0090.00917.40
7.4.140.0050.01617.86
7.4.130.0100.00716.59
7.4.120.0080.01016.77
7.4.110.0130.00616.70
7.4.100.0130.00316.72
7.4.90.0140.00716.54
7.4.80.0180.00619.39
7.4.70.0090.00616.49
7.4.60.0120.00616.48
7.4.50.0040.00416.72
7.4.40.0060.01016.70
7.4.30.0070.01016.39
7.4.10.0060.00915.14
7.4.00.0080.01015.09
7.3.330.0000.00613.07
7.3.320.0000.00613.07
7.3.310.0050.00316.29
7.3.300.0030.00316.14
7.3.290.0100.00416.24
7.3.280.0100.00816.30
7.3.270.0070.01417.40
7.3.260.0100.00716.50
7.3.250.0140.00516.57
7.3.240.0090.01016.61
7.3.230.0070.01116.68
7.3.210.0060.01216.38
7.3.200.0190.00019.39
7.3.190.0150.00616.34
7.3.180.0080.00816.30
7.3.170.0130.00316.32
7.3.160.0100.00716.48
7.3.130.0060.01314.60
7.3.120.0110.00614.85
7.3.110.0030.01614.82
7.3.100.0080.00415.21
7.3.90.0060.01014.72
7.3.80.0110.00614.61
7.3.70.0140.00014.73
7.3.60.0100.00314.80
7.3.50.0070.00315.02
7.3.40.0090.00314.70
7.3.30.0090.00614.74
7.3.20.0030.01016.64
7.3.10.0050.01116.62
7.3.00.0040.01116.66
7.2.330.0090.00916.60
7.2.320.0140.00316.57
7.2.310.0110.00916.60
7.2.300.0100.00716.57
7.2.290.0060.01416.74
7.2.260.0110.00714.90
7.2.250.0060.00615.19
7.2.240.0030.01015.07
7.2.230.0060.00615.29
7.2.220.0000.01814.88
7.2.210.0040.01415.12
7.2.200.0030.01315.02
7.2.190.0000.01215.21
7.2.180.0000.01215.14
7.2.170.0000.01415.02
7.2.160.0000.01015.20
7.2.150.0080.00816.89
7.2.140.0040.01117.06
7.2.130.0060.00816.83
7.2.120.0060.01017.02
7.2.110.0040.00917.04
7.2.100.0070.01016.85
7.2.90.0070.00616.85
7.2.80.0020.00817.08
7.2.70.0060.00917.03
7.2.60.0030.01217.03
7.2.50.0060.01317.02
7.2.40.0070.01116.88
7.2.30.0070.01316.84
7.2.20.0050.01216.87
7.2.10.0090.01016.86
7.2.00.0070.00917.70
7.1.330.0000.01315.89
7.1.320.0030.01415.69
7.1.310.0100.00715.79
7.1.300.0000.01415.63
7.1.290.0030.00915.88
7.1.280.0000.01015.63
7.1.270.0030.00715.75
7.1.260.0130.00315.88
7.1.250.0060.00315.92
7.1.240.0070.00715.84
7.1.230.0070.01015.91
7.1.220.0070.00715.81
7.1.210.0060.00915.69
7.1.200.0100.00716.05
7.1.190.0060.01315.92
7.1.180.0060.01015.86
7.1.170.0080.00415.91
7.1.160.0070.01315.95
7.1.150.0120.00615.61
7.1.140.0030.01516.00
7.1.130.0110.00416.04
7.1.120.0090.00615.95
7.1.110.0030.00915.95
7.1.100.0050.00617.04
7.1.90.0090.00615.89
7.1.80.0040.00715.87
7.1.70.0030.00716.49
7.1.60.0060.00817.81
7.1.50.0050.01216.48
7.1.40.0000.01215.84
7.1.30.0030.00915.93
7.1.20.0030.00715.75
7.1.10.0110.00415.92
7.1.00.0050.04019.16
7.0.330.0080.00015.19
7.0.320.0070.00715.57
7.0.310.0070.01115.36
7.0.300.0060.00615.23
7.0.290.0000.01415.66
7.0.280.0070.01015.29
7.0.270.0030.00915.35
7.0.260.0060.00615.35
7.0.250.0060.00915.40
7.0.240.0030.01015.25
7.0.230.0000.01515.52
7.0.220.0070.01015.38
7.0.210.0060.00615.39
7.0.200.0040.00616.00
7.0.190.0040.01115.52
7.0.180.0040.00815.10
7.0.170.0070.00715.29
7.0.160.0060.00915.68
7.0.150.0100.00315.41
7.0.140.0070.03918.81
7.0.130.0060.00615.55
7.0.120.0080.00515.78
7.0.110.0070.01015.54
7.0.100.0060.00615.46
7.0.90.0000.01315.71
7.0.80.0060.00715.18
7.0.70.0000.02518.59
7.0.60.0070.02218.52
7.0.50.0060.01818.86
7.0.40.0040.02316.75
7.0.30.0030.02016.81
7.0.20.0040.04916.68
7.0.10.0060.02316.79
7.0.00.0050.02016.83
5.6.400.0000.01513.86
5.6.390.0070.00714.27
5.6.380.0140.00314.30
5.6.370.0150.00414.16
5.6.360.0080.00414.46
5.6.350.0000.01014.31
5.6.340.0070.00713.97
5.6.330.0060.01014.10
5.6.320.0040.01114.38
5.6.310.0140.00014.73
5.6.300.0060.00614.44
5.6.290.0000.01314.19
5.6.280.0030.04317.49
5.6.270.0030.01114.21
5.6.260.0110.00714.10
5.6.250.0030.00914.39
5.6.240.0040.01114.45
5.6.230.0090.00614.19
5.6.220.0050.02217.33
5.6.210.0030.02517.48
5.6.200.0060.02317.53
5.6.190.0080.01817.66
5.6.180.0030.02017.73
5.6.170.0000.02217.67
5.6.160.0060.02317.76
5.6.150.0050.02317.80
5.6.140.0020.02517.82
5.6.130.0060.01917.79
5.6.120.0050.02817.59
5.6.110.0090.01517.71
5.6.100.0020.02217.53
5.6.90.0030.02717.73
5.6.80.0030.02217.29
5.6.70.0020.02217.23
5.6.60.0050.01817.42
5.6.50.0040.02017.28
5.6.40.0030.02217.45
5.6.30.0030.02017.34
5.6.20.0010.02317.10
5.6.10.0060.01717.29
5.6.00.0050.01817.32
5.5.380.0070.00714.41
5.5.370.0090.00314.29
5.5.360.0060.02017.30
5.5.350.0050.02417.50
5.5.340.0080.01717.68
5.5.330.0020.02217.46
5.5.320.0030.02317.52
5.5.310.0100.01717.60
5.5.300.0070.02317.64
5.5.290.0050.02017.45
5.5.280.0060.02417.46
5.5.270.0050.02017.62
5.5.260.0010.02217.57
5.5.250.0040.02717.30
5.5.240.0020.02217.15
5.5.230.0020.02017.15
5.5.220.0050.01817.09
5.5.210.0040.02117.16
5.5.200.0060.01617.01
5.5.190.0020.02417.14
5.5.180.0030.02217.12
5.5.170.0040.00814.06
5.5.160.0020.02117.12
5.5.150.0050.02317.28
5.5.140.0060.02117.26
5.5.130.0050.02017.26
5.5.120.0030.01817.04
5.5.110.0060.02317.10
5.5.100.0040.02016.98
5.5.90.0020.02917.13
5.5.80.0030.02317.08
5.5.70.0080.04317.17
5.5.60.0070.03817.10
5.5.50.0080.03117.15
5.5.40.0100.03717.10
5.5.30.0050.04117.08
5.5.20.0060.04317.01
5.5.10.0020.04317.01
5.5.00.0070.03217.08
5.4.450.0020.02415.80
5.4.440.0030.03015.72
5.4.430.0030.01715.88
5.4.420.0020.01815.94
5.4.410.0030.01715.73
5.4.400.0040.02015.71
5.4.390.0030.02015.78
5.4.380.0020.01915.69
5.4.370.0050.01715.64
5.4.360.0010.02115.57
5.4.350.0030.02115.65
5.4.340.0030.01615.74
5.4.330.0020.00712.33
5.4.320.0050.01615.65
5.4.310.0050.02115.74
5.4.300.0050.01715.64
5.4.290.0020.01715.71
5.4.280.0020.01815.57
5.4.270.0020.02215.68
5.4.260.0050.02815.68
5.4.250.0020.02615.63
5.4.240.0090.03815.61
5.4.230.0020.03215.72
5.4.220.0030.04315.66
5.4.210.0070.03315.70
5.4.200.0020.02915.69
5.4.190.0060.04215.69
5.4.180.0060.03915.69
5.4.170.0040.02715.69
5.4.160.0050.03415.72
5.4.150.0050.03715.62
5.4.140.0050.04014.28
5.4.130.0040.03214.28
5.4.120.0040.02214.32
5.4.110.0050.02814.37
5.4.100.0080.03214.27
5.4.90.0020.03914.30
5.4.80.0030.03114.32
5.4.70.0020.04614.33
5.4.60.0030.04014.35
5.4.50.0030.04014.37
5.4.40.0080.03514.33
5.4.30.0050.03414.34
5.4.20.0070.04014.33
5.4.10.0000.04414.31
5.4.00.0000.02714.00
5.3.290.0030.01813.54
5.3.280.0050.03313.54
5.3.270.0030.03213.54
5.3.260.0100.02013.54
5.3.250.0080.02813.54
5.3.240.0040.03513.54
5.3.230.0040.02413.54
5.3.220.0050.03713.54
5.3.210.0030.03513.54
5.3.200.0050.03113.54
5.3.190.0060.03313.54
5.3.180.0040.04113.54
5.3.170.0030.03413.54
5.3.160.0050.03813.54
5.3.150.0060.03513.54
5.3.140.0000.02413.54
5.3.130.0010.04313.54
5.3.120.0000.02913.54
5.3.110.0020.02513.54
5.3.100.0000.04013.54
5.3.90.0070.04013.54
5.3.80.0050.03813.54
5.3.70.0070.02713.54
5.3.60.0060.03813.54
5.3.50.0110.02913.54
5.3.40.0070.03813.54
5.3.30.0020.03813.54
5.3.20.0030.03813.54
5.3.10.0030.02313.54
5.3.00.0030.03213.54
5.2.170.0070.02714.75
5.2.160.0070.04714.75
5.2.150.0070.05714.75
5.2.140.0000.07014.75
5.2.130.0000.05314.75
5.2.120.0000.03714.75
5.2.110.0000.04714.75
5.2.100.0000.03714.75
5.2.90.0070.03014.75
5.2.80.0070.05714.75
5.2.70.0000.05014.75
5.2.60.0000.05014.75
5.2.50.0070.02714.75
5.2.40.0100.02314.75
5.2.30.0000.03714.75
5.2.20.0030.06014.75
5.2.10.0000.05314.75
5.2.00.0100.05014.75
5.1.60.0000.04314.75
5.1.50.0000.03714.75
5.1.40.0070.05014.75
5.1.30.0030.04714.75
5.1.20.0030.03314.75
5.1.10.0000.05714.75
5.1.00.0000.04314.75
5.0.50.0030.03714.75
5.0.40.0000.03714.75
5.0.30.0030.05314.75
5.0.20.0030.04014.75
5.0.10.0030.04314.75
5.0.00.0170.05714.75
4.4.90.0070.02014.75
4.4.80.0000.02714.75
4.4.70.0000.02714.75
4.4.60.0000.02714.75
4.4.50.0030.03314.75
4.4.40.0000.05014.75
4.4.30.0030.02714.75
4.4.20.0000.02314.75
4.4.10.0000.02314.75
4.4.00.0000.05014.75
4.3.110.0030.02314.75
4.3.100.0030.02714.75
4.3.90.0000.02314.75
4.3.80.0000.05714.75
4.3.70.0030.02014.75
4.3.60.0000.03314.75
4.3.50.0030.03014.75
4.3.40.0030.04014.75
4.3.30.0000.03014.75
4.3.20.0000.03014.75
4.3.10.0030.02314.75
4.3.00.0000.03714.75

preferences:
36 ms | 401 KiB | 5 Q