3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'Título ú Nota ó !¡ ! മനുഷ്യന്റെ'; $text = preg_replace('/[\x{007f}-\x{00bf}]/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.40.0070.00718.92
8.3.30.0100.00319.27
8.3.20.0050.00220.33
8.3.10.0030.00621.89
8.3.00.0080.00020.76
8.2.170.0030.01722.96
8.2.160.0070.00720.45
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0030.00522.11
8.2.110.0100.00022.27
8.2.100.0080.00418.03
8.2.90.0030.00619.22
8.2.80.0060.00318.04
8.2.70.0030.00617.75
8.2.60.0050.00318.16
8.2.50.0030.00618.07
8.2.40.0040.00418.15
8.2.30.0040.00417.96
8.2.20.0040.00417.94
8.2.10.0040.00419.80
8.2.00.0040.00417.90
8.1.270.0030.00523.84
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00624.02
8.1.230.0060.00619.12
8.1.220.0030.00617.76
8.1.210.0050.00318.77
8.1.200.0060.00317.60
8.1.190.0040.00417.41
8.1.180.0030.00518.10
8.1.170.0070.00318.70
8.1.160.0000.00821.97
8.1.150.0070.00018.76
8.1.140.0000.00717.41
8.1.130.0030.00317.79
8.1.120.0070.00017.49
8.1.110.0000.00717.55
8.1.100.0030.00317.55
8.1.90.0000.00817.42
8.1.80.0030.00317.42
8.1.70.0040.00417.53
8.1.60.0060.00317.59
8.1.50.0040.00417.66
8.1.40.0000.00817.65
8.1.30.0030.00517.77
8.1.20.0040.00417.78
8.1.10.0040.00417.70
8.1.00.0000.00717.61
8.0.300.0000.00718.77
8.0.290.0030.00617.18
8.0.280.0000.00718.34
8.0.270.0030.00317.32
8.0.260.0030.00317.01
8.0.250.0030.00317.17
8.0.240.0000.00717.13
8.0.230.0000.00717.05
8.0.220.0040.00417.16
8.0.210.0070.00017.09
8.0.200.0000.00617.07
8.0.190.0060.00317.08
8.0.180.0000.00717.02
8.0.170.0080.00017.02
8.0.160.0000.00816.98
8.0.150.0070.00317.17
8.0.140.0000.01017.11
8.0.130.0000.00513.52
8.0.120.0060.00317.05
8.0.110.0040.00416.96
8.0.100.0050.00217.05
8.0.90.0000.00716.96
8.0.80.0090.01217.08
8.0.70.0050.00317.14
8.0.60.0000.00717.07
8.0.50.0050.00316.97
8.0.30.0090.01317.27
8.0.20.0110.00817.40
8.0.10.0030.00617.26
8.0.00.0140.00816.91
7.4.330.0020.00215.16
7.4.320.0030.00316.62
7.4.300.0030.00316.76
7.4.290.0030.00316.64
7.4.280.0070.00016.74
7.4.270.0000.00716.66
7.4.260.0070.00016.63
7.4.250.0040.00416.48
7.4.240.0020.00516.75
7.4.230.0000.00716.73
7.4.220.0080.00816.62
7.4.210.0090.00916.79
7.4.200.0040.00416.82
7.4.190.0040.00316.55
7.4.160.0090.00616.73
7.4.150.0100.01017.40
7.4.140.0100.00817.86
7.4.130.0060.01016.86
7.4.120.0110.00716.61
7.4.110.0040.01316.90
7.4.100.0040.01416.89
7.4.90.0070.01016.63
7.4.80.0080.01119.39
7.4.70.0140.00616.76
7.4.60.0070.01016.71
7.4.50.0080.00016.73
7.4.40.0080.00522.77
7.4.30.0060.01116.76
7.4.10.0070.01315.37
7.4.00.0050.01215.12
7.3.330.0000.00613.33
7.3.320.0030.00313.46
7.3.310.0070.00016.36
7.3.300.0070.00016.49
7.3.290.0100.01016.50
7.3.280.0080.01316.47
7.3.270.0100.00717.40
7.3.260.0070.01016.79
7.3.250.0080.00916.65
7.3.240.0070.01416.59
7.3.230.0100.00716.80
7.3.210.0090.00916.38
7.3.200.0090.01319.39
7.3.190.0100.00716.65
7.3.180.0100.00716.57
7.3.170.0090.00716.71
7.3.160.0070.01016.60
7.3.130.0120.00614.88
7.3.120.0040.01114.86
7.3.110.0060.00614.52
7.3.100.0040.00814.61
7.3.90.0030.00714.89
7.3.80.0040.00414.92
7.3.70.0000.01315.05
7.3.60.0030.01314.84
7.3.50.0040.00815.05
7.3.40.0000.01414.88
7.3.30.0030.01015.07
7.3.20.0080.00816.85
7.3.10.0110.00616.73
7.3.00.0030.00916.59
7.2.330.0120.01216.70
7.2.320.0070.01016.74
7.2.310.0000.01916.70
7.2.300.0110.00516.79
7.2.290.0000.01616.79
7.2.260.0120.00315.15
7.2.250.0120.00615.33
7.2.240.0070.00715.25
7.2.230.0030.01315.21
7.2.220.0060.01315.02
7.2.210.0100.00015.23
7.2.200.0030.00815.23
7.2.190.0060.00814.80
7.2.180.0080.00415.10
7.2.170.0120.00315.10
7.2.160.0030.01015.00
7.2.150.0060.00617.13
7.2.140.0070.00717.01
7.2.130.0060.00916.93
7.2.120.0100.00316.86
7.2.110.0070.00717.13
7.2.100.0070.01117.08
7.2.90.0070.01016.90
7.2.80.0090.00616.72
7.2.70.0030.01016.97
7.2.60.0060.00617.20
7.2.50.0100.00616.95
7.2.40.0030.01417.15
7.2.30.0060.00916.78
7.2.20.0070.01017.12
7.2.10.0080.00816.78
7.2.00.0030.00918.25
7.1.330.0060.00615.87
7.1.320.0110.00815.95
7.1.310.0040.00716.04
7.1.300.0060.00815.93
7.1.290.0000.01215.86
7.1.280.0030.01015.80
7.1.270.0100.00315.93
7.1.260.0120.00316.02
7.1.250.0060.01015.72
7.1.240.0080.00815.90
7.1.230.0030.01015.79
7.1.220.0060.00916.02
7.1.210.0030.00616.10
7.1.200.0070.00415.91
7.1.190.0100.00316.00
7.1.180.0090.00016.09
7.1.170.0000.00915.99
7.1.160.0070.01115.64
7.1.150.0060.00915.87
7.1.140.0040.00715.92
7.1.130.0030.01015.75
7.1.120.0050.00515.99
7.1.110.0060.00915.85
7.1.100.0060.00617.31
7.1.90.0000.01015.67
7.1.80.0070.00415.95
7.1.70.0060.00616.72
7.1.60.0050.01017.60
7.1.50.0050.01216.43
7.1.40.0090.00616.16
7.1.30.0040.00815.93
7.1.20.0030.00716.11
7.1.10.0040.00816.02
7.1.00.0100.03519.12
7.0.330.0030.01015.67
7.0.320.0100.00015.80
7.0.310.0040.01115.33
7.0.300.0090.00615.77
7.0.290.0070.01015.60
7.0.280.0030.01015.54
7.0.270.0090.00615.66
7.0.260.0120.00015.41
7.0.250.0030.00915.78
7.0.240.0040.00415.71
7.0.230.0090.00315.30
7.0.220.0080.00515.55
7.0.210.0070.00715.47
7.0.200.0060.00616.32
7.0.190.0060.00315.74
7.0.180.0040.01115.65
7.0.170.0050.00515.45
7.0.160.0060.00615.66
7.0.150.0060.00615.70
7.0.140.0050.04018.85
7.0.130.0070.00715.57
7.0.120.0060.00615.69
7.0.110.0000.00915.64
7.0.100.0170.01817.80
7.0.90.0080.04717.81
7.0.80.0050.04217.88
7.0.70.0130.04217.80
7.0.60.0120.04017.80
7.0.50.0200.03617.97
7.0.40.0100.03416.89
7.0.30.0070.04516.88
7.0.20.0110.04116.79
7.0.10.0090.04416.97
7.0.00.0060.04616.77
5.6.400.0100.00614.26
5.6.390.0030.01114.41
5.6.380.0120.00314.00
5.6.370.0040.01114.41
5.6.360.0060.01314.25
5.6.350.0110.00714.50
5.6.340.0070.00314.69
5.6.330.0080.00014.30
5.6.320.0120.00414.50
5.6.310.0040.00814.59
5.6.300.0040.01114.51
5.6.290.0040.00414.55
5.6.280.0070.03717.58
5.6.270.0000.01414.44
5.6.260.0000.01214.28
5.6.250.0070.04717.44
5.6.240.0070.02317.30
5.6.230.0030.03317.42
5.6.220.0060.04117.50
5.6.210.0080.04217.44
5.6.200.0110.02017.69
5.6.190.0030.04117.71
5.6.180.0060.04617.66
5.6.170.0180.03717.53
5.6.160.0060.04417.55
5.6.150.0080.04317.55
5.6.140.0100.04017.62
5.6.130.0080.04317.73
5.6.120.0080.04717.63
5.6.110.0110.04317.66
5.6.100.0050.05017.67
5.6.90.0110.03417.60
5.6.80.0070.02617.41
5.6.70.0030.04717.30
5.6.60.0120.04017.35
5.6.50.0100.04217.36
5.6.40.0060.04317.34
5.6.30.0030.04517.31
5.6.20.0130.03517.23
5.6.10.0100.03917.37
5.6.00.0100.03817.30
5.5.380.0030.04717.23
5.5.370.0070.03917.28
5.5.360.0030.04817.44
5.5.350.0100.04517.21
5.5.340.0120.03517.62
5.5.330.0100.04017.47
5.5.320.0080.04217.55
5.5.310.0040.04917.67
5.5.300.0050.04517.38
5.5.290.0070.02517.65
5.5.280.0070.04817.63
5.5.270.0070.03217.43
5.5.260.0110.03817.60
5.5.250.0080.04017.58
5.5.240.0110.04217.30
5.5.230.0110.03517.09
5.5.220.0090.03817.29
5.5.210.0050.04517.16
5.5.200.0080.04517.11
5.5.190.0090.02817.29
5.5.180.0080.02717.15
5.5.170.0030.01614.29
5.5.160.0070.04317.30
5.5.150.0060.04117.28
5.5.140.0080.04517.21
5.5.130.0100.04117.19
5.5.120.0100.03917.19
5.5.110.0050.04517.21
5.5.100.0150.03717.10
5.5.90.0050.02517.17
5.5.80.0060.04316.89
5.5.70.0080.03817.14
5.5.60.0080.04217.16
5.5.50.0080.04117.14
5.5.40.0090.02517.17
5.5.30.0070.03517.02
5.5.20.0100.03817.15
5.5.10.0030.04117.14
5.5.00.0020.04217.04
5.4.450.0030.04715.30
5.4.440.0100.03515.21
5.4.430.0070.04315.11
5.4.420.0060.04015.10
5.4.410.0130.03115.21
5.4.400.0040.03814.98
5.4.390.0020.04714.97
5.4.380.0090.04215.05
5.4.370.0120.03715.05
5.4.360.0060.04314.88
5.4.350.0030.02515.00
5.4.340.0070.02215.13
5.4.330.0000.00910.93
5.4.320.0040.03714.86
5.4.310.0110.03714.93
5.4.300.0070.03914.96
5.4.290.0020.04515.04
5.4.280.0030.04214.97
5.4.270.0050.03315.01
5.4.260.0090.03014.94
5.4.250.0080.03315.03
5.4.240.0020.02915.02
5.4.230.0080.03514.93
5.4.220.0060.03815.05
5.4.210.0050.02615.06
5.4.200.0100.03814.97
5.4.190.0100.02815.11
5.4.180.0050.03815.00
5.4.170.0070.03015.04
5.4.160.0030.03514.87
5.4.150.0030.02314.93
5.4.140.0030.02213.61
5.4.130.0070.02313.59
5.4.120.0050.02713.56
5.4.110.0100.03313.76
5.4.100.0070.02213.71
5.4.90.0030.03613.55
5.4.80.0050.04013.71
5.4.70.0050.04213.54
5.4.60.0030.04213.69
5.4.50.0030.04413.70
5.4.40.0080.03813.75
5.4.30.0130.03413.73
5.4.20.0090.03813.68
5.4.10.0030.03113.70
5.4.00.0080.03513.28
5.3.290.0050.04312.74
5.3.280.0050.04312.61
5.3.270.0100.01912.62
5.3.260.0000.04012.69
5.3.250.0060.03312.69
5.3.240.0080.03812.68
5.3.230.0080.03512.69
5.3.220.0020.03912.68
5.3.210.0060.03812.62
5.3.200.0020.04512.67
5.3.190.0050.04512.69
5.3.180.0050.02712.65
5.3.170.0040.03012.62
5.3.160.0030.03812.68
5.3.150.0110.03312.60
5.3.140.0050.02512.68
5.3.130.0070.03812.65
5.3.120.0060.03612.67
5.3.110.0090.03812.68
5.3.100.0110.03712.33
5.3.90.0070.03812.34
5.3.80.0090.03312.41
5.3.70.0050.04312.41
5.3.60.0100.03112.33
5.3.50.0090.04112.25
5.3.40.0170.03412.36
5.3.30.0080.03712.24
5.3.20.0120.03512.24
5.3.10.0090.03712.21
5.3.00.0080.02612.11
5.2.170.0070.06011.21
5.2.160.0070.06011.16
5.2.150.0070.06311.19
5.2.140.0100.04711.14
5.2.130.0130.05310.89
5.2.120.0100.04311.05
5.2.110.0070.06310.96
5.2.100.0030.06710.89
5.2.90.0000.05710.92
5.2.80.0100.04711.16
5.2.70.0070.06011.09
5.2.60.0030.03710.89
5.2.50.0030.06011.04
5.2.40.0070.05710.92
5.2.30.0100.06010.94
5.2.20.0030.04011.04
5.2.10.0070.05710.78
5.2.00.0000.04710.57
5.1.60.0030.05310.05
5.1.50.0070.05010.05
5.1.40.0100.0439.96
5.1.30.0030.06010.38
5.1.20.0000.04010.41
5.1.10.0030.05010.07
5.1.00.0030.05310.05
5.0.50.0030.0478.73
5.0.40.0030.0408.73
5.0.30.0070.0608.73
5.0.20.0000.0508.73
5.0.10.0000.0438.73
5.0.00.0000.0678.73
4.4.90.0030.0338.73
4.4.80.0000.0208.73
4.4.70.0070.0308.73
4.4.60.0030.0338.73
4.4.50.0030.0378.73
4.4.40.0030.0438.73
4.4.30.0030.0238.73
4.4.20.0030.0278.73
4.4.10.0030.0278.73
4.4.00.0030.0538.73
4.3.110.0000.0308.73
4.3.100.0030.0338.73
4.3.90.0000.0338.73
4.3.80.0070.0408.73
4.3.70.0000.0338.73
4.3.60.0030.0338.73
4.3.50.0030.0378.73
4.3.40.0030.0508.73
4.3.30.0000.0408.73
4.3.20.0030.0338.73
4.3.10.0070.0238.73
4.3.00.0030.0338.73

preferences:
41.41 ms | 400 KiB | 5 Q