3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'Título ú Nota ó !¡ !'; $text = str_replace(array('!','¡'), '', $text); $text = preg_replace('/[^a-zA-Z0-9áéíóúñ\', ]/i','',$text); echo $text; die; echo preg_replace('/[\x{00ff}-\x{ffff}]/u', '*', $text); echo $text; $mystring = 'Título ú Nota ó !¡ ! áéíóúñ )()&*%#$DR GT^(%(%(*&_{|}{jjkg cde d"'; $find = array ( '#[^a-z0-99áéíóúñ\\s]#is', '#\\s#' ); $replace = array ( '', ' ' ); $mystring = preg_replace ( $find, $replace, $mystring ); echo $mystring;

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.70.0040.01116.75
8.3.60.0100.01016.63
8.3.50.0150.00717.37
8.3.40.0120.00319.09
8.3.30.0120.00318.79
8.3.20.0000.00818.84
8.3.10.0050.00520.79
8.3.00.0080.00019.63
8.2.180.0040.01117.00
8.2.170.0000.01322.96
8.2.160.0090.00618.91
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0090.00018.88
8.2.110.0120.00022.10
8.2.100.0090.00317.97
8.2.90.0030.00619.22
8.2.80.0000.00719.39
8.2.70.0040.00417.88
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0000.00818.16
8.2.30.0000.00718.00
8.2.20.0030.00519.58
8.2.10.0050.00317.81
8.2.00.0040.00417.94
8.1.280.0100.00725.92
8.1.270.0040.00423.99
8.1.260.0040.01126.35
8.1.250.0000.00728.09
8.1.240.0000.01023.97
8.1.230.0080.00420.91
8.1.220.0040.00417.77
8.1.210.0050.00318.95
8.1.200.0090.00017.35
8.1.190.0040.00417.40
8.1.180.0000.00818.10
8.1.170.0060.00318.77
8.1.160.0040.00418.72
8.1.150.0040.00418.66
8.1.140.0040.00417.45
8.1.130.0070.00017.90
8.1.120.0000.00717.45
8.1.110.0040.00417.52
8.1.100.0000.00817.43
8.1.90.0000.00717.55
8.1.80.0030.00317.55
8.1.70.0040.00417.53
8.1.60.0000.00817.59
8.1.50.0000.00717.66
8.1.40.0040.00417.65
8.1.30.0030.00517.73
8.1.20.0040.00417.79
8.1.10.0040.00417.65
8.1.00.0000.00717.51
8.0.300.0070.00019.89
8.0.290.0040.00417.00
8.0.280.0070.00018.46
8.0.270.0040.00417.21
8.0.260.0000.00717.08
8.0.250.0000.00717.07
8.0.240.0040.00417.16
8.0.230.0030.00317.02
8.0.220.0000.00716.92
8.0.210.0040.00416.96
8.0.200.0000.00616.95
8.0.190.0030.00617.04
8.0.180.0000.00716.93
8.0.170.0030.00616.94
8.0.160.0030.00317.01
8.0.150.0060.00316.88
8.0.140.0080.00316.88
8.0.130.0000.00713.48
8.0.120.0080.00016.88
8.0.110.0000.00716.89
8.0.100.0000.00817.07
8.0.90.0000.00716.99
8.0.80.0000.01816.97
8.0.70.0070.00016.86
8.0.60.0040.00417.07
8.0.50.0040.00316.92
8.0.30.0100.01017.10
8.0.20.0090.01117.20
8.0.10.0040.00417.12
8.0.00.0090.01116.79
7.4.330.0000.00513.16
7.4.320.0040.00416.73
7.4.300.0040.00416.64
7.4.290.0030.00316.65
7.4.280.0090.00016.75
7.4.270.0080.00016.65
7.4.260.0000.00513.41
7.4.250.0040.00416.59
7.4.240.0030.00316.52
7.4.230.0000.00816.72
7.4.220.0030.01416.79
7.4.210.0110.00316.80
7.4.200.0030.00316.75
7.4.190.0030.00316.47
7.4.160.0110.00416.47
7.4.150.0000.01716.54
7.4.140.0110.00616.70
7.4.130.0100.00616.64
7.4.120.0110.00616.61
7.4.110.0060.01216.61
7.4.100.0130.00316.62
7.4.90.0060.01216.59
7.4.80.0050.01119.39
7.4.70.0080.00816.60
7.4.60.0060.01016.48
7.4.50.0060.00316.66
7.4.40.0070.00716.43
7.4.30.0100.00716.86
7.4.00.0120.00314.87
7.3.330.0000.00613.30
7.3.320.0030.00313.27
7.3.310.0000.00716.38
7.3.300.0070.00016.26
7.3.290.0050.01016.37
7.3.280.0070.01016.40
7.3.270.0030.01416.48
7.3.260.0220.00316.45
7.3.250.0100.01116.48
7.3.240.0040.01216.62
7.3.230.0150.00316.45
7.3.210.0100.00716.58
7.3.200.0090.00616.43
7.3.190.0160.00016.42
7.3.180.0060.01016.44
7.3.170.0090.00616.64
7.3.160.0140.00316.29
7.3.120.0030.01215.22
7.2.330.0030.01416.75
7.2.320.0090.00916.79
7.2.310.0090.00916.79
7.2.300.0070.01016.53
7.2.290.0100.00616.80
7.2.00.0000.01219.56
7.1.100.0230.00018.04
7.1.70.0090.00417.32
7.1.60.0060.01919.30
7.1.50.0040.01816.91
7.1.00.0000.03722.46
7.0.200.0080.00016.93
7.0.140.0130.06322.09
7.0.120.0000.07722.02
7.0.110.0000.05319.94
7.0.100.0130.05319.94
7.0.90.0000.04019.95
7.0.80.0000.04719.94
7.0.70.0270.03319.90
7.0.60.0100.05319.94
7.0.50.0400.04319.98
7.0.40.0070.06719.72
7.0.30.0000.04719.74
7.0.20.0070.04019.75
7.0.10.0030.04319.77
7.0.00.0070.03719.77
5.6.280.0070.07021.12
5.6.260.0070.04320.69
5.6.250.0000.04020.89
5.6.240.0100.06020.48
5.6.230.0030.03320.66
5.6.220.0100.03020.61
5.6.210.0030.04020.60
5.6.200.0000.05020.66
5.6.190.0030.05020.61
5.6.180.0170.05720.60
5.6.170.0070.03320.55
5.6.160.0130.03720.55
5.6.150.0100.04020.56
5.6.140.0030.08320.62
5.6.130.0000.03720.70
5.6.120.0070.04020.56
5.6.110.0070.04020.84
5.6.100.0000.03720.57
5.6.90.0000.04020.56
5.6.80.0030.03720.20
5.6.70.0100.06719.93
5.6.60.0030.05020.02
5.6.50.0070.04019.95
5.6.40.0070.03320.05
5.6.30.0030.04319.98
5.6.20.0100.02720.20
5.6.10.0100.03319.98
5.6.00.0070.03320.02
5.5.380.0070.03717.46
5.5.370.0070.03317.51
5.5.360.0030.04717.54
5.5.350.0030.03717.45
5.5.340.0000.03718.10
5.5.330.0030.03717.85
5.5.320.0070.03717.82
5.5.310.0000.05717.89
5.5.300.0030.05318.09
5.5.290.0000.03718.02
5.5.280.0130.05717.77
5.5.270.0100.03017.90
5.5.260.0030.03318.09
5.5.250.0030.04317.67
5.5.240.0070.03017.25
5.5.230.0070.03717.24
5.5.220.0070.02717.24
5.5.210.0000.03717.54
5.5.200.0070.03017.53
5.5.190.0030.03717.22
5.5.180.0030.04017.48
5.5.160.0070.03717.47
5.5.150.0030.04017.60
5.5.140.0100.03317.60
5.5.130.0030.03317.20
5.5.120.0000.03317.28
5.5.110.0000.03717.24
5.5.100.0000.04017.08
5.5.90.0030.03317.23
5.5.80.0030.03017.50
5.5.70.0100.03017.40
5.5.60.0170.02317.09
5.5.50.0070.03017.49
5.5.40.0070.03017.26
5.5.30.0000.03317.22
5.5.20.0030.03017.10
5.5.10.0030.05017.49
5.5.00.0000.03317.32
5.4.450.0100.03019.45
5.4.440.0030.04019.43
5.4.430.0070.03719.39
5.4.420.0070.03719.27
5.4.410.0070.05319.15
5.4.400.0200.02018.91
5.4.390.0070.03719.27
5.4.380.0000.04719.09
5.4.370.0070.03719.27
5.4.360.0070.03019.00
5.4.350.0070.03318.95
5.4.340.0100.02719.08
5.4.320.0030.04318.95
5.4.310.0000.04018.93
5.4.300.0100.03719.09
5.4.290.0000.03719.10
5.4.280.0070.03019.00
5.4.270.0100.02719.00
5.4.260.0030.03018.95
5.4.250.0030.03319.00
5.4.240.0000.03319.27
5.4.230.0030.03318.97
5.4.220.0030.03319.11
5.4.210.0070.03019.11
5.4.200.0070.03018.92
5.4.190.0030.03319.15
5.4.180.0000.03718.94
5.4.170.0100.02719.00
5.4.160.0070.04019.09
5.4.150.0000.03318.98
5.4.140.0030.03016.17
5.4.130.0000.03316.11
5.4.120.0000.03316.28
5.4.110.0030.03316.46
5.4.100.0070.03016.50
5.4.90.0070.03316.29
5.4.80.0030.03316.49
5.4.70.0070.03316.27
5.4.60.0030.03016.46
5.4.50.0000.05716.21
5.4.40.0100.03016.55
5.4.30.0000.03316.46
5.4.20.0100.02316.11
5.4.10.0030.03316.35
5.4.00.0030.03715.58
5.3.290.0030.03014.56
5.3.280.0030.03314.54
5.3.270.0070.03014.68
5.3.260.0030.03014.43
5.3.250.0070.02714.43
5.3.240.0030.03314.60
5.3.230.0070.03714.47
5.3.220.0030.03014.50
5.3.210.0070.03014.49
5.3.200.0070.02714.43
5.3.190.0070.03314.50
5.3.180.0000.03314.44
5.3.170.0000.04714.35
5.3.160.0130.02714.35
5.3.150.0030.03714.41
5.3.140.0030.03014.40
5.3.130.0000.03714.39
5.3.120.0030.03714.48
5.3.110.0030.03314.56
5.3.100.0030.03014.06
5.3.90.0030.03714.09
5.3.80.0030.03713.89
5.3.70.0070.07013.86
5.3.60.0030.04313.89
5.3.50.0000.03313.88
5.3.40.0030.03013.77
5.3.30.0030.03713.85
5.3.20.0030.03313.78
5.3.10.0030.02713.71
5.3.00.0130.02713.52
5.2.170.0070.02311.81
5.2.160.0030.03011.81
5.2.150.0000.03011.81
5.2.140.0000.02711.81
5.2.130.0000.02711.81
5.2.120.0000.03011.81
5.2.110.0000.02711.81
5.2.100.0030.03011.81
5.2.90.0000.02711.81
5.2.80.0000.03711.81
5.2.70.0030.03011.81
5.2.60.0030.02711.81
5.2.50.0100.03011.81
5.2.40.0030.03311.81
5.2.30.0000.03311.81
5.2.20.0000.03011.81
5.2.10.0000.02711.81
5.2.00.0000.03011.81
5.1.60.0000.04311.81
5.1.50.0000.02311.81
5.1.40.0030.01711.81
5.1.30.0070.01711.81
5.1.20.0030.02011.81
5.1.10.0030.02011.81
5.1.00.0070.02011.81
5.0.50.0030.02011.81
5.0.40.0030.01311.81
5.0.30.0000.03311.81
5.0.20.0030.01711.81
5.0.10.0030.02011.81
5.0.00.0000.02711.81
4.4.90.0000.02011.81
4.4.80.0030.01311.81
4.4.70.0000.01311.81
4.4.60.0000.01311.81
4.4.50.0000.01311.81
4.4.40.0030.05011.81
4.4.30.0030.01011.81
4.4.20.0000.01311.81
4.4.10.0000.01311.81
4.4.00.0030.01711.81
4.3.110.0000.01311.81
4.3.100.0000.01311.81
4.3.90.0000.01711.81
4.3.80.0000.02311.81
4.3.70.0000.01311.81
4.3.60.0000.01311.81
4.3.50.0030.01011.81
4.3.40.0000.02711.81
4.3.30.0070.01711.81
4.3.20.0030.01711.81
4.3.10.0100.00711.81
4.3.00.0000.01711.81

preferences:
58.07 ms | 401 KiB | 5 Q