3v4l.org

run code in 300+ PHP versions simultaneously
<?php function removeEmoji($text) { $clean_text = ""; // Match Emoticons $regexEmoticons = '/[\x{1F600}-\x{1F64F}]/u'; $clean_text = preg_replace($regexEmoticons, '', $text); // Match Miscellaneous Symbols and Pictographs $regexSymbols = '/[\x{1F300}-\x{1F5FF}]/u'; $clean_text = preg_replace($regexSymbols, '', $clean_text); // Match Transport And Map Symbols $regexTransport = '/[\x{1F680}-\x{1F6FF}]/u'; $clean_text = preg_replace($regexTransport, '', $clean_text); // Match Miscellaneous Symbols $regexMisc = '/[\x{2600}-\x{26FF}]/u'; $clean_text = preg_replace($regexMisc, '', $clean_text); // Match Dingbats $regexDingbats = '/[\x{2700}-\x{27BF}]/u'; $clean_text = preg_replace($regexDingbats, '', $clean_text); return $clean_text; } echo "\xF0\x9F\x98\x81"; echo removeEmoji("\xF0\x9F\x98\x81");

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.4.20.0180.00417.71
8.4.10.0150.00317.75
8.3.150.0150.00317.22
8.3.140.0000.01017.39
8.3.130.0080.00018.69
8.3.120.0030.00620.38
8.3.110.0030.00620.94
8.3.100.0040.00424.06
8.3.90.0080.00026.77
8.3.80.0070.00318.38
8.3.70.0090.00916.88
8.3.60.0070.00716.88
8.3.50.0100.01122.20
8.3.40.0150.00018.94
8.3.30.0070.00719.09
8.3.20.0080.00020.33
8.3.10.0000.00821.81
8.3.00.0080.00019.69
8.2.270.0040.00416.85
8.2.260.0030.00716.77
8.2.250.0080.00018.55
8.2.240.0060.00317.50
8.2.230.0080.00022.58
8.2.220.0090.00037.54
8.2.210.0040.00426.77
8.2.200.0050.00518.41
8.2.190.0110.00416.71
8.2.180.0120.00918.29
8.2.170.0040.01118.98
8.2.160.0110.00322.96
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00318.97
8.2.110.0060.00319.03
8.2.100.0060.00617.91
8.2.90.0050.00318.10
8.2.80.0000.00818.16
8.2.70.0000.00817.75
8.2.60.0050.00317.63
8.2.50.0050.00317.63
8.2.40.0050.00319.23
8.2.30.0050.00319.18
8.2.20.0000.00817.78
8.2.10.0000.00718.20
8.2.00.0080.00018.02
8.1.310.0120.00318.25
8.1.300.0040.00419.73
8.1.290.0040.00430.84
8.1.280.0040.01125.92
8.1.270.0120.00320.31
8.1.260.0120.00626.35
8.1.250.0040.00428.09
8.1.240.0000.00922.42
8.1.230.0000.01022.68
8.1.220.0040.00417.91
8.1.210.0060.00318.77
8.1.200.0030.00617.35
8.1.190.0030.00617.35
8.1.180.0060.00318.10
8.1.170.0050.00318.56
8.1.160.0000.00718.96
8.1.150.0070.00018.83
8.1.140.0000.00817.43
8.1.130.0000.00817.78
8.1.120.0050.00317.57
8.1.110.0040.00417.46
8.1.100.0040.00417.55
8.1.90.0040.00417.57
8.1.80.0040.00417.56
8.1.70.0000.00717.58
8.1.60.0040.00417.79
8.1.50.0000.00817.67
8.1.40.0000.00817.66
8.1.30.0040.00417.84
8.1.20.0040.00417.80
8.1.10.0050.00217.63
8.1.00.0050.00317.58
8.0.300.0080.00019.98
8.0.290.0070.00017.00
8.0.280.0040.00418.44
8.0.270.0000.00817.07
8.0.260.0000.00617.30
8.0.250.0000.00717.02
8.0.240.0060.00317.11
8.0.230.0030.00317.11
8.0.220.0070.00017.08
8.0.210.0030.00317.00
8.0.200.0030.00317.09
8.0.190.0000.00817.09
8.0.180.0080.00016.95
8.0.170.0060.00317.09
8.0.160.0070.00017.05
8.0.150.0080.00016.96
8.0.140.0050.00316.93
8.0.130.0000.00713.47
8.0.120.0030.00516.97
8.0.110.0080.00017.03
8.0.100.0050.00316.90
8.0.90.0000.00817.04
8.0.80.0110.00817.07
8.0.70.0000.00716.94
8.0.60.0040.00416.94
8.0.50.0000.00717.08
8.0.30.0110.00617.42
8.0.20.0120.01117.40
8.0.10.0040.00417.08
8.0.00.0070.01016.98
7.4.330.0020.00215.11
7.4.320.0030.00316.81
7.4.300.0030.00316.73
7.4.290.0050.00316.79
7.4.280.0050.00216.86
7.4.270.0030.00316.64
7.4.260.0000.00716.80
7.4.250.0050.00316.77
7.4.240.0060.00216.84
7.4.230.0050.00216.52
7.4.220.0060.02016.83
7.4.210.0070.00716.93
7.4.200.0030.00316.64
7.4.160.0100.00616.70
7.4.150.0070.01117.40
7.4.140.0160.00517.86
7.4.130.0090.01216.80
7.4.120.0090.01216.63
7.4.110.0030.01716.36
7.4.100.0150.00916.80
7.4.90.0100.00716.73
7.4.80.0080.01519.39
7.4.70.0140.00316.63
7.4.60.0060.01016.73
7.4.50.0040.00416.72
7.4.40.0100.00616.60
7.4.30.0160.00716.74
7.4.10.0070.01115.20
7.4.00.0040.01615.09
7.3.330.0050.00013.33
7.3.320.0030.00313.45
7.3.310.0000.00616.32
7.3.300.0070.00016.41
7.3.290.0080.00616.43
7.3.280.0120.00816.46
7.3.270.0140.00317.40
7.3.260.0100.00716.79
7.3.250.0140.00516.59
7.3.240.0060.01016.44
7.3.230.0160.00616.51
7.3.210.0060.01216.39
7.3.200.0070.01016.43
7.3.190.0160.00316.46
7.3.180.0120.00616.62
7.3.170.0100.00616.36
7.3.160.0070.01116.46
7.3.130.0060.01014.92
7.3.120.0040.01515.11
7.3.110.0060.01215.18
7.3.100.0080.00614.78
7.3.90.0040.01114.85
7.3.80.0070.00314.92
7.3.70.0030.01114.98
7.3.60.0070.00614.87
7.3.50.0070.00814.99
7.3.40.0090.00514.99
7.3.30.0080.00614.99
7.3.20.0050.00516.67
7.3.10.0030.00916.70
7.3.00.0050.00616.57
7.2.330.0140.01116.75
7.2.320.0170.00316.88
7.2.310.0120.00916.93
7.2.300.0120.00616.59
7.2.290.0090.00916.75
7.2.260.0100.01015.01
7.2.250.0090.00815.28
7.2.240.0040.01214.98
7.2.230.0060.00615.21
7.2.220.0060.01115.19
7.2.210.0070.00715.29
7.2.200.0080.00814.98
7.2.190.0070.00514.91
7.2.180.0110.00515.06
7.2.170.0050.00815.11
7.2.160.0110.00314.96
7.2.150.0000.01517.18
7.2.140.0070.01017.15
7.2.130.0000.01216.97
7.2.120.0000.01816.87
7.2.110.0000.01016.98
7.2.100.0100.00316.93
7.2.90.0090.00917.23
7.2.80.0090.00617.12
7.2.70.0070.00316.87
7.2.60.0040.00717.05
7.2.50.0060.00817.16
7.2.40.0000.01017.05
7.2.30.0060.00917.02
7.2.20.0070.00717.08
7.2.10.0070.00716.99
7.2.00.0030.01118.30
7.1.330.0030.01016.17
7.1.320.0050.01115.91
7.1.310.0040.00915.73
7.1.300.0100.00715.79
7.1.290.0050.00815.92
7.1.280.0080.00715.93
7.1.270.0120.00315.95
7.1.260.0060.00715.98
7.1.250.0000.01815.72
7.1.240.0030.01015.79
7.1.230.0030.00515.87
7.1.220.0060.00615.70
7.1.210.0030.00915.67
7.1.200.0060.00915.73
7.1.190.0060.00315.84
7.1.180.0080.00416.04
7.1.170.0090.00316.10
7.1.160.0100.00015.96
7.1.150.0090.00015.93
7.1.140.0000.01615.98
7.1.130.0070.01015.73
7.1.120.0140.00015.91
7.1.110.0060.00615.76
7.1.100.0050.00816.81
7.1.90.0070.00716.06
7.1.80.0060.01015.82
7.1.70.0030.00816.66
7.1.60.0110.00917.83
7.1.50.0050.01416.44
7.1.40.0060.00916.07
7.1.30.0000.00816.06
7.1.20.0040.00415.91
7.1.10.0030.01015.80
7.1.00.0100.03819.23
7.0.330.0030.01315.57
7.0.320.0040.00815.20
7.0.310.0000.01615.71
7.0.300.0080.00615.72
7.0.290.0040.00715.43
7.0.280.0100.00315.38
7.0.270.0030.00615.38
7.0.260.0030.01015.44
7.0.250.0100.00015.54
7.0.240.0070.00715.40
7.0.230.0080.00315.67
7.0.220.0110.00415.77
7.0.210.0060.00315.68
7.0.200.0080.00316.18
7.0.190.0090.00315.70
7.0.180.0060.00615.42
7.0.170.0090.00315.09
7.0.160.0000.01115.38
7.0.150.0000.01315.63
7.0.140.0060.00315.45
7.0.130.0030.00915.64
7.0.120.0060.00615.58
7.0.110.0150.01517.87
7.0.100.0120.02417.65
7.0.90.0100.02317.81
7.0.80.0180.02717.68
7.0.70.0060.01917.56
7.0.60.0050.02217.76
7.0.50.0070.02217.62
7.0.40.0030.03516.70
7.0.30.0060.02316.79
7.0.20.0070.04016.64
7.0.10.0120.01716.59
7.0.00.0070.01816.75
5.6.400.0040.00414.62
5.6.390.0070.00714.24
5.6.380.0070.00714.14
5.6.370.0030.00614.27
5.6.360.0100.00314.28
5.6.350.0090.00314.27
5.6.340.0040.00414.51
5.6.330.0040.00814.32
5.6.320.0090.00413.98
5.6.310.0060.00614.58
5.6.300.0100.00314.40
5.6.290.0000.00914.30
5.6.280.0030.03917.77
5.6.270.0030.01014.48
5.6.260.0030.02417.56
5.6.250.0020.02117.52
5.6.240.0020.02817.49
5.6.230.0080.01817.38
5.6.220.0040.03717.43
5.6.210.0050.02117.46
5.6.200.0030.03317.68
5.6.190.0050.03617.45
5.6.180.0100.04017.38
5.6.170.0000.02917.43
5.6.160.0050.04117.39
5.6.150.0090.03617.49
5.6.140.0050.02317.54
5.6.130.0030.02517.48
5.6.120.0050.04717.58
5.6.110.0020.02917.62
5.6.100.0070.03917.62
5.6.90.0060.02117.50
5.6.80.0060.03316.98
5.6.70.0040.03817.16
5.6.60.0080.03817.29
5.6.50.0030.04117.10
5.6.40.0080.04517.21
5.6.30.0040.04517.09
5.6.20.0040.04417.14
5.6.10.0080.03517.28
5.6.00.0070.03017.19
5.5.380.0050.02015.89
5.5.370.0030.02115.90
5.5.360.0050.03415.97
5.5.350.0050.02615.80
5.5.340.0030.04016.25
5.5.330.0050.03016.29
5.5.320.0040.01916.41
5.5.310.0030.02516.10
5.5.300.0020.03216.31
5.5.290.0070.03716.07
5.5.280.0090.03416.06
5.5.270.0050.02516.10
5.5.260.0050.03816.36
5.5.250.0030.03716.11
5.5.240.0060.03815.69
5.5.230.0080.01915.95
5.5.220.0070.04515.94
5.5.210.0080.02115.81
5.5.200.0090.03815.69
5.5.190.0080.02315.85
5.5.180.0020.04515.79
5.5.170.0030.00714.34
5.5.160.0060.02315.75
5.5.150.0080.02315.93
5.5.140.0070.02515.82
5.5.130.0070.04015.93
5.5.120.0020.04215.85
5.5.110.0060.03715.73
5.5.100.0060.02415.85
5.5.90.0050.03715.83
5.5.80.0070.03715.77
5.5.70.0060.02615.75
5.5.60.0050.04215.63
5.5.50.0120.03715.82
5.5.40.0050.04215.85
5.5.30.0050.03515.90
5.5.20.0090.02115.67
5.5.10.0080.03315.69
5.5.00.0050.02715.87
5.4.450.0000.03415.25
5.4.440.0070.02815.34
5.4.430.0020.02915.21
5.4.420.0050.04015.20
5.4.410.0040.03915.36
5.4.400.0030.02715.08
5.4.390.0030.03315.22
5.4.380.0060.04015.08
5.4.370.0070.03514.99
5.4.360.0050.04215.20
5.4.350.0070.02215.15
5.4.340.0030.03515.17
5.4.330.0030.01011.08
5.4.320.0010.03315.11
5.4.310.0080.03315.12
5.4.300.0040.03715.02
5.4.290.0030.02115.09
5.4.280.0020.03515.04
5.4.270.0050.02115.00
5.4.260.0020.02715.00
5.4.250.0070.04015.01
5.4.240.0030.02615.03
5.4.230.0120.03515.09
5.4.220.0030.04614.96
5.4.210.0030.02514.89
5.4.200.0020.02715.14
5.4.190.0100.03315.01
5.4.180.0030.02514.87
5.4.170.0050.03915.16
5.4.160.0030.02214.99
5.4.150.0050.02114.96
5.4.140.0070.02013.69
5.4.130.0090.01813.78
5.4.120.0030.03613.95
5.4.110.0030.04013.85
5.4.100.0030.02313.78
5.4.90.0020.02813.82
5.4.80.0070.03313.82
5.4.70.0030.02313.80
5.4.60.0050.02013.53
5.4.50.0030.03013.82
5.4.40.0030.03113.86
5.4.30.0000.02313.65
5.4.20.0050.01813.73
5.4.10.0050.02513.85
5.4.00.0070.03313.29
5.3.290.0070.05314.79
5.3.280.0030.04714.60
5.3.270.0000.08014.84
5.3.260.0100.06314.73
5.3.250.0030.03714.71
5.3.240.0070.04014.75
5.3.230.0070.04014.59
5.3.220.0070.04714.69
5.3.210.0000.04714.56
5.3.200.0100.06714.69
5.3.190.0070.03314.42
5.3.180.0070.04714.58
5.3.170.0100.03714.58
5.3.160.0000.03714.54
5.3.150.0170.02314.52
5.3.140.0030.07314.68
5.3.130.0070.07714.63
5.3.120.0000.04314.55
5.3.110.0000.04014.41
5.3.100.0030.03314.04
5.3.90.0030.05714.16
5.3.80.0030.03714.24
5.3.70.0030.03314.02
5.3.60.0130.05014.08
5.3.50.0100.02313.99
5.3.40.0030.04014.08
5.3.30.0130.03014.03
5.3.20.0000.04013.77
5.3.10.0030.03013.74
5.3.00.0000.03713.48
5.2.170.0030.03011.90
5.2.160.0070.04711.90
5.2.150.0000.03011.90
5.2.140.0070.02311.90
5.2.130.0100.03011.90
5.2.120.0000.03011.90
5.2.110.0000.03311.90
5.2.100.0070.02311.90
5.2.90.0030.02711.90
5.2.80.0070.02011.90
5.2.70.0000.04011.90
5.2.60.0000.03011.90
5.2.50.0030.03311.90
5.2.40.0000.03011.90
5.2.30.0030.02711.90
5.2.20.0000.03011.90
5.2.10.0030.03011.90
5.2.00.0030.02711.90
5.1.60.0000.03711.90
5.1.50.0030.03011.90
5.1.40.0000.05711.90
5.1.30.0030.02311.90
5.1.20.0000.04311.90
5.1.10.0030.04011.90
5.1.00.0100.05311.90
5.0.50.0000.02311.90
5.0.40.0070.03711.90
5.0.30.0000.06311.90
5.0.20.0030.02011.90
5.0.10.0030.04311.90
5.0.00.0030.04711.90
4.4.90.0070.01011.90
4.4.80.0030.01011.90
4.4.70.0000.01711.90
4.4.60.0030.02011.90
4.4.50.0000.01711.90
4.4.40.0030.05311.90
4.4.30.0070.01311.90
4.4.20.0000.03011.90
4.4.10.0000.01711.90
4.4.00.0030.05011.90
4.3.110.0030.02711.90
4.3.100.0000.02311.90
4.3.90.0030.01711.90
4.3.80.0030.02711.90
4.3.70.0030.03311.90
4.3.60.0030.03311.90
4.3.50.0030.03311.90
4.3.40.0000.03011.90
4.3.30.0000.01711.90
4.3.20.0000.01711.90
4.3.10.0030.01711.90
4.3.00.0000.03011.90

preferences:
64.48 ms | 403 KiB | 5 Q