3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'Título ú Nota ó !¡ ! '; $text = preg_replace('/[\x{007f}-\x{007f}]/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.0040.01116.88
8.3.50.0170.00422.08
8.3.40.0000.01518.94
8.3.30.0100.00318.92
8.3.20.0040.00420.31
8.3.10.0000.00823.53
8.3.00.0030.00619.51
8.2.180.0120.00318.50
8.2.170.0070.00722.96
8.2.160.0130.00020.34
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0070.01026.16
8.2.120.0080.00022.13
8.2.110.0040.00422.25
8.2.100.0080.00418.16
8.2.90.0060.00319.13
8.2.80.0040.00417.97
8.2.70.0030.00517.85
8.2.60.0000.00817.91
8.2.50.0090.00018.07
8.2.40.0000.00718.28
8.2.30.0060.00317.99
8.2.20.0030.00617.97
8.2.10.0070.00018.17
8.2.00.0040.00417.97
8.1.280.0170.00325.92
8.1.270.0090.00023.88
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00323.98
8.1.230.0090.00319.22
8.1.220.0080.00017.74
8.1.210.0090.00018.77
8.1.200.0000.01117.48
8.1.190.0060.00317.39
8.1.180.0000.00818.10
8.1.170.0000.00818.55
8.1.160.0040.00421.97
8.1.150.0030.00618.72
8.1.140.0040.00417.54
8.1.130.0030.00317.89
8.1.120.0030.00317.52
8.1.110.0000.00817.52
8.1.100.0040.00417.43
8.1.90.0000.00817.57
8.1.80.0000.00817.55
8.1.70.0000.00717.52
8.1.60.0050.00317.68
8.1.50.0040.00417.55
8.1.40.0070.00017.68
8.1.30.0000.00817.81
8.1.20.0050.00217.82
8.1.10.0000.00717.65
8.1.00.0000.00817.48
8.0.300.0070.00018.77
8.0.290.0000.00717.05
8.0.280.0030.00318.51
8.0.270.0030.00317.24
8.0.260.0070.00017.09
8.0.250.0000.00717.12
8.0.240.0030.00617.10
8.0.230.0040.00417.09
8.0.220.0040.00417.14
8.0.210.0000.00717.00
8.0.200.0030.00317.05
8.0.190.0000.00717.21
8.0.180.0040.00417.13
8.0.170.0040.00417.15
8.0.160.0040.00417.11
8.0.150.0070.00017.11
8.0.140.0030.00516.95
8.0.130.0000.00813.57
8.0.120.0040.00416.95
8.0.110.0030.00417.03
8.0.100.0040.00417.20
8.0.90.0040.00416.99
8.0.80.0070.01017.12
8.0.70.0040.00417.03
8.0.60.0040.00417.01
8.0.50.0030.00616.98
8.0.30.0070.00617.23
8.0.20.0120.00617.46
8.0.10.0000.00717.20
8.0.00.0050.01517.10
7.4.330.0000.00615.00
7.4.320.0030.00316.61
7.4.300.0030.00316.55
7.4.290.0070.00016.66
7.4.280.0060.00016.63
7.4.270.0040.00416.66
7.4.260.0040.00416.62
7.4.250.0020.00516.61
7.4.240.0010.00616.77
7.4.230.0000.00716.85
7.4.220.0060.01216.77
7.4.210.0070.00816.74
7.4.200.0070.00016.67
7.4.190.0030.00316.81
7.4.160.0150.00816.66
7.4.150.0150.00417.40
7.4.140.0130.00617.86
7.4.130.0100.00616.78
7.4.120.0120.00516.67
7.4.110.0130.00316.72
7.4.100.0090.00916.67
7.4.90.0150.00316.69
7.4.80.0100.00819.39
7.4.70.0080.00816.65
7.4.60.0130.00316.76
7.4.50.0000.00616.80
7.4.40.0040.01222.77
7.4.30.0060.01016.82
7.4.00.0150.00315.06
7.3.330.0030.00313.31
7.3.320.0040.00413.21
7.3.310.0040.00416.42
7.3.300.0030.00316.41
7.3.290.0110.00416.48
7.3.280.0110.00816.47
7.3.270.0110.00617.40
7.3.260.0150.00916.39
7.3.250.0130.01016.60
7.3.240.0000.01816.39
7.3.230.0070.01216.73
7.3.210.0070.01316.80
7.3.200.0070.01419.39
7.3.190.0060.01016.62
7.3.180.0120.00616.39
7.3.170.0090.00616.56
7.3.160.0090.00616.53
7.3.120.0110.00615.16
7.3.110.0030.01315.07
7.3.100.0100.00714.95
7.3.90.0090.00614.94
7.3.80.0130.00314.91
7.3.70.0070.00714.77
7.3.60.0070.00715.04
7.3.50.0080.00415.07
7.3.40.0140.00315.10
7.3.30.0030.01415.02
7.3.20.0100.00316.86
7.3.10.0110.00716.86
7.3.00.0000.01716.52
7.2.330.0110.00916.65
7.2.320.0120.00916.54
7.2.310.0000.01716.68
7.2.300.0090.00916.65
7.2.290.0120.01216.70
7.2.250.0090.00615.22
7.2.240.0030.01515.36
7.2.230.0100.00715.20
7.2.220.0120.00315.26
7.2.210.0070.00414.83
7.2.200.0070.00714.99
7.2.190.0030.00715.00
7.2.180.0110.00415.18
7.2.170.0090.00615.03
7.2.00.0100.00619.39
7.1.330.0090.00616.02
7.1.320.0100.00316.07
7.1.310.0030.00715.93
7.1.300.0030.01015.91
7.1.290.0000.01116.13
7.1.280.0030.01215.97
7.1.270.0060.00916.10
7.1.260.0000.01515.76
7.1.100.0070.00318.39
7.1.70.0070.01017.49
7.1.60.0040.01819.31
7.1.50.0100.01017.13
7.1.00.0000.08022.33
7.0.200.0060.00316.71
7.0.140.0000.07022.09
7.0.100.0370.04019.93
7.0.90.0370.08019.88
7.0.80.0370.07319.86
7.0.70.0370.05719.94
7.0.60.0370.08019.74
7.0.50.0170.07320.30
7.0.40.0200.04720.10
7.0.30.0130.07720.13
7.0.20.0070.04020.12
7.0.10.0100.05020.13
7.0.00.0000.09020.06
5.6.280.0100.06720.86
5.6.250.0070.08020.54
5.6.240.0200.07320.55
5.6.230.0030.10020.62
5.6.220.0070.08720.62
5.6.210.0100.07720.59
5.6.200.0130.06321.13
5.6.190.0170.08321.02
5.6.180.0100.08321.12
5.6.170.0070.08321.10
5.6.160.0070.04721.05
5.6.150.0100.07321.05
5.6.140.0130.08020.94
5.6.130.0130.07020.99
5.6.120.0200.06020.91
5.6.110.0130.07721.05
5.6.100.0100.07721.11
5.6.90.0070.08321.10
5.6.80.0100.06020.48
5.6.70.0000.05320.45
5.6.60.0100.07320.37
5.6.50.0100.06720.40
5.6.40.0200.03320.37
5.6.30.0170.06320.42
5.6.20.0130.03720.27
5.6.10.0100.07720.36
5.6.00.0070.07320.39
5.5.380.0030.05020.31
5.5.370.0130.07720.30
5.5.360.0100.08020.35
5.5.350.0100.08320.28
5.5.340.0100.06720.84
5.5.330.0100.08020.91
5.5.320.0030.04020.92
5.5.310.0100.08020.76
5.5.300.0100.05720.86
5.5.290.0070.08720.85
5.5.280.0130.05320.74
5.5.270.0030.08720.75
5.5.260.0070.05320.80
5.5.250.0100.07020.60
5.5.240.0070.07720.17
5.5.230.0100.05020.16
5.5.220.0070.07320.14
5.5.210.0070.08020.19
5.5.200.0230.07020.18
5.5.190.0170.07019.98
5.5.180.0100.07020.20
5.5.160.0030.04720.22
5.5.150.0070.04020.09
5.5.140.0100.07320.14
5.5.130.0030.07720.21
5.5.120.0130.07320.18
5.5.110.0070.08020.15
5.5.100.0070.04720.16
5.5.90.0100.07720.08
5.5.80.0070.07719.93
5.5.70.0000.05020.05
5.5.60.0070.08320.14
5.5.50.0100.04320.06
5.5.40.0130.07320.04
5.5.30.0100.07320.04
5.5.20.0130.07720.02
5.5.10.0100.05719.99
5.5.00.0070.07020.02
5.4.450.0200.07019.14
5.4.440.0000.09019.44
5.4.430.0170.04019.46
5.4.420.0100.07719.27
5.4.410.0130.06319.15
5.4.400.0070.08018.91
5.4.390.0100.07318.97
5.4.380.0030.08019.04
5.4.370.0130.07319.05
5.4.360.0130.06719.04
5.4.350.0100.07019.09
5.4.340.0100.07719.02
5.4.320.0100.07718.94
5.4.310.0170.06719.11
5.4.300.0130.07319.02
5.4.290.0200.05718.78
5.4.280.0100.08019.04
5.4.270.0100.07719.04
5.4.260.0130.06719.22
5.4.250.0070.08018.93
5.4.240.0000.07719.11
5.4.230.0070.07318.89
5.4.220.0100.07018.77
5.4.210.0030.08019.22
5.4.200.0070.07719.21
5.4.190.0130.05018.94
5.4.180.0100.03318.88
5.4.170.0100.06019.10
5.4.160.0000.05018.77
5.4.150.0030.04019.04
5.4.140.0030.04016.32
5.4.130.0070.03316.29
5.4.120.0030.03716.20
5.4.110.0070.03316.25
5.4.100.0030.03716.44
5.4.90.0100.02716.23
5.4.80.0100.02716.21
5.4.70.0070.03316.32
5.4.60.0030.03316.34
5.4.50.0070.03016.28
5.4.40.0070.03716.38
5.4.30.0100.02716.27
5.4.20.0000.03716.41
5.4.10.0030.03716.17
5.4.00.0000.03715.67
5.3.290.0070.08314.65
5.3.280.0070.04014.43
5.3.270.0030.03714.59
5.3.260.0070.03714.46
5.3.250.0070.03314.47
5.3.240.0170.02714.57
5.3.230.0170.02714.61
5.3.220.0070.04014.55
5.3.210.0000.04314.47
5.3.200.0030.03714.57
5.3.190.0070.03314.40
5.3.180.0000.04014.52
5.3.170.0000.05314.55
5.3.160.0070.05314.57
5.3.150.0000.04314.42
5.3.140.0030.03714.37
5.3.130.0000.03714.48
5.3.120.0030.04014.47
5.3.110.0000.04014.50
5.3.100.0030.04014.04
5.3.90.0000.04013.95
5.3.80.0100.04014.01
5.3.70.0070.07014.00
5.3.60.0100.03013.94
5.3.50.0000.04013.88
5.3.40.0030.04013.71
5.3.30.0030.04013.76
5.3.20.0030.03313.54
5.3.10.0030.03313.66
5.3.00.0000.03713.61
5.2.170.0070.02712.32
5.2.160.0100.02312.32
5.2.150.0000.03012.32
5.2.140.0030.03712.32
5.2.130.0030.04312.32
5.2.120.0070.02312.32
5.2.110.0000.03012.32
5.2.100.0000.03012.32
5.2.90.0000.03312.32
5.2.80.0030.02712.32
5.2.70.0000.03012.32
5.2.60.0000.03012.32
5.2.50.0070.03712.32
5.2.40.0000.03312.32
5.2.30.0000.03012.32
5.2.20.0000.03012.32
5.2.10.0070.02712.32
5.2.00.0070.05712.32
5.1.60.0000.03712.32
5.1.50.0000.02712.32
5.1.40.0000.02712.32
5.1.30.0030.02312.32
5.1.20.0070.02012.32
5.1.10.0000.02712.32
5.1.00.0000.03012.32
5.0.50.0000.02712.32
5.0.40.0030.01712.32
5.0.30.0000.03312.32
5.0.20.0000.02312.32
5.0.10.0070.03012.32
5.0.00.0070.05312.32
4.4.90.0000.03012.32
4.4.80.0030.01312.32
4.4.70.0030.01012.32
4.4.60.0000.01712.32
4.4.50.0000.02012.32
4.4.40.0000.04312.32
4.4.30.0000.01712.32
4.4.20.0000.01712.32
4.4.10.0030.01012.32
4.4.00.0070.02012.32
4.3.110.0030.01312.32
4.3.100.0000.01712.32
4.3.90.0070.03012.32
4.3.80.0000.04012.32
4.3.70.0030.02012.32
4.3.60.0000.01712.32
4.3.50.0000.03312.32
4.3.40.0070.04712.32
4.3.30.0030.03012.32
4.3.20.0000.03712.32
4.3.10.0000.04012.32
4.3.00.0000.03312.32

preferences:
29.57 ms | 401 KiB | 5 Q