3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = " muito bom parabéns 😤 AND r0_.avaliacao = 'Parabéns 😤' "; $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); $str_name = 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','?', $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.60.0120.00616.88
8.3.50.0090.01022.02
8.3.40.0090.00618.96
8.3.30.0120.00418.92
8.3.20.0080.00020.20
8.3.10.0030.00623.39
8.3.00.0000.00823.66
8.2.180.0040.01116.63
8.2.170.0040.01122.96
8.2.160.0140.00020.43
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0040.00419.95
8.2.120.0040.00426.35
8.2.110.0090.00021.16
8.2.100.0090.00318.05
8.2.90.0040.00419.21
8.2.80.0040.00417.97
8.2.70.0080.00017.75
8.2.60.0050.00318.05
8.2.50.0000.00818.07
8.2.40.0080.00022.45
8.2.30.0000.00719.55
8.2.20.0030.00618.05
8.2.10.0000.00818.22
8.2.00.0070.00018.18
8.1.280.0100.01025.92
8.1.270.0060.00320.38
8.1.260.0090.00028.09
8.1.250.0040.00428.09
8.1.240.0050.00522.54
8.1.230.0030.00719.01
8.1.220.0030.00617.79
8.1.210.0060.00318.77
8.1.200.0060.00317.60
8.1.190.0040.00417.47
8.1.180.0030.00518.10
8.1.170.0040.00418.59
8.1.160.0040.00420.83
8.1.150.0040.00418.93
8.1.140.0050.00319.75
8.1.130.0030.00317.66
8.1.120.0040.00417.54
8.1.110.0080.00017.67
8.1.100.0080.00017.59
8.1.90.0040.00417.52
8.1.80.0070.00017.62
8.1.70.0050.00217.63
8.1.60.0000.00817.59
8.1.50.0050.00317.61
8.1.40.0030.00517.59
8.1.30.0040.00417.75
8.1.20.0050.00317.75
8.1.10.0040.00417.76
8.1.00.0080.00017.68
8.0.300.0000.00718.77
8.0.290.0000.00817.13
8.0.280.0050.00218.53
8.0.270.0040.00417.49
8.0.260.0060.00017.45
8.0.250.0040.00417.31
8.0.240.0040.00417.32
8.0.230.0030.00317.26
8.0.220.0030.00517.20
8.0.210.0000.00717.18
8.0.200.0040.00417.14
8.0.190.0030.00617.13
8.0.180.0060.00317.10
8.0.170.0050.00317.24
8.0.160.0040.00417.26
8.0.150.0020.00517.14
8.0.140.0040.00417.12
8.0.130.0030.00313.35
8.0.120.0030.00617.30
8.0.110.0030.00717.32
8.0.100.0030.00617.21
8.0.90.0000.00917.35
8.0.80.0060.01017.31
8.0.70.0000.00917.43
8.0.60.0000.00917.34
8.0.50.0030.00617.18
8.0.30.0050.01517.48
8.0.20.0080.01217.44
8.0.10.0060.00317.21
8.0.00.0090.01117.04
7.4.330.0050.00016.74
7.4.320.0060.00016.91
7.4.300.0060.00316.94
7.4.290.0040.00416.81
7.4.280.0000.00916.80
7.4.270.0070.00016.88
7.4.260.0070.00016.68
7.4.250.0000.00917.00
7.4.240.0020.00717.04
7.4.230.0000.00816.75
7.4.220.0090.01316.90
7.4.210.0060.01116.98
7.4.200.0090.00017.02
7.4.160.0120.00917.04
7.4.150.0070.01317.40
7.4.140.0090.01517.86
7.4.130.0100.01316.89
7.4.120.0100.01316.87
7.4.110.0070.01316.88
7.4.100.0100.01316.84
7.4.90.0180.01016.85
7.4.80.0080.01219.39
7.4.70.0110.01016.65
7.4.60.0090.01016.69
7.4.50.0050.01216.71
7.4.40.0080.01416.64
7.4.30.0060.01816.63
7.4.20.0040.01716.64
7.4.10.0080.01116.82
7.4.00.0060.01115.74
7.3.330.0000.00513.25
7.3.320.0030.00313.16
7.3.310.0000.00816.62
7.3.300.0040.00416.57
7.3.290.0060.01316.64
7.3.280.0060.01116.63
7.3.270.0090.01217.40
7.3.260.0060.01316.86
7.3.240.0050.01616.71
7.3.230.0130.01016.79
7.3.210.0150.00616.62
7.3.200.0140.00616.54
7.3.190.0040.01516.81
7.3.180.0080.01116.63
7.3.170.0080.01416.77
7.3.160.0050.01616.63
7.3.150.0240.00016.72
7.3.140.0080.01016.64
7.3.130.0090.00916.98
7.3.120.0060.01215.76
7.3.110.0090.01115.52
7.3.100.0070.00915.49
7.3.90.0090.00815.58
7.3.80.0100.00915.56
7.3.70.0080.00915.55
7.3.60.0070.01015.65
7.3.50.0050.01115.48
7.3.40.0060.01015.59
7.3.30.0070.00915.56
7.3.20.0080.00816.89
7.3.10.0080.00516.85
7.3.00.0050.00816.79
7.2.330.0150.00817.02
7.2.320.0170.00716.84
7.2.310.0060.01316.78
7.2.300.0110.01116.78
7.2.290.0130.01216.88
7.2.280.0160.00316.83
7.2.270.0100.01016.98
7.2.260.0070.01416.62
7.2.250.0080.01216.00
7.2.240.0060.01315.63
7.2.230.0070.00815.77
7.2.220.0050.01015.87
7.2.210.0040.01415.96
7.2.200.0100.00815.78
7.2.190.0080.00915.86
7.2.180.0050.01015.85
7.2.170.0070.00815.77
7.2.160.0020.01515.89
7.2.150.0020.01216.96
7.2.140.0060.01116.86
7.2.130.0010.01316.82
7.2.120.0090.01016.87
7.2.110.0060.00817.13
7.2.100.0110.00816.82
7.2.90.0070.01016.81
7.2.80.0420.01417.19
7.2.70.0100.01016.86
7.2.60.0090.01117.09
7.2.50.0190.00916.90
7.2.40.0080.00916.97
7.2.30.0040.01517.03
7.2.20.0040.01317.03
7.2.10.0080.00816.98
7.2.00.0060.01217.98
7.1.330.0090.01015.97
7.1.320.0250.00916.11
7.1.310.0110.00915.97
7.1.300.0250.00915.99
7.1.290.0130.00716.10
7.1.280.0140.00616.17
7.1.270.0100.00816.03
7.1.260.0110.00916.06
7.1.250.0170.00716.17
7.1.240.0150.01415.72
7.1.230.0210.01015.82
7.1.220.0200.00815.86
7.1.210.0160.01316.00
7.1.200.0110.01216.03
7.1.190.0240.01115.89
7.1.180.0290.00615.86
7.1.170.0170.01415.96
7.1.160.0230.01315.71
7.1.150.0220.01115.95
7.1.140.0190.01015.78
7.1.130.0380.00515.76
7.1.120.0600.01615.99
7.1.110.0180.01415.87
7.1.100.0150.01017.09
7.1.90.0180.01516.05
7.1.80.0260.00916.04
7.1.70.0120.01016.62
7.1.60.0100.01817.57
7.1.50.0120.01216.74
7.1.40.0180.01416.12
7.1.30.0210.01215.95
7.1.20.0270.00715.98
7.1.10.0680.00315.88
7.1.00.0130.04219.23
7.0.330.0250.00315.67
7.0.320.0170.01015.66
7.0.310.0130.01315.67
7.0.300.0160.01015.39
7.0.290.0330.00915.53
7.0.280.0230.01115.72
7.0.270.0230.00715.51
7.0.260.0160.01215.72
7.0.250.0160.01315.65
7.0.240.0160.01315.59
7.0.230.0220.00915.70
7.0.220.0200.01615.55
7.0.210.0190.01015.61
7.0.200.0110.00916.38
7.0.190.0160.01315.61
7.0.180.0180.01115.61
7.0.170.0270.00615.52
7.0.160.0110.01515.56
7.0.150.0190.01115.61
7.0.140.0300.01015.70
7.0.130.0230.00515.73
7.0.120.0220.01415.63
7.0.110.0150.01115.62
7.0.100.0090.01815.64
7.0.90.0220.00615.43
7.0.80.0170.01415.43
7.0.70.0110.01615.66
7.0.60.0070.04718.73
7.0.50.0130.04716.81
7.0.40.0140.02618.01
7.0.30.0250.02617.94
7.0.20.0250.03617.95
7.0.10.0090.05018.00
7.0.00.0130.04817.90
5.6.400.0040.02516.06
5.6.390.0170.01416.29
5.6.380.0120.01715.98
5.6.370.0240.00716.27
5.6.360.0160.01215.86
5.6.350.0130.01616.21
5.6.340.0250.01116.30
5.6.330.0170.01316.19
5.6.320.0240.00616.37
5.6.310.0190.01115.98
5.6.300.0230.00815.82
5.6.290.0240.00716.15
5.6.280.0120.03718.63
5.6.270.0210.01116.28
5.6.260.0180.00916.24
5.6.250.0170.01416.10
5.6.240.0180.01716.35
5.6.230.0170.01416.12
5.6.220.0200.01016.12
5.6.210.0160.04718.42
5.6.200.0090.05117.25
5.6.190.0120.02818.33
5.6.180.0310.04818.40
5.6.170.0250.04318.28
5.6.160.0150.02818.39
5.6.150.0130.03817.19
5.6.140.0090.04017.21
5.6.130.0130.05017.26
5.6.120.0150.02618.71
5.6.110.0130.04318.47
5.6.100.0120.03118.55
5.6.90.0110.04718.60
5.6.80.0130.04818.28
5.6.70.0120.01516.04
5.6.60.0220.01115.93
5.6.50.0210.00716.00
5.6.40.0130.01315.82
5.6.30.0250.00415.92
5.6.20.0300.00916.00
5.6.10.0170.01416.16
5.6.00.0220.01316.13
5.5.380.0290.00415.88
5.5.370.0210.00815.83
5.5.360.0190.01116.09
5.5.350.2230.02218.15
5.5.340.0140.02517.24
5.5.330.0110.02718.23
5.5.320.0360.02518.39
5.5.310.0190.02518.17
5.5.300.0100.02717.06
5.5.290.0120.03717.18
5.5.280.0090.02918.67
5.5.270.0130.02518.59
5.5.260.0110.04118.46
5.5.250.0100.05518.39
5.5.240.0170.04318.00
5.5.230.0230.00616.07
5.5.220.0190.01316.09
5.5.210.0170.01115.85
5.5.200.0200.01015.81
5.5.190.0170.01016.09
5.5.180.0160.01315.90
5.5.170.0180.01715.96
5.5.160.0190.01915.98
5.5.150.0170.01715.88
5.5.140.0170.01316.02
5.5.130.0150.01916.18
5.5.120.0210.01115.74
5.5.110.0240.01616.07
5.5.100.0190.01216.04
5.5.90.0210.01815.79
5.5.80.0110.01816.06
5.5.70.0210.01815.79
5.5.60.0240.01115.85
5.5.50.0180.01216.14
5.5.40.0140.01416.11
5.5.30.0160.01315.89
5.5.20.0230.00716.07
5.5.10.0150.01416.13
5.5.00.0080.02016.12

preferences:
58.16 ms | 401 KiB | 5 Q