3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = " 'muito bom parabéns 😤' AND r0_.avaliacao = 'Parabéns 😤' "; $str = 'Muito bom, parabpens.'; $str_encoding = mb_detect_encoding($str, 'auto'); $str_name = iconv($str_encoding, 'UTF-8', $str); $str_name = preg_replace('/[^\p{L}\p{N}\s]\w/u', '', $str); print($str_name);

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.40.0110.00418.84
8.3.30.0080.00818.79
8.3.20.0040.00420.20
8.3.10.0040.00423.66
8.3.00.0050.00223.64
8.2.170.0140.00022.96
8.2.160.0100.00320.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0050.00221.25
8.2.110.0040.00421.00
8.2.100.0040.00718.16
8.2.90.0040.00419.17
8.2.80.0040.00417.97
8.2.70.0080.00017.88
8.2.60.0040.00718.05
8.2.50.0000.00818.07
8.2.40.0040.00422.40
8.2.30.0000.00719.54
8.2.20.0040.00418.01
8.2.10.0040.00418.35
8.2.00.0040.00418.41
8.1.270.0070.00720.38
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0120.00622.55
8.1.230.0080.00419.07
8.1.220.0000.00917.90
8.1.210.0080.00018.77
8.1.200.0000.00917.48
8.1.190.0060.00317.38
8.1.180.0000.00818.10
8.1.170.0060.00318.62
8.1.160.0030.00520.89
8.1.150.0070.00019.05
8.1.140.0060.00319.73
8.1.130.0070.00017.86
8.1.120.0080.00017.61
8.1.110.0030.00717.50
8.1.100.0050.00217.65
8.1.90.0000.00717.57
8.1.80.0000.00717.51
8.1.70.0000.00717.62
8.1.60.0040.00417.78
8.1.50.0030.00517.56
8.1.40.0050.00317.68
8.1.30.0040.00417.86
8.1.20.0040.00417.78
8.1.10.0070.00017.63
8.1.00.0040.00417.65
8.0.300.0080.00018.77
8.0.290.0050.00317.00
8.0.280.0070.00018.54
8.0.270.0030.00317.34
8.0.260.0030.00317.35
8.0.250.0000.00717.14
8.0.240.0030.00317.26
8.0.230.0000.00717.14
8.0.220.0000.00917.09
8.0.210.0040.00417.05
8.0.200.0070.00417.18
8.0.190.0000.00817.17
8.0.180.0020.00517.17
8.0.170.0040.00417.07
8.0.160.0040.00417.12
8.0.150.0020.00516.95
8.0.140.0040.00417.07
8.0.130.0000.00613.41
8.0.120.0000.01017.20
8.0.110.0030.00617.34
8.0.100.0030.00617.22
8.0.90.0030.00617.34
8.0.80.0030.01417.31
8.0.70.0000.00917.25
8.0.60.0090.00017.11
8.0.50.0030.00617.14
8.0.30.0110.00817.35
8.0.20.0140.00817.40
8.0.10.0000.00917.17
8.0.00.0110.01117.08
7.4.330.0030.00316.80
7.4.320.0030.00316.78
7.4.300.0070.00016.91
7.4.290.0000.00816.74
7.4.280.0050.00516.69
7.4.270.0070.00016.89
7.4.260.0110.00016.89
7.4.250.0030.00616.99
7.4.240.0040.00517.01
7.4.230.0080.00017.04
7.4.220.0070.01316.92
7.4.210.0090.00916.87
7.4.200.0000.00817.06
7.4.160.0000.01716.86
7.4.150.0090.00917.40
7.4.140.0200.02017.86
7.4.130.0120.00816.79
7.4.120.0090.01316.83
7.4.110.0100.01016.88
7.4.100.0120.00916.84
7.4.90.0090.01216.89
7.4.80.0080.01219.39
7.4.70.0070.01816.80
7.4.60.0120.01216.72
7.4.50.0110.00916.40
7.4.40.0110.01116.70
7.4.30.0170.00716.70
7.4.20.0180.00916.68
7.4.10.0080.01216.61
7.4.00.0070.01116.01
7.3.330.0000.00513.14
7.3.320.0000.00613.21
7.3.310.0030.00616.46
7.3.300.0030.00716.61
7.3.290.0060.01416.58
7.3.280.0080.01216.62
7.3.270.0200.00917.40
7.3.260.0080.01216.93
7.3.240.0110.01416.57
7.3.230.0130.00616.75
7.3.210.0090.00916.51
7.3.200.0090.00916.52
7.3.190.0160.00716.64
7.3.180.0080.01416.70
7.3.170.0120.01116.76
7.3.160.0120.01016.48
7.3.150.0080.01716.68
7.3.140.0050.01416.67
7.3.130.0160.00416.66
7.3.120.0070.01416.58
7.3.110.0090.01216.76
7.3.100.0110.01116.64
7.3.90.0170.00716.75
7.3.80.0130.00816.64
7.3.70.0130.01316.65
7.3.60.0120.00716.63
7.3.50.0090.01216.55
7.3.40.0150.00416.62
7.3.30.0130.01016.71
7.3.20.0150.00416.67
7.3.10.0070.01016.60
7.3.00.0060.01116.91
7.2.330.0080.01116.82
7.2.320.0100.01316.80
7.2.310.0140.00816.88
7.2.300.0040.01716.78
7.2.290.0100.01216.88
7.2.280.0000.02216.83
7.2.270.0090.01216.85
7.2.260.0080.01316.70
7.2.250.0090.01316.92
7.2.240.0130.00816.77
7.2.230.0120.01216.82
7.2.220.0030.01816.85
7.2.210.0090.01516.88
7.2.200.0110.01116.89
7.2.190.0170.00316.80
7.2.180.0110.00816.77
7.2.170.0080.01116.69
7.2.160.0150.00916.77
7.2.150.0520.01016.73
7.2.140.0100.01016.71
7.2.130.0090.01017.05
7.2.120.0070.01017.08
7.2.110.0030.01317.11
7.2.100.0060.01117.07
7.2.90.0050.01217.07
7.2.80.0100.01017.05
7.2.70.0060.00917.02
7.2.60.0100.00817.05
7.2.50.0070.01117.06
7.2.40.0070.01116.83
7.2.30.0110.00616.96
7.2.20.0070.01116.90
7.2.10.0090.00917.01
7.2.00.0040.01217.93
7.1.330.0240.00815.81
7.1.320.0270.01216.01
7.1.310.0220.01316.07
7.1.300.0220.00816.02
7.1.290.0190.01015.91
7.1.280.0230.01116.12
7.1.270.0220.01015.93
7.1.260.0230.00915.84
7.1.250.0110.00915.96
7.1.240.0200.00815.84
7.1.230.0260.00615.97
7.1.220.0180.00915.70
7.1.210.0510.00715.89
7.1.200.0070.01316.05
7.1.190.0080.01915.98
7.1.180.0280.00915.80
7.1.170.0140.02016.01
7.1.160.0180.01115.84
7.1.150.0310.00315.96
7.1.140.0250.01315.78
7.1.130.0180.01815.73
7.1.120.0170.01415.95
7.1.110.0200.00815.95
7.1.100.0220.01017.08
7.1.90.0170.01015.94
7.1.80.0160.01915.90
7.1.70.0160.00616.74
7.1.60.0150.01517.61
7.1.50.0490.01016.74
7.1.40.0220.01015.90
7.1.30.0230.00816.01
7.1.20.0210.00715.88
7.1.10.0200.00815.88
7.1.00.0120.04219.26
7.0.330.0170.00915.67
7.0.320.0200.01015.42
7.0.310.0180.00915.58
7.0.300.0200.00815.47
7.0.290.0170.01015.55
7.0.280.0500.01015.50
7.0.270.0160.01415.48
7.0.260.0200.01015.55
7.0.250.0090.01815.66
7.0.240.0160.01215.74
7.0.230.0170.01015.57
7.0.220.0250.00315.39
7.0.210.0230.01015.73
7.0.200.0190.01116.28
7.0.190.0170.01115.67
7.0.180.0210.01715.45
7.0.170.0200.00915.81
7.0.160.0120.01815.76
7.0.150.0220.00615.66
7.0.140.0140.01715.79
7.0.130.0310.01415.66
7.0.120.0150.01215.66
7.0.110.0090.01815.38
7.0.100.0180.00915.57
7.0.90.0210.01215.59
7.0.80.0210.01115.60
7.0.70.0250.00415.66
7.0.60.0130.04618.65
7.0.50.0100.05516.80
7.0.40.0220.03017.99
7.0.30.0210.05017.99
7.0.20.0260.03617.96
7.0.10.0150.04917.95
7.0.00.0070.04117.98
5.6.400.0120.01815.99
5.6.390.0160.01115.92
5.6.380.0220.00615.97
5.6.370.0160.01216.20
5.6.360.0190.01215.91
5.6.350.0190.01316.20
5.6.340.0190.00916.28
5.6.330.0120.01816.23
5.6.320.0200.01016.12
5.6.310.0200.01016.00
5.6.300.0130.01716.11
5.6.290.0230.00716.04
5.6.280.0210.00716.33
5.6.270.0140.01615.95
5.6.260.0180.00916.24
5.6.250.0150.01116.04
5.6.240.0250.01116.08
5.6.230.0200.01216.11
5.6.220.0140.01716.35
5.6.210.0100.05318.49
5.6.200.0100.04817.12
5.6.190.0170.02418.19
5.6.180.0340.03218.40
5.6.170.0370.05118.29
5.6.160.0180.04318.28
5.6.150.0150.04717.16
5.6.140.0190.02617.18
5.6.130.0130.03717.13
5.6.120.0160.03718.71
5.6.110.0110.04918.65
5.6.100.0120.05118.57
5.6.90.0140.04818.66
5.6.80.0170.04318.33
5.6.70.0210.00816.05
5.6.60.0120.01915.95
5.6.50.0200.01016.00
5.6.40.0270.01016.03
5.6.30.0220.01315.96
5.6.20.0200.01215.99
5.6.10.0270.00715.95
5.6.00.0260.01015.90
5.5.380.0240.00415.96
5.5.370.0220.00516.13
5.5.360.0230.00716.21
5.5.350.2190.02818.28
5.5.340.0080.05216.91
5.5.330.0130.02918.28
5.5.320.0430.04718.19
5.5.310.0250.04918.33
5.5.300.0110.02817.10
5.5.290.0130.02817.04
5.5.280.0160.02418.57
5.5.270.0120.02718.35
5.5.260.0110.04918.45
5.5.250.0150.02718.28
5.5.240.0130.04418.15
5.5.230.0260.00615.95
5.5.220.0170.01315.85
5.5.210.0100.01915.87
5.5.200.0300.01015.86
5.5.190.0130.02015.90
5.5.180.0200.01015.89
5.5.170.0230.01015.90
5.5.160.0190.01116.00
5.5.150.0180.01615.89
5.5.140.0170.01415.97
5.5.130.0190.01216.10
5.5.120.0120.01915.86
5.5.110.0210.01016.01
5.5.100.0130.01615.96
5.5.90.0190.01115.73
5.5.80.0130.01716.00
5.5.70.0300.00415.88
5.5.60.0200.01215.71
5.5.50.0110.01915.80
5.5.40.0150.01215.93
5.5.30.0190.01115.79
5.5.20.0140.01415.88
5.5.10.0190.01215.95
5.5.00.0220.01216.04

preferences:
44.28 ms | 400 KiB | 5 Q