3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sString = ' Bonjour, M.Gombert N°06737401 Récréditation : Demande N°17217851 du 10/12/13 (N° de tel erroné Mail sans réponse) Je vous est prévenu le 15/12/13 M.Gombert '; $sString = str_replace("\n", "", $sString); $sString = str_replace("\t", "", $sString); $sString = str_replace("\v", "", $sString); $sString = str_replace("\r", "", $sString); $sString = preg_replace('/{.*}/', '', $sString); // CSS? $sString = preg_replace('/[^a-zA-ZÀ-ÿ0-9]+/', " ", $sString); $sString = trim($sString); echo "****". $sString . "****"; $string = 'v Bonjour  M GombertN°06737401 Récréditation Demande N°17217851 du 10 12 13  N° de tel erroné  Mail sans réponse Je vous est prévenu le 15 12 13 M Gombert'; $output = preg_replace("/[[:blank:]]+/"," ",$string); echo $output; $aWords = explode(' ', $output); print_r($aWords);

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.0060.01218.55
8.3.50.0050.01321.21
8.3.40.0110.00418.84
8.3.30.0170.00320.17
8.3.20.0060.00320.20
8.3.10.0000.00822.05
8.3.00.0040.00422.44
8.2.180.0080.00816.38
8.2.170.0110.00422.96
8.2.160.0110.00322.43
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0030.00620.88
8.2.110.0070.00320.52
8.2.100.0040.00717.97
8.2.90.0000.00819.26
8.2.80.0080.00017.97
8.2.70.0040.00417.73
8.2.60.0000.00918.04
8.2.50.0060.00318.07
8.2.40.0000.00818.21
8.2.30.0070.00019.35
8.2.20.0080.00017.79
8.2.10.0050.00217.88
8.2.00.0080.00317.90
8.1.280.0090.00625.92
8.1.270.0080.00023.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00622.14
8.1.230.0120.00017.52
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0060.00317.36
8.1.190.0030.00517.54
8.1.180.0050.00518.10
8.1.170.0090.00018.54
8.1.160.0000.00718.96
8.1.150.0040.00418.79
8.1.140.0040.00417.48
8.1.130.0000.00717.85
8.1.120.0040.00417.66
8.1.110.0070.00017.57
8.1.100.0040.00417.57
8.1.90.0040.00417.61
8.1.80.0070.00017.54
8.1.70.0070.00017.59
8.1.60.0050.00317.70
8.1.50.0070.00317.66
8.1.40.0070.00017.71
8.1.30.0060.00317.74
8.1.20.0030.00617.80
8.1.10.0000.00817.68
8.1.00.0050.00217.44
8.0.300.0000.00718.77
8.0.290.0020.00516.88
8.0.280.0080.00018.36
8.0.270.0070.00017.32
8.0.260.0030.00318.47
8.0.250.0050.00517.18
8.0.240.0030.00617.13
8.0.230.0000.00716.96
8.0.220.0040.00216.97
8.0.210.0030.00317.04
8.0.200.0000.00617.17
8.0.190.0050.00317.11
8.0.180.0070.00017.05
8.0.170.0050.00316.89
8.0.160.0050.00316.93
8.0.150.0070.00016.99
8.0.140.0040.00416.93
8.0.130.0030.00313.51
8.0.120.0020.00516.96
8.0.110.0050.00316.98
8.0.100.0030.00516.93
8.0.90.0080.00017.10
8.0.80.0140.00617.04
8.0.70.0070.00016.95
8.0.60.0050.00316.79
8.0.50.0040.00416.99
8.0.30.0120.00717.15
8.0.20.0120.00817.52
8.0.10.0070.00016.96
8.0.00.0080.00916.99
7.4.330.0000.00516.72
7.4.320.0070.00016.70
7.4.300.0070.00016.62
7.4.290.0070.00016.75
7.4.280.0000.00716.74
7.4.270.0000.00816.68
7.4.260.0050.00013.41
7.4.250.0000.00716.66
7.4.240.0020.00516.76
7.4.230.0040.00416.50
7.4.220.0120.00916.78
7.4.210.0050.01116.70
7.4.200.0000.00716.70
7.4.190.0030.00316.94
7.4.160.0040.01216.82
7.4.150.0060.01217.40
7.4.140.0070.01017.86
7.4.130.0110.00916.71
7.4.120.0130.00516.65
7.4.110.0090.00916.88
7.4.100.0070.01016.56
7.4.90.0170.00016.65
7.4.80.0040.01819.39
7.4.70.0000.01616.59
7.4.60.0030.01416.47
7.4.50.0000.00816.46
7.4.40.0030.01422.77
7.4.30.0090.00916.63
7.4.00.0070.01015.14
7.3.330.0030.00313.32
7.3.320.0000.00813.29
7.3.310.0030.00316.54
7.3.300.0070.00016.32
7.3.290.0060.01316.45
7.3.280.0100.00816.43
7.3.270.0170.00717.40
7.3.260.0100.01316.42
7.3.250.0150.00516.62
7.3.240.0160.00016.54
7.3.230.0140.00316.76
7.3.210.0030.02016.75
7.3.200.0030.01419.39
7.3.190.0100.00716.47
7.3.180.0040.01216.67
7.3.170.0030.01716.87
7.3.160.0140.00316.42
7.3.120.0030.01414.88
7.2.330.0060.01117.00
7.2.320.0160.00016.94
7.2.310.0100.00716.69
7.2.300.0060.01116.55
7.2.290.0160.00016.78
7.2.00.0040.01119.51
7.1.100.0060.00618.42
7.1.70.0060.00317.29
7.1.60.0060.01919.21
7.1.50.0060.01517.13
7.1.00.0000.07722.45
7.0.200.0000.00716.96
7.0.140.0000.08022.00
7.0.60.0170.07319.89
7.0.50.0030.05018.00
7.0.40.0100.06019.98
7.0.30.0230.07720.25
7.0.20.0270.07720.18
7.0.10.0070.08020.09
7.0.00.0070.07320.20
5.6.280.0070.07021.14
5.6.210.0100.08320.74
5.6.200.0100.06318.18
5.6.190.0070.05320.39
5.6.180.0270.07320.57
5.6.170.0030.05320.47
5.6.160.0100.08020.39
5.6.150.0070.05018.12
5.6.140.0030.04318.18
5.6.130.0070.08318.29
5.6.120.0070.06020.88
5.6.110.0070.04021.13
5.6.100.0070.06721.00
5.6.90.0030.09320.96
5.6.80.0100.05720.53
5.5.350.0000.08320.44
5.5.340.0070.07717.99
5.5.330.0000.06720.37
5.5.320.2800.04720.37
5.5.310.0330.06020.50
5.5.300.0070.04717.94
5.5.290.0130.06318.04
5.5.280.0070.08720.89
5.5.270.0000.04320.96
5.5.260.0070.05320.73
5.5.250.0070.06720.76
5.5.240.0000.04020.26
5.4.450.0230.03719.41
5.4.440.0270.06019.29
5.4.430.0130.05019.27
5.4.420.0070.03719.16
5.4.410.0070.04719.36
5.4.400.0200.07019.00
5.4.390.0270.06018.97
5.4.380.0200.07319.11
5.4.370.0100.04718.83
5.4.360.0070.04019.23
5.4.350.0070.07718.97
5.4.340.0000.06318.91
5.4.320.1700.04318.99
5.4.310.1370.04318.87
5.4.300.1970.04319.15
5.4.290.1170.04719.21
5.4.280.2030.03319.21
5.4.270.1930.03718.83
5.4.260.2100.04019.05
5.4.250.1930.04018.94
5.4.240.0000.04718.88
5.4.230.0100.03719.21
5.4.220.0930.03719.23
5.4.210.1730.04019.05
5.4.200.1900.03719.21
5.4.190.0030.07718.98
5.4.180.0100.04719.12
5.4.170.0030.04019.07
5.4.160.0030.03719.19
5.4.150.0030.04318.95
5.4.140.0130.04016.34
5.4.130.1930.04016.50
5.4.120.2130.04016.50
5.4.110.0130.07016.25
5.4.100.0070.06016.58
5.4.90.0130.05016.49
5.4.80.1770.03016.61
5.4.70.2100.02716.28
5.4.60.0100.07016.34
5.4.50.0030.04016.34
5.4.40.0570.05316.50
5.4.30.0100.06716.25
5.4.20.0000.04016.42
5.4.10.0630.07716.43
5.4.00.0070.06716.11
5.3.290.0200.05714.67
5.3.280.0230.05014.67
5.3.270.1800.04014.62
5.3.260.1970.04714.60
5.3.250.2000.04014.68
5.3.240.1670.03714.59
5.3.230.1830.03714.74
5.3.220.1870.04014.71
5.3.210.2070.04314.57
5.3.200.0870.05714.47
5.3.190.0000.06714.51
5.3.180.0030.04714.46
5.3.170.1730.04014.66
5.3.160.2270.04714.68
5.3.150.2030.04714.57
5.3.140.0000.04714.54
5.3.130.0030.04314.63
5.3.120.0130.04014.60
5.3.110.1770.04714.63
5.3.100.0100.03714.05
5.3.90.0000.04313.95
5.3.80.0200.06714.02
5.3.70.0230.04014.09
5.3.60.0200.03713.93
5.3.50.0200.06714.06
5.3.40.0100.06013.87
5.3.30.0230.03713.84
5.3.20.0230.03713.75
5.3.10.0200.03313.88
5.3.00.0030.04013.61
5.2.170.0200.04011.18
5.2.160.0230.04711.07
5.2.150.0070.04311.15
5.2.140.0030.04311.29
5.2.130.0070.05711.03
5.2.120.1600.03311.13
5.2.110.1670.03311.02
5.2.100.1500.03011.03
5.2.90.0030.03311.25
5.2.80.0030.03011.01
5.2.70.0030.03011.24
5.2.60.0830.03711.16
5.2.50.1670.02311.02
5.2.40.1370.02311.00
5.2.30.0000.03311.04
5.2.20.0070.02310.87
5.2.10.0100.06710.83
5.2.00.0030.06310.64
5.1.60.0970.02010.13
5.1.50.1200.02310.09
5.1.40.1400.0279.99
5.1.30.1400.03710.23
5.1.20.1000.02710.36
5.1.10.0030.02710.02
5.1.00.0070.0339.96
5.0.50.0030.0478.45
5.0.40.0000.0378.34
5.0.30.0030.0678.21
5.0.20.0400.0278.13
5.0.10.0700.0178.26
5.0.00.0730.0438.18
4.4.90.0600.0177.67
4.4.80.0670.0177.67
4.4.70.0170.0207.67
4.4.60.0700.0207.67
4.4.50.0200.0137.67
4.4.40.0000.0277.67
4.4.30.0000.0177.67
4.4.20.0100.0307.67
4.4.10.0030.0177.67
4.4.00.0000.0277.67
4.3.110.0000.0207.67
4.3.100.0000.0337.67
4.3.90.0030.0137.67
4.3.80.0500.0207.67
4.3.70.0030.0137.67
4.3.60.0000.0177.67
4.3.50.0030.0137.67
4.3.40.0030.0407.67
4.3.30.0000.0207.67
4.3.20.0000.0277.67
4.3.10.0000.0177.67
4.3.00.0000.0207.67

preferences:
39.44 ms | 401 KiB | 5 Q