3v4l.org

run code in 300+ PHP versions simultaneously
<?php function _normalizaString($string) { $a = "ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæèéêëìíîïðñòóôõöøùúûýýþÿ"; $b = "aaaaaaaceeeeiiiidnoooooouuuuybsaaaaaaaeeeeiiiidnoooooouuuyyby"; $string = strtr(utf8_decode($string), utf8_decode($a), $b); return preg_replace('/\s+/', ' ', trim(strtolower($string), '()[]{}._\t\b\r')); } echo _normalizaString('açúcar');

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.0090.00616.50
8.3.50.0150.00322.17
8.3.40.0120.00918.98
8.3.30.0110.00319.13
8.3.20.0050.00320.15
8.3.10.0040.00423.48
8.3.00.0080.00019.63
8.2.180.0060.00918.54
8.2.170.0060.01022.96
8.2.160.0090.00620.43
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0080.00026.16
8.2.120.0070.00022.26
8.2.110.0030.00722.02
8.2.100.0040.00717.97
8.2.90.0060.00319.17
8.2.80.0030.00618.04
8.2.70.0000.01017.75
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0060.00318.16
8.2.30.0030.00518.07
8.2.20.0080.00017.79
8.2.10.0000.00817.95
8.2.00.0030.00718.00
8.1.280.0140.00025.92
8.1.270.0090.00023.89
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0000.00824.02
8.1.230.0040.00719.16
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00617.36
8.1.190.0040.00417.16
8.1.180.0040.00419.13
8.1.170.0040.00418.49
8.1.160.0000.00721.93
8.1.150.0030.00618.64
8.1.140.0020.00517.53
8.1.130.0040.00417.75
8.1.120.0050.00217.45
8.1.110.0030.00317.54
8.1.100.0050.00317.47
8.1.90.0040.00417.44
8.1.80.0000.00717.61
8.1.70.0070.00017.53
8.1.60.0090.00017.72
8.1.50.0090.00017.69
8.1.40.0040.00417.70
8.1.30.0050.00317.77
8.1.20.0030.00617.82
8.1.10.0040.00417.60
8.1.00.0050.00217.59
8.0.300.0000.00918.77
8.0.290.0040.00417.05
8.0.280.0070.00018.46
8.0.270.0000.00717.27
8.0.260.0000.00617.38
8.0.250.0030.00316.97
8.0.240.0030.00317.04
8.0.230.0000.00817.00
8.0.220.0070.00016.96
8.0.210.0040.00416.97
8.0.200.0000.00717.03
8.0.190.0050.00216.92
8.0.180.0020.00516.89
8.0.170.0040.00417.03
8.0.160.0030.00517.02
8.0.150.0060.00316.96
8.0.140.0000.00816.94
8.0.130.0000.00513.40
8.0.120.0040.00416.94
8.0.110.0050.00316.94
8.0.100.0000.00817.04
8.0.90.0000.00716.80
8.0.80.0040.01116.94
8.0.70.0030.00516.89
8.0.60.0040.00416.96
8.0.50.0050.00317.03
8.0.30.0140.00417.19
8.0.20.0140.00817.42
8.0.10.0080.00017.14
8.0.00.0090.01016.73
7.4.330.0030.00315.00
7.4.320.0000.00616.67
7.4.300.0030.00316.75
7.4.290.0030.00316.71
7.4.280.0000.00716.80
7.4.270.0070.00016.61
7.4.260.0030.00316.79
7.4.250.0000.00716.67
7.4.240.0030.00316.72
7.4.230.0030.00316.88
7.4.220.0150.00816.91
7.4.210.0080.01016.72
7.4.200.0040.00416.55
7.4.190.0070.00016.61
7.4.160.0060.01016.42
7.4.150.0090.00917.40
7.4.140.0110.00717.86
7.4.130.0060.01116.62
7.4.120.0120.00516.69
7.4.110.0030.01316.63
7.4.100.0170.00716.66
7.4.90.0070.01016.60
7.4.80.0070.01019.39
7.4.70.0070.01016.85
7.4.60.0110.00716.78
7.4.50.0090.00016.64
7.4.40.0060.01022.77
7.4.30.0050.01616.66
7.4.00.0040.01215.09
7.3.330.0060.00013.20
7.3.320.0030.00313.14
7.3.310.0040.00416.32
7.3.300.0030.00316.43
7.3.290.0070.01116.39
7.3.280.0050.01016.38
7.3.270.0150.00317.40
7.3.260.0090.00816.48
7.3.250.0060.01216.45
7.3.240.0100.00716.40
7.3.230.0090.00916.70
7.3.210.0100.00716.45
7.3.200.0070.01719.39
7.3.190.0070.01116.46
7.3.180.0090.00616.72
7.3.170.0030.01216.43
7.3.160.0130.00316.63
7.3.120.0070.00715.09
7.2.330.0120.00816.95
7.2.320.0120.00616.83
7.2.310.0040.01816.81
7.2.300.0070.01016.73
7.2.290.0090.01216.67
7.2.00.0070.00719.50
7.1.100.0050.00518.14
7.1.70.0040.00417.34
7.1.60.0070.01019.33
7.1.50.0100.00717.15
7.1.00.0070.07322.34
7.0.200.0050.00516.83
7.0.140.0030.07321.95
7.0.60.0130.08019.91
7.0.50.0130.07317.87
7.0.40.0100.08720.42
7.0.30.0130.08020.08
7.0.20.0200.05720.22
7.0.10.0130.08020.26
7.0.00.0100.08320.46
5.6.280.0100.06720.87
5.6.210.0130.07320.71
5.6.200.0000.06018.13
5.6.190.0030.06320.55
5.6.180.0330.07720.42
5.6.170.0400.07320.51
5.6.160.0130.07720.50
5.6.150.0100.07718.29
5.6.140.0000.04018.14
5.6.130.0100.08318.18
5.6.120.0000.08721.14
5.6.110.0130.07321.01
5.6.100.0100.08021.01
5.6.90.0070.06720.89
5.6.80.0030.04720.41
5.6.70.3470.04020.39
5.5.350.0130.07720.45
5.5.340.0030.05718.04
5.5.330.0000.09320.43
5.5.320.0070.06720.25
5.5.310.0230.05020.41
5.5.300.0000.06018.09
5.5.290.0100.07717.98
5.5.280.0100.07720.79
5.5.270.0100.05320.76
5.5.260.0100.05020.80
5.5.250.0130.06720.47
5.5.240.0200.07720.15
5.4.450.0300.07019.40
5.4.440.0900.06019.48
5.4.430.0830.07719.19
5.4.420.1000.07719.61
5.4.410.0970.07019.47
5.4.400.0500.05719.29
5.4.390.0670.06019.30
5.4.380.0230.05718.55
5.4.370.0300.05318.72
5.4.360.0300.07318.70
5.4.350.0200.06018.47
5.4.340.0300.05318.75
5.4.320.0040.03912.50
5.4.310.0040.04212.50
5.4.300.0050.03912.50
5.4.290.0070.03812.50
5.4.280.0050.04712.37
5.4.270.0090.04112.37
5.4.260.0070.04512.38
5.4.250.0150.05312.37
5.4.240.0070.04512.38
5.4.230.0140.04112.36
5.4.220.0080.05312.36
5.4.210.0250.06012.36
5.4.200.0080.05612.37
5.4.190.0130.05212.36
5.4.180.0460.18112.36
5.4.170.0250.08912.37
5.4.160.0200.08712.36
5.4.150.0330.07612.36
5.4.140.0170.07212.04
5.4.130.0210.07412.03
5.4.120.0110.06111.99
5.4.110.0210.09211.98
5.4.100.0170.07611.98
5.4.90.0180.06911.98
5.4.80.0160.06611.98
5.4.70.0090.04711.98
5.4.60.0100.04411.98
5.4.50.0070.05711.98
5.4.40.0090.05211.96
5.4.30.0140.06411.97
5.4.20.0110.06911.97
5.4.10.0180.06111.97
5.4.00.0070.04811.45
5.3.290.0130.07512.80
5.3.280.0130.05312.71
5.3.270.0100.08512.72
5.3.260.0120.06212.72
5.3.250.0130.07112.72
5.3.240.0080.05412.71
5.3.230.0120.05112.71
5.3.220.0090.05212.68
5.3.210.0270.11112.68
5.3.200.0070.05012.68
5.3.190.0090.04812.68
5.3.180.0070.04312.67
5.3.170.0130.03912.67
5.3.160.0090.03912.67
5.3.150.0090.04112.67
5.3.140.0090.03912.66
5.3.130.0100.04012.66
5.3.120.0080.04112.66
5.3.110.0060.04512.66
5.3.100.0120.05012.12
5.3.90.0190.11912.09
5.3.80.0100.03512.07
5.3.70.0110.04712.07
5.3.60.0110.04712.06
5.3.50.0050.03812.00
5.3.40.0070.04312.00
5.3.30.0080.04311.95
5.3.20.0160.04211.74
5.3.10.0070.04511.70
5.3.00.0110.04111.69
5.2.170.0100.0379.19
5.2.160.0080.0419.18
5.2.150.0090.0429.18
5.2.140.0140.0409.18
5.2.130.0090.0439.14
5.2.120.0080.0479.15
5.2.110.0090.0429.15
5.2.100.0100.0409.14
5.2.90.0070.0329.14
5.2.80.0070.0329.14
5.2.70.0130.0349.14
5.2.60.0040.0439.09
5.2.50.0090.0469.07
5.2.40.0120.0459.05
5.2.30.0070.0459.02
5.2.20.0060.0319.01
5.2.10.0040.0328.92
5.2.00.0040.0338.78
5.1.60.0060.0328.06
5.1.50.0070.0288.07
5.1.40.0070.0268.04
5.1.30.0060.0358.39
5.1.20.0050.0298.42
5.1.10.0070.0318.14
5.1.00.0060.0348.14
5.0.50.0050.0246.61
5.0.40.0070.0206.48
5.0.30.0060.0326.29
5.0.20.0060.0266.26
5.0.10.0070.0216.24
5.0.00.0040.0386.23
4.4.90.0050.0164.78
4.4.80.0040.0204.75
4.4.70.0040.0184.75
4.4.60.0090.0124.76
4.4.50.0050.0174.77
4.4.40.0050.0274.71
4.4.30.0040.0204.76
4.4.20.0090.0254.84
4.4.10.0110.0394.85
4.4.00.0040.0284.76
4.3.110.0040.0194.67
4.3.100.0040.0164.66
4.3.90.0030.0174.63
4.3.80.0020.0274.59
4.3.70.0030.0174.63
4.3.60.0030.0174.63
4.3.50.0040.0174.63
4.3.40.0060.0244.54
4.3.30.0010.0193.29
4.3.20.0030.0183.26
4.3.10.0030.0203.23
4.3.00.0070.02010.30

preferences:
40.97 ms | 400 KiB | 5 Q