3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'Título ú Nota ó !¡ !'; $text = preg_replace('/[\x{009f}-\x{00af}]/u', '', $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.60.0120.00318.43
8.3.50.0120.00716.54
8.3.40.0120.00418.92
8.3.30.0120.00318.94
8.3.20.0080.00019.03
8.3.10.0040.00420.83
8.3.00.0000.00819.63
8.2.180.0140.00718.67
8.2.170.0070.01422.96
8.2.160.0030.01022.30
8.2.150.0070.00024.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0030.00620.07
8.2.110.0070.00321.07
8.2.100.0070.00417.97
8.2.90.0000.00818.98
8.2.80.0040.00417.97
8.2.70.0030.00617.75
8.2.60.0050.00318.03
8.2.50.0050.00418.07
8.2.40.0040.00418.16
8.2.30.0030.00918.00
8.2.20.0040.00417.85
8.2.10.0050.00217.97
8.2.00.0060.00518.00
8.1.280.0070.01425.92
8.1.270.0080.00023.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0110.00022.39
8.1.230.0040.00720.89
8.1.220.0000.00818.77
8.1.210.0000.00918.87
8.1.200.0090.00017.48
8.1.190.0050.00317.54
8.1.180.0050.00318.10
8.1.170.0040.00418.77
8.1.160.0050.00218.91
8.1.150.0080.00018.82
8.1.140.0040.00417.41
8.1.130.0000.00717.74
8.1.120.0040.00417.45
8.1.110.0000.00817.55
8.1.100.0020.00517.48
8.1.90.0000.00717.53
8.1.80.0070.00017.55
8.1.70.0000.00717.52
8.1.60.0080.00417.67
8.1.50.0060.00317.48
8.1.40.0040.00417.67
8.1.30.0080.00017.73
8.1.20.0000.00817.73
8.1.10.0000.00817.54
8.1.00.0050.00317.64
8.0.300.0000.00719.89
8.0.290.0070.00017.00
8.0.280.0030.00318.46
8.0.270.0050.00317.22
8.0.260.0000.00718.88
8.0.250.0000.00717.27
8.0.240.0080.00417.26
8.0.230.0030.00517.14
8.0.220.0030.00317.05
8.0.210.0050.00217.11
8.0.200.0000.00817.12
8.0.190.0030.00517.13
8.0.180.0040.00417.09
8.0.170.0000.00817.07
8.0.160.0000.00817.18
8.0.150.0090.00016.89
8.0.140.0090.00317.04
8.0.130.0060.00013.49
8.0.120.0050.00317.03
8.0.110.0050.00217.09
8.0.100.0000.00717.10
8.0.90.0040.00417.10
8.0.80.0120.00316.98
8.0.70.0050.00217.00
8.0.60.0050.00217.02
8.0.50.0040.00417.05
8.0.30.0090.01017.20
8.0.20.0130.00717.22
8.0.10.0030.00517.11
8.0.00.0080.01416.81
7.4.330.0050.00014.93
7.4.320.0070.00016.59
7.4.300.0060.00016.64
7.4.290.0030.00316.64
7.4.280.0040.00416.65
7.4.270.0040.00416.77
7.4.260.0050.00013.37
7.4.250.0050.00316.66
7.4.240.0080.00016.76
7.4.230.0000.00716.74
7.4.220.0190.00016.72
7.4.210.0080.01016.78
7.4.200.0030.00316.82
7.4.190.0000.00716.82
7.4.160.0100.00716.87
7.4.150.0100.00717.18
7.4.140.0130.00617.28
7.4.130.0100.01016.69
7.4.120.0090.00816.52
7.4.110.0090.00916.76
7.4.100.0060.01016.68
7.4.90.0070.01016.79
7.4.80.0100.01318.80
7.4.70.0100.00716.44
7.4.60.0080.00816.61
7.4.50.0030.00516.61
7.4.40.0040.00822.27
7.4.30.0110.00516.63
7.4.00.0080.00715.21
7.3.330.0030.00313.29
7.3.320.0060.00213.32
7.3.310.0050.00216.33
7.3.300.0030.00316.46
7.3.290.0070.00716.48
7.3.280.0090.00916.51
7.3.270.0110.00717.18
7.3.260.0110.00918.24
7.3.250.0100.00816.58
7.3.240.0100.00716.53
7.3.230.0150.00316.78
7.3.210.0150.00316.48
7.3.200.0070.01619.39
7.3.190.0130.01116.66
7.3.180.0090.00616.55
7.3.170.0160.00716.56
7.3.160.0030.01216.53
7.3.120.0080.01015.09
7.3.110.0070.00915.07
7.3.100.0020.01115.24
7.3.90.0040.01115.05
7.3.80.0050.01115.05
7.3.70.0050.00815.03
7.3.60.0050.00915.16
7.3.50.0090.00615.18
7.3.40.0030.01215.01
7.3.30.0070.01015.16
7.3.20.0080.00516.64
7.3.10.0100.00716.83
7.3.00.0080.00416.64
7.2.330.0140.00416.77
7.2.320.0160.00016.76
7.2.310.0060.01216.79
7.2.300.0090.00916.73
7.2.290.0080.00816.78
7.2.250.0000.02115.28
7.2.240.0100.00715.23
7.2.230.0070.00815.31
7.2.220.0090.00615.26
7.2.210.0080.00815.27
7.2.200.0080.00715.21
7.2.190.0060.00715.18
7.2.180.0110.00515.19
7.2.170.0080.00615.17
7.2.160.0070.01015.30
7.2.150.0110.00617.20
7.2.140.0000.01517.02
7.2.130.0130.00316.99
7.2.120.0060.00917.16
7.2.110.0040.01217.19
7.2.100.0060.00916.74
7.2.90.0070.01117.21
7.2.80.0100.00717.10
7.2.70.0090.00316.78
7.2.60.0050.00917.03
7.2.50.0060.00917.07
7.2.40.0070.00417.02
7.2.30.0000.01617.11
7.2.20.0140.00616.76
7.2.10.0000.01417.21
7.2.00.0060.00618.23
7.1.330.0090.00416.18
7.1.320.0090.00616.01
7.1.310.0060.01016.01
7.1.300.0050.01015.99
7.1.290.0030.01215.97
7.1.280.0050.00815.95
7.1.270.0050.00815.88
7.1.260.0110.00516.02
7.1.250.0100.00015.79
7.1.200.0060.00916.05
7.1.100.0060.00618.07
7.1.70.0000.00717.32
7.1.60.0110.01419.40
7.1.50.0040.01917.23
7.1.00.0130.06322.34
7.0.200.0040.00416.72
7.0.140.0000.07722.21
7.0.60.0230.07321.67
7.0.50.0000.08717.90
7.0.40.4100.03320.14
7.0.30.3470.04319.98
7.0.20.3770.03720.18
7.0.10.3430.04320.05
7.0.00.3170.04020.20
5.6.280.0130.06321.10
5.6.210.0070.08720.59
5.6.200.0070.07718.19
5.6.190.3770.05020.62
5.6.180.3530.04720.71
5.6.170.3230.04020.40
5.6.160.3570.04320.47
5.6.150.3430.03720.14
5.6.140.3270.03020.21
5.6.130.3970.04720.23
5.6.120.1100.06720.14
5.6.110.0070.05020.29
5.6.100.3170.04020.34
5.6.90.3870.05320.17
5.6.80.3230.03719.65
5.6.70.3870.04019.52
5.6.60.4030.03319.62
5.6.50.3570.03319.73
5.6.40.3230.04019.57
5.6.30.3230.03719.66
5.6.20.3270.03719.59
5.6.10.3230.04719.57
5.6.00.3270.03719.59
5.5.350.0300.06720.40
5.5.340.0000.09017.98
5.5.330.1400.06720.34
5.5.320.3700.03320.28
5.5.310.3500.03320.21
5.5.300.3400.04019.96
5.5.290.4770.03720.04
5.5.280.0070.07020.07
5.5.270.0030.04720.09
5.5.260.3330.04020.03
5.5.250.3300.03720.00
5.5.240.4270.05719.45
5.5.230.3730.04019.52
5.5.220.3770.04319.46
5.5.210.3530.03719.64
5.5.200.3330.04019.39
5.5.190.3670.05319.42
5.5.180.3330.03319.44
5.5.160.3230.04019.52
5.5.150.3400.04019.36
5.5.140.3700.03319.52
5.5.130.3230.04019.53
5.5.120.3400.04719.45
5.5.110.3030.05019.38
5.5.100.3470.03319.30
5.5.90.3630.03719.35
5.5.80.3470.04719.42
5.5.70.4370.03019.42
5.5.60.4030.04019.25
5.5.50.4200.03319.34
5.5.40.0100.03719.35
5.5.30.0070.04719.34
5.5.20.2100.04319.27
5.5.10.4000.04319.43
5.5.00.3670.04019.25
5.4.450.3970.04319.22
5.4.440.0070.07319.37
5.4.430.1200.04319.31
5.4.420.3300.03719.41
5.4.410.3370.03319.32
5.4.400.3500.03318.96
5.4.390.3770.04019.12
5.4.380.4030.03718.89
5.4.370.4200.04018.83
5.4.360.3370.03319.02
5.4.350.3230.03718.98
5.4.340.3770.04318.97
5.4.320.3300.03719.10
5.4.310.3200.03019.01
5.4.300.3470.03719.12
5.4.290.3270.03718.97
5.4.280.3400.04719.07
5.4.270.3430.03319.09
5.4.260.3330.03719.06
5.4.250.3530.04019.02
5.4.240.3970.03319.09
5.4.230.3900.03018.98
5.4.220.4200.03719.12
5.4.210.4170.04019.03
5.4.200.3730.04019.03
5.4.190.0030.06319.06
5.4.180.3930.03718.98
5.4.170.4170.03719.12
5.4.160.3530.03318.97
5.4.150.3530.03718.95
5.4.140.3170.03716.29
5.4.130.3370.04016.34
5.4.120.3230.03316.32
5.4.110.3670.03016.43
5.4.100.3670.03716.33
5.4.90.3500.04016.31
5.4.80.0030.05716.45
5.4.70.3870.02716.23
5.4.60.3930.03716.15
5.4.50.3900.03316.23
5.4.40.4130.03016.31
5.4.30.4100.03716.30
5.4.20.3300.03316.14
5.4.10.3300.04316.25
5.4.00.3430.03315.73
5.3.290.3200.04014.61
5.3.280.3670.04314.68
5.3.270.4030.04014.43
5.3.260.2800.03714.58
5.3.250.3400.03714.57
5.3.240.3500.03714.57
5.3.230.3870.03314.68
5.3.220.3130.03714.56
5.3.210.3170.03314.53
5.3.200.3430.04014.53
5.3.190.1500.03014.53
5.3.180.0000.08014.51
5.3.170.0430.04014.50
5.3.160.3800.03314.34
5.3.150.4200.03014.54
5.3.140.4270.03714.48
5.3.130.3230.04314.53
5.3.120.3470.03314.38
5.3.110.3170.03314.63
5.3.100.3400.03313.89
5.3.90.3430.03713.80
5.3.80.3070.04013.95
5.3.70.3470.03313.95
5.3.60.3330.03713.93
5.3.50.3330.03313.91
5.3.40.3800.03713.89
5.3.30.3700.04313.85
5.3.20.3730.04013.45
5.3.10.3770.04013.61
5.3.00.3470.03713.39
5.2.170.3000.03010.92
5.2.160.3400.02011.11
5.2.150.3270.02711.13
5.2.140.3070.03711.17
5.2.130.3270.03011.08
5.2.120.3530.02711.04
5.2.110.3070.02711.08
5.2.100.2630.02711.07
5.2.90.2530.02710.93
5.2.80.3000.03011.12
5.2.70.3400.02711.07
5.2.60.3500.03310.88
5.2.50.3200.02710.91
5.2.40.2970.02710.99
5.2.30.2730.03010.80
5.2.20.2530.02710.74
5.2.10.2500.03011.00
5.2.00.2800.03010.63
5.1.60.2600.02310.03
5.1.50.2900.02010.01
5.1.40.2430.0279.91
5.1.30.2070.03010.36
5.1.20.2400.02010.36
5.1.10.2330.02310.00
5.1.00.2470.02310.09
5.0.50.1400.0238.49
5.0.40.1270.0208.23
5.0.30.1170.0308.26
5.0.20.1500.0208.25
5.0.10.1670.0208.16
5.0.00.1600.0338.20
4.4.90.1630.0135.78
4.4.80.1470.0175.89
4.4.70.1230.0175.89
4.4.60.1370.0135.81
4.4.50.1600.0175.77
4.4.40.1600.0275.81
4.4.30.1570.0135.86
4.4.20.1070.0135.94
4.4.10.1070.0135.86
4.4.00.1470.0305.93
4.3.110.1230.0135.73
4.3.100.1370.0135.72
4.3.90.1370.0175.74
4.3.80.1300.0235.75
4.3.70.0970.0175.79
4.3.60.1430.0175.75
4.3.50.1130.0135.79
4.3.40.1400.0305.69
4.3.30.0730.0275.28
4.3.20.0730.0135.28
4.3.10.0570.0175.28
4.3.00.0570.0135.28

preferences:
53.56 ms | 401 KiB | 5 Q