3v4l.org

run code in 300+ PHP versions simultaneously
<?php function seoUrl($string) { $string = mb_strtolower($string); $string = str_replace('&',' ',$string); $string = preg_replace("/[^\w\s-]+/u", " ", $string); $string = preg_replace("/[\s-]+/u", " ", $string); $string = preg_replace("/[\s_]+/u", "-", $string); return $string; } echo seoUrl("Test--++_-__-Test----Test$#%#Test") . PHP_EOL; echo seoUrl("مرحبا--++_-__مرحباt--مرحباst$#%#مرحبا") . PHP_EOL;

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.5.10.0110.00916.80
8.5.00.0150.00820.18
8.4.160.0040.00722.05
8.4.150.0010.00114.05
8.4.140.0100.01117.94
8.4.130.0120.00718.80
8.4.120.0100.01123.75
8.4.110.0050.01218.86
8.4.100.0110.00419.10
8.4.90.0130.00722.43
8.4.80.0070.00418.81
8.4.70.0030.00419.03
8.4.60.0060.01319.11
8.4.50.0100.00924.29
8.4.40.0080.00017.79
8.4.30.0110.00018.46
8.4.20.0040.00417.70
8.4.10.0090.00019.82
8.3.280.0130.00718.37
8.3.270.0110.00816.86
8.3.260.0170.00316.97
8.3.250.0100.01016.91
8.3.240.0110.00916.96
8.3.230.0120.00816.81
8.3.220.0100.00818.95
8.3.210.0090.01016.73
8.3.200.0080.00116.60
8.3.190.0080.01116.86
8.3.180.0040.00418.92
8.3.170.0060.01316.85
8.3.160.0000.00817.18
8.3.150.0130.00619.12
8.3.140.0030.01420.61
8.3.130.0030.00916.73
8.3.120.0060.00320.65
8.3.110.0100.00020.94
8.3.100.0080.00016.75
8.3.90.0080.00026.77
8.3.80.0030.00616.88
8.3.70.0140.00416.86
8.3.60.0160.00017.00
8.3.50.0100.01018.56
8.3.40.0090.00618.96
8.3.30.0140.00520.97
8.3.20.0040.00923.83
8.3.10.0090.00223.81
8.3.00.0060.00624.56
8.2.290.0110.00720.37
8.2.280.0120.00718.50
8.2.270.0110.00718.61
8.2.260.0090.00916.98
8.2.250.0110.00718.88
8.2.240.0090.00017.03
8.2.230.0090.00022.58
8.2.220.0030.00824.06
8.2.210.0050.00326.77
8.2.200.0000.00916.50
8.2.190.0090.01216.75
8.2.180.0120.00625.92
8.2.170.0070.01019.07
8.2.160.0090.00622.96
8.2.150.0120.00324.31
8.2.140.0070.00423.81
8.2.130.0050.00524.56
8.2.120.0060.00824.56
8.2.110.0060.00821.12
8.2.100.0080.00620.50
8.2.90.0040.01121.07
8.2.80.0050.00720.50
8.2.70.0090.00220.36
8.2.60.0070.00619.54
8.2.50.0090.00519.60
8.2.40.0060.00621.04
8.2.30.0060.00619.62
8.2.20.0080.00420.08
8.2.10.0060.00719.36
8.2.00.0070.00619.73
8.1.330.0100.00922.10
8.1.320.0100.00918.34
8.1.310.0100.00718.48
8.1.300.0060.00317.88
8.1.290.0060.00318.88
8.1.280.0070.00725.92
8.1.270.0120.00323.48
8.1.260.0090.00524.66
8.1.250.0060.00825.53
8.1.240.0060.00822.71
8.1.230.0100.00520.40
8.1.220.0070.00720.38
8.1.210.0070.00720.87
8.1.200.0090.00420.22
8.1.190.0070.00519.27
8.1.180.0070.00619.51
8.1.170.0070.00619.61
8.1.160.0120.00120.80
8.1.150.0050.00719.41
8.1.140.0080.00719.11
8.1.130.0110.00419.22
8.1.120.0100.00619.20
8.1.110.0090.00519.19
8.1.100.0090.00419.16
8.1.90.0080.00519.13
8.1.80.0100.00419.06
8.1.70.0090.00419.05
8.1.60.0090.00519.27
8.1.50.0100.00519.19
8.1.40.0110.00319.19
8.1.30.0060.00919.15
8.1.20.0090.00519.17
8.1.10.0070.00819.10
8.1.00.0100.00319.20
8.0.300.0080.00520.87
8.0.290.0110.00819.92
8.0.280.0130.00619.32
8.0.270.0110.00418.76
8.0.260.0110.00618.68
8.0.250.0060.00918.74
8.0.240.0120.00518.80
8.0.230.0090.00818.79
8.0.220.0110.00418.88
8.0.210.0130.00618.80
8.0.200.0140.00418.88
8.0.190.0130.00418.72
8.0.180.0070.00918.72
8.0.170.0160.00318.74
8.0.160.0090.00618.87
8.0.150.0090.00818.75
8.0.140.0110.00718.65
8.0.130.0130.00618.68
8.0.120.0140.00618.78
8.0.110.0140.00718.75
8.0.100.0110.00818.67
8.0.90.0140.00518.73
8.0.80.0150.00418.71
8.0.70.0120.00518.67
8.0.60.0110.00818.75
8.0.50.0140.00518.67
8.0.30.0120.00418.70
8.0.20.0140.00618.74
8.0.10.0130.00818.69
8.0.00.0140.00718.79
7.4.330.0100.00317.94
7.4.320.0140.00418.57
7.4.300.0130.00818.59
7.4.290.0170.00418.58
7.4.280.0200.00118.65
7.4.270.0150.00518.59
7.4.260.0170.00418.57
7.4.250.0190.00518.55
7.4.240.0170.00618.59
7.4.230.0200.00318.61
7.4.220.0160.00518.58
7.4.210.0180.00318.55
7.4.200.0170.00418.51
7.4.190.0190.00318.57
7.4.180.0190.00318.59
7.4.160.0140.00618.54
7.4.150.0150.00618.54
7.4.140.0130.00618.51
7.4.130.0150.00418.54
7.4.120.0140.00818.54
7.4.110.0150.00718.56
7.4.100.0110.00818.58
7.4.90.0140.00618.52
7.4.80.0170.00418.55
7.4.70.0170.00318.51
7.4.60.0180.00418.50
7.4.50.0150.00618.55
7.4.40.0150.00418.51
7.4.30.0160.00218.55
7.4.20.0150.00418.54
7.4.10.0130.00618.57
7.4.00.0140.00418.53
7.3.330.0150.00518.40
7.3.320.0170.00318.39
7.3.310.0180.00218.44
7.3.300.0150.00518.40
7.3.290.0140.00618.46
7.3.280.0160.00418.47
7.3.270.0150.00518.38
7.3.260.0150.00518.43
7.3.250.0140.00518.46
7.3.240.0150.00518.45
7.3.230.0170.00418.40
7.3.220.0130.00718.44
7.3.210.0170.00618.39
7.3.200.0180.00518.42
7.3.190.0170.00318.40
7.3.180.0170.00318.37
7.3.170.0160.00518.34
7.3.160.0170.00418.35
7.3.150.0180.00518.38
7.3.140.0200.00418.35
7.3.130.0160.00418.37
7.3.120.0130.00618.45
7.3.110.0170.00318.36
7.3.100.0170.00418.38
7.3.90.0170.00518.48
7.3.80.0190.00318.41
7.3.70.0120.00518.47
7.3.60.0140.00718.50
7.3.50.0160.00518.46
7.3.40.0150.00818.56
7.3.30.0170.00518.42
7.3.20.0160.00518.89
7.3.10.0170.00418.90
7.3.00.0150.00618.89

preferences:
35.84 ms | 403 KiB | 5 Q