3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nettoyer = function ($text) { $text = (string) $text; // note : null devient '' $text = html_entity_decode($text, ENT_QUOTES, 'UTF-8'); // certaines données sont encodées $text = strip_tags($text); // certaines données contiennent des balises HTML (<a>, <span>, ...) $text = trim($text, " \t\n\r\0\x0B\xC2\xA0"); // "\xC2\xA0" espace insécable UTF-8 return $text; };

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.0160.00318.71
8.3.30.0090.00618.89
8.3.20.0040.00420.16
8.3.10.0070.00023.65
8.3.00.0070.01019.26
8.2.170.0100.00722.96
8.2.160.0100.00320.25
8.2.150.0040.01124.18
8.2.140.0040.00424.66
8.2.130.0060.01226.16
8.2.120.0030.01422.27
8.2.110.0070.00322.08
8.2.100.0040.00817.91
8.2.90.0040.00419.22
8.2.80.0030.00517.97
8.2.70.0040.00417.50
8.2.60.0000.00817.93
8.2.50.0100.00018.07
8.2.40.0000.00819.88
8.2.30.0030.00619.73
8.2.20.0070.00017.80
8.2.10.0000.00717.98
8.2.00.0100.00017.75
8.1.270.0120.00323.82
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00723.92
8.1.230.0040.00718.97
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0050.00317.55
8.1.180.0060.00318.10
8.1.170.0000.00918.57
8.1.160.0000.00822.03
8.1.150.0070.00018.65
8.1.140.0000.00817.45
8.1.130.0070.00017.83
8.1.120.0000.00717.42
8.1.110.0040.00417.34
8.1.100.0040.00417.48
8.1.90.0000.00817.44
8.1.80.0040.00417.30
8.1.70.0000.00717.27
8.1.60.0060.00617.62
8.1.50.0040.00417.53
8.1.40.0000.00817.55
8.1.30.0050.00317.62
8.1.20.0030.00617.63
8.1.10.0050.00217.32
8.1.00.0080.00017.29
8.0.300.0070.00019.15
8.0.290.0070.00016.93
8.0.280.0070.00018.34
8.0.270.0000.00717.25
8.0.260.0060.00017.25
8.0.250.0050.00216.80
8.0.240.0030.00316.81
8.0.230.0000.00816.80
8.0.220.0000.00716.73
8.0.210.0000.00716.73
8.0.200.0000.00716.87
8.0.190.0030.00616.91
8.0.180.0040.00416.89
8.0.170.0000.00816.90
8.0.160.0030.00316.90
8.0.150.0060.00316.80
8.0.140.0070.00016.76
8.0.130.0000.00513.38
8.0.120.0000.00816.75
8.0.110.0000.00716.82
8.0.100.0070.00016.76
8.0.90.0030.00316.68
8.0.80.0120.00416.85
8.0.70.0040.00416.88
8.0.60.0050.00316.75
8.0.50.0070.00016.93
8.0.30.0100.00817.02
8.0.20.0110.01117.40
8.0.10.0070.00017.11
8.0.00.0100.00816.76
7.4.330.0030.00315.03
7.4.320.0030.00316.61
7.4.300.0030.00316.52
7.4.290.0030.00616.47
7.4.280.0040.00416.58
7.4.270.0000.00716.47
7.4.260.0030.00316.53
7.4.250.0030.00716.59
7.4.240.0000.00716.61
7.4.230.0030.00316.63
7.4.220.0160.00316.68
7.4.210.0090.00716.59
7.4.200.0030.00316.34
7.4.190.0000.00716.45
7.4.160.0040.01416.36
7.4.150.0160.00017.40
7.4.140.0080.01417.86
7.4.130.0110.00616.57
7.4.120.0040.01216.46
7.4.110.0040.01416.33
7.4.100.0030.01516.45
7.4.90.0150.00316.59
7.4.80.0170.00719.39
7.4.70.0070.01116.51
7.4.60.0180.00716.43
7.4.50.0020.00216.23
7.4.40.0030.00922.77
7.4.30.0080.00816.41
7.4.00.0030.00815.09
7.3.330.0050.00013.11
7.3.320.0000.00513.10
7.3.310.0070.00016.08
7.3.300.0050.00216.27
7.3.290.0110.00316.23
7.3.280.0040.01216.19
7.3.270.0090.00617.40
7.3.260.0080.00816.48
7.3.250.0060.01016.38
7.3.240.0060.01116.25
7.3.230.0160.00616.39
7.3.210.0120.01216.30
7.3.200.0040.01719.39
7.3.190.0100.01016.41
7.3.180.0000.01616.39
7.3.170.0080.00816.39
7.3.160.0060.01016.38
7.3.120.0100.01014.91
7.2.330.0030.01716.44
7.2.320.0120.00916.56
7.2.310.0120.00816.69
7.2.300.0120.00416.45
7.2.290.0090.00916.22
7.2.00.0030.00919.12
7.1.100.0030.01018.30
7.1.70.0060.01016.91
7.1.60.0100.01419.46
7.1.50.0100.01416.80
7.1.00.0000.08022.50
7.0.200.0000.00716.43
7.0.140.0070.07022.11
7.0.60.0100.08019.96
7.0.50.0030.08717.96
7.0.40.0070.05320.25
7.0.30.0100.06020.16
7.0.20.0200.06020.23
7.0.10.0230.08020.19
7.0.00.0030.05320.12
5.6.280.0100.06721.16
5.6.210.0170.07320.73
5.6.200.0070.08318.15
5.6.190.0070.07720.61
5.6.180.0230.06320.46
5.6.170.0270.06720.55
5.6.160.0030.08720.55
5.6.150.0170.07018.25
5.6.140.0070.08018.14
5.6.130.0000.05018.23
5.6.120.0030.09020.90
5.6.110.0070.04021.13
5.6.100.0030.07021.11
5.6.90.0030.08020.98
5.6.80.0070.05320.37
5.6.70.4500.03720.37
5.5.350.0070.08020.37
5.5.340.0130.07717.99
5.5.330.0070.04020.31
5.5.320.0300.04020.21
5.5.310.0230.07720.31
5.5.300.0100.04717.93
5.5.290.0030.05718.03
5.5.280.0170.06720.79
5.5.270.0100.06720.77
5.5.260.0200.07020.89
5.5.250.0100.05720.66
5.5.240.0170.05320.22
5.4.450.0830.05019.55
5.4.440.0630.08319.30
5.4.430.0300.04719.46
5.4.420.0670.05019.46
5.4.410.0800.05019.36
5.4.400.1200.06319.15
5.4.390.0130.05319.14
5.4.380.0330.04318.80
5.4.370.0300.05318.77
5.4.360.0200.06718.79
5.4.350.0170.06018.72
5.4.340.0330.05018.80
5.4.320.0050.03912.50
5.4.310.0080.03712.50
5.4.300.0090.03712.50
5.4.290.0120.05912.48
5.4.280.0080.04612.38
5.4.270.0060.03712.38
5.4.260.0080.03712.38
5.4.250.0080.03712.38
5.4.240.0040.03912.38
5.4.230.0070.03912.38
5.4.220.0080.04012.37
5.4.210.0060.03712.38
5.4.200.0070.03812.37
5.4.190.0070.04012.37
5.4.180.0050.03812.36
5.4.170.0120.05712.38
5.4.160.0040.04012.38
5.4.150.0110.04712.38
5.4.140.0060.05512.05
5.4.130.0070.05012.04
5.4.120.0050.03812.00
5.4.110.0060.03811.99
5.4.100.0070.03712.00
5.4.90.0050.04412.00
5.4.80.0110.03611.99
5.4.70.0050.04211.99
5.4.60.0070.03412.00
5.4.50.0090.03411.99
5.4.40.0100.04411.98
5.4.30.0120.05511.98
5.4.20.0170.06911.98
5.4.10.0120.09911.98
5.4.00.0120.08911.46
5.3.290.0060.04212.80
5.3.280.0110.05012.71
5.3.270.0050.05912.72
5.3.260.0070.05712.72
5.3.250.0080.05912.72
5.3.240.0060.05712.72
5.3.230.0080.05212.71
5.3.220.0040.05812.68
5.3.210.0110.07212.68
5.3.200.0100.06112.68
5.3.190.0060.06212.68
5.3.180.0090.06012.67
5.3.170.0100.06112.67
5.3.160.0050.06612.68
5.3.150.0080.06112.67
5.3.140.0060.07312.66
5.3.130.0120.05312.66
5.3.120.0080.06212.66
5.3.110.0130.06112.66
5.3.100.0140.05312.12
5.3.90.0080.06112.09
5.3.80.0090.05012.09
5.3.70.0120.07812.09
5.3.60.0130.05512.08
5.3.50.0100.04812.02
5.3.40.0100.06012.02
5.3.30.0180.06011.98
5.3.20.0100.08111.75
5.3.10.0110.08711.73
5.3.00.0140.05811.71
5.2.170.0130.0529.18
5.2.160.0120.0769.18
5.2.150.0130.0579.18
5.2.140.0110.0489.18
5.2.130.0050.0549.13
5.2.120.0070.0529.14
5.2.110.0090.0759.15
5.2.100.0180.0699.14
5.2.90.0060.0389.14
5.2.80.0080.0439.14
5.2.70.0030.0479.14
5.2.60.0120.0379.09
5.2.50.0030.0469.06
5.2.40.0040.0419.04
5.2.30.0080.0479.02
5.2.20.0040.0469.01
5.2.10.0040.0448.93
5.2.00.0120.0438.79
5.1.60.0100.0378.07
5.1.50.0040.0378.07
5.1.40.0090.0348.05
5.1.30.0050.0388.40
5.1.20.0060.0388.42
5.1.10.0040.0398.14
5.1.00.0020.0418.14
5.0.50.0040.0296.62
5.0.40.0060.0316.48
5.0.30.0050.0306.29
5.0.20.0040.0206.27
5.0.10.0030.0216.23
5.0.00.0030.0326.23
4.4.90.0040.0154.78
4.4.80.0040.0154.76
4.4.70.0030.0164.76
4.4.60.0050.0224.76
4.4.50.0020.0184.77
4.4.40.0060.0344.71
4.4.30.0050.0214.76
4.4.20.0030.0234.84
4.4.10.0030.0234.85
4.4.00.0060.0314.76
4.3.110.0030.0174.67
4.3.100.0050.0204.67
4.3.90.0010.0184.63
4.3.80.0050.0234.58
4.3.70.0050.0134.63
4.3.60.0070.0134.63
4.3.50.0050.0144.63
4.3.40.0000.0274.53
4.3.30.0010.0173.28
4.3.20.0020.0163.26
4.3.10.0000.0173.22
4.3.00.0230.00310.54

preferences:
40.5 ms | 400 KiB | 5 Q