3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'Título ú Nota ó !¡ ! '; $text = preg_replace('/[\x{000f}-\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.0110.00716.63
8.3.50.0040.01621.95
8.3.40.0130.00319.07
8.3.30.0100.00319.09
8.3.20.0000.00720.16
8.3.10.0030.00623.51
8.3.00.0040.00420.69
8.2.180.0090.00918.41
8.2.170.0070.00722.96
8.2.160.0130.00322.24
8.2.150.0150.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0000.00822.29
8.2.110.0090.00022.20
8.2.100.0160.00017.75
8.2.90.0080.00019.09
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0000.00718.09
8.2.30.0000.00818.00
8.2.20.0000.00717.85
8.2.10.0000.00817.88
8.2.00.0040.00418.02
8.1.280.0070.01125.92
8.1.270.0060.00323.93
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00323.92
8.1.230.0060.00619.10
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0030.00617.48
8.1.190.0000.00917.41
8.1.180.0050.00318.10
8.1.170.0040.00418.53
8.1.160.0000.00722.02
8.1.150.0000.00718.77
8.1.140.0040.00417.54
8.1.130.0030.00317.85
8.1.120.0040.00417.54
8.1.110.0060.00317.43
8.1.100.0020.00517.56
8.1.90.0040.00417.46
8.1.80.0000.00717.52
8.1.70.0030.00317.55
8.1.60.0030.00617.59
8.1.50.0040.00417.69
8.1.40.0040.00417.61
8.1.30.0000.00817.67
8.1.20.0000.00817.84
8.1.10.0060.00317.72
8.1.00.0030.00617.48
8.0.300.0000.00718.77
8.0.290.0000.00717.28
8.0.280.0040.00418.45
8.0.270.0040.00417.27
8.0.260.0030.00317.14
8.0.250.0030.00317.22
8.0.240.0030.00317.25
8.0.230.0050.00317.15
8.0.220.0070.00017.13
8.0.210.0070.00017.00
8.0.200.0000.00717.13
8.0.190.0000.00817.18
8.0.180.0030.00517.10
8.0.170.0020.00517.03
8.0.160.0000.00817.05
8.0.150.0000.00717.14
8.0.140.0000.00716.94
8.0.130.0050.00013.48
8.0.120.0000.00716.97
8.0.110.0070.00016.94
8.0.100.0040.00417.00
8.0.90.0030.00517.00
8.0.80.0150.00417.04
8.0.70.0000.00717.14
8.0.60.0040.00417.11
8.0.50.0050.00216.96
8.0.30.0090.01217.19
8.0.20.0140.01317.40
8.0.10.0030.00517.22
8.0.00.0110.00616.88
7.4.330.0000.00515.00
7.4.320.0000.00716.73
7.4.300.0000.00616.66
7.4.290.0030.00516.50
7.4.280.0070.00016.69
7.4.270.0000.00716.64
7.4.260.0030.00416.54
7.4.250.0040.00416.69
7.4.240.0040.00416.65
7.4.230.0030.00316.49
7.4.220.0030.01416.84
7.4.210.0060.00816.71
7.4.200.0070.00016.71
7.4.190.0040.00416.85
7.4.160.0080.00816.59
7.4.150.0090.00817.40
7.4.140.0080.01217.86
7.4.130.0060.01416.77
7.4.120.0080.00816.71
7.4.110.0130.00316.66
7.4.100.0130.00716.69
7.4.90.0090.00916.70
7.4.80.0060.01216.61
7.4.70.0120.00616.89
7.4.60.0100.00716.69
7.4.50.0040.00416.67
7.4.40.0030.01422.77
7.4.30.0130.00416.64
7.4.00.0050.01115.02
7.3.330.0000.00513.41
7.3.320.0000.00513.27
7.3.310.0080.00016.43
7.3.300.0030.00316.48
7.3.290.0060.00916.50
7.3.280.0110.00516.51
7.3.270.0130.00417.40
7.3.260.0160.00716.45
7.3.250.0070.01016.55
7.3.240.0070.01016.39
7.3.230.0120.01116.42
7.3.210.0120.00616.59
7.3.200.0110.00819.39
7.3.190.0060.01016.40
7.3.180.0060.00916.62
7.3.170.0060.01216.35
7.3.160.0040.01516.46
7.3.120.0090.00815.09
7.3.110.0070.01114.92
7.3.100.0080.00414.97
7.3.90.0030.01415.13
7.3.80.0040.00715.14
7.3.70.0050.00514.99
7.3.60.0030.01014.98
7.3.50.0040.01214.76
7.3.40.0030.00615.06
7.3.30.0030.00714.79
7.3.20.0050.00516.77
7.3.10.0100.00316.87
7.3.00.0060.00916.69
7.2.330.0110.00816.59
7.2.320.0120.01216.66
7.2.310.0160.00316.63
7.2.300.0090.00616.63
7.2.290.0040.01116.80
7.2.250.0100.01015.37
7.2.240.0090.00915.30
7.2.230.0030.01314.84
7.2.220.0040.00814.86
7.2.210.0050.00515.35
7.2.200.0080.00415.08
7.2.190.0030.01014.96
7.2.180.0070.01014.94
7.2.170.0040.00814.82
7.2.00.0000.01519.61
7.1.330.0040.00815.78
7.1.320.0030.00615.75
7.1.310.0000.01416.12
7.1.300.0040.01215.88
7.1.290.0090.00615.92
7.1.280.0030.01015.87
7.1.270.0040.00816.08
7.1.260.0040.00815.88
7.1.100.0080.00418.23
7.1.70.0030.00517.23
7.1.60.0030.00919.27
7.1.50.0140.01834.91
7.1.00.0070.07322.34
7.0.200.0050.00816.96
7.0.140.0130.06321.94
7.0.80.0630.07319.92
7.0.70.0500.08319.87
7.0.60.0530.08719.93
7.0.50.0500.05720.23
7.0.40.0070.08720.13
7.0.30.0170.05720.08
7.0.20.0070.05020.14
7.0.10.0070.05019.91
7.0.00.0070.07020.03
5.6.280.0030.07021.07
5.6.230.0100.07720.47
5.6.220.0030.08320.49
5.6.210.0130.08020.58
5.6.200.0070.04320.95
5.6.190.0100.04721.03
5.6.180.0070.08721.00
5.6.170.0030.08021.05
5.6.160.0070.07721.04
5.6.150.0070.07720.93
5.6.140.0070.04021.10
5.6.130.0070.04721.09
5.6.120.0070.08021.03
5.6.110.0030.09021.04
5.6.100.0200.05721.15
5.6.90.0070.07721.03
5.6.80.0170.07020.51
5.6.70.0070.04020.48
5.6.60.0130.04320.39
5.6.50.0100.07720.52
5.6.40.0030.08020.43
5.6.30.0070.06020.47
5.6.20.0100.07320.41
5.6.10.0030.07020.26
5.6.00.0130.07320.35
5.5.370.0000.05020.54
5.5.360.0000.08720.55
5.5.350.0200.06320.43
5.5.340.0100.04720.63
5.5.330.0030.05720.91
5.5.320.0030.04320.91
5.5.310.0070.08020.84
5.5.300.0100.07720.91
5.5.290.0000.05020.79
5.5.280.0030.06720.85
5.5.270.0030.06020.73
5.5.260.0070.05720.89
5.5.250.0070.06020.73
5.5.240.0000.08020.11
5.5.230.0000.04720.11
5.5.220.0030.04720.19
5.5.210.0130.06720.25
5.5.200.0030.08720.13
5.5.190.0100.08020.27
5.5.180.0070.08020.11
5.5.160.0030.08320.10
5.5.150.0030.08020.23
5.5.140.0070.04320.17
5.5.130.0100.04320.10
5.5.120.0070.07720.12
5.5.110.0030.07720.21
5.5.100.0100.04020.07
5.5.90.0000.08020.09
5.5.80.0070.04020.16
5.5.70.0200.06720.14
5.5.60.0070.07719.99
5.5.50.0070.07720.07
5.5.40.0030.05319.93
5.5.30.0000.05020.13
5.5.20.0030.04020.05
5.5.10.0070.07719.98
5.5.00.0070.05020.00
5.4.450.0070.06319.27
5.4.440.0070.08019.36
5.4.430.0070.07719.46
5.4.420.0130.05319.43
5.4.410.0130.07019.31
5.4.400.0130.04719.10
5.4.390.0030.04718.94
5.4.380.0000.04019.06
5.4.370.0100.07719.14
5.4.360.0130.06018.90
5.4.350.0130.07018.90
5.4.340.0100.07319.03
5.4.320.0070.07718.79
5.4.310.0070.07719.03
5.4.300.0000.05019.04
5.4.290.0070.04718.98
5.4.280.0070.08019.16
5.4.270.0130.03318.79
5.4.260.0030.07319.07
5.4.250.0130.05718.93
5.4.240.0100.07318.94
5.4.230.0030.07319.06
5.4.220.0030.08019.04
5.4.210.0130.06319.06
5.4.200.0000.07718.89
5.4.190.0070.05019.06
5.4.180.0070.07018.95
5.4.170.0030.04319.05
5.4.160.0030.05018.93
5.4.150.0100.06319.01
5.4.140.0100.03716.34
5.4.130.0100.07316.27
5.4.120.0130.06316.30
5.4.110.0030.07716.43
5.4.100.0070.07316.32
5.4.90.0170.06016.41
5.4.80.0100.06316.19
5.4.70.0100.03716.25
5.4.60.0100.07316.23
5.4.50.0030.07316.18
5.4.40.0130.06316.46
5.4.30.0100.06716.32
5.4.20.0030.07716.27
5.4.10.0030.06716.41
5.4.00.0100.06316.14
5.3.290.0100.08016.14
5.3.280.0100.07716.14
5.3.270.0000.08016.14
5.3.260.0030.04316.14
5.3.250.0030.08016.14
5.3.240.0030.04716.14
5.3.230.0030.08316.14
5.3.220.0030.08016.14
5.3.210.0070.05316.14
5.3.200.0030.07716.14
5.3.190.0070.04716.14
5.3.180.0100.06716.14
5.3.170.0070.07316.14
5.3.160.0030.04316.14
5.3.150.0030.08016.14
5.3.140.0130.07316.14
5.3.130.0070.06016.14
5.3.120.0070.04316.14
5.3.110.0030.08016.14
5.3.100.0070.06316.14
5.3.90.0070.03316.14
5.3.80.0000.04716.14
5.3.70.0030.04316.14
5.3.60.0130.05016.14
5.3.50.0030.04316.14
5.3.40.0030.05016.14
5.3.30.0030.03716.14
5.3.20.0100.05716.14
5.3.10.0000.03716.14
5.3.00.0100.06016.14
5.2.170.0070.03716.14
5.2.160.0030.04016.14
5.2.150.0000.03716.14
5.2.140.0030.03716.14
5.2.130.0070.02316.14
5.2.120.0000.03016.14
5.2.110.0030.03016.14
5.2.100.0000.03016.14
5.2.90.0000.05016.14
5.2.80.0000.03016.14
5.2.70.0030.02716.14
5.2.60.0030.03316.14
5.2.50.0030.05716.14
5.2.40.0000.02716.14
5.2.30.0000.06316.14
5.2.20.0000.03716.14
5.2.10.0030.03316.14
5.2.00.0000.04316.14
5.1.60.0000.02316.14
5.1.50.0100.01716.14
5.1.40.0000.03716.14
5.1.30.0030.02316.14
5.1.20.0030.05316.14
5.1.10.0000.03716.14
5.1.00.0000.05316.14
5.0.50.0000.03016.14
5.0.40.0000.04716.14
5.0.30.0030.06316.14
5.0.20.0070.03016.14
5.0.10.0000.02016.14
5.0.00.0000.02716.14
4.4.90.0030.01316.14
4.4.80.0030.01316.14
4.4.70.0070.02016.14
4.4.60.0000.01716.14
4.4.50.0000.03316.14
4.4.40.0000.02316.14
4.4.30.0030.03016.14
4.4.20.0030.03316.14
4.4.10.0030.03016.14
4.4.00.0000.02716.14
4.3.110.0000.03716.14
4.3.100.0030.01716.14
4.3.90.0000.02316.14
4.3.80.0000.02716.14
4.3.70.0000.01716.14
4.3.60.0000.01316.14
4.3.50.0000.01716.14
4.3.40.0000.03316.14
4.3.30.0030.01316.14
4.3.20.0000.01716.14
4.3.10.0030.01316.14
4.3.00.0030.01316.14

preferences:
48.07 ms | 401 KiB | 5 Q