3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<'STR' Andrés Cortez الخوارزمی 'Namnet på bildtävlingen' "नारी शक्त"--My---string--たけだ, まさゆき STR; $rules = <<<'RULES' :: Any-Latin; :: NFD; :: [:Nonspacing Mark:] Remove; :: NFC; :: [^-[:^Punctuation:]] Remove; :: Lower(); [:^L:] { [-] > ; [-] } [:^L:] > ; [-[:Separator:]]+ > '-'; RULES; $slug = \Transliterator::createFromRules($rules) ->transliterate( $string ); echo $slug;

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.4.130.0140.04221.56
8.4.120.0350.04323.02
8.4.110.0360.05322.96
8.4.100.0180.03922.47
8.4.90.0260.04021.97
8.4.80.0290.04422.23
8.4.70.0220.03922.02
8.4.60.0320.04221.96
8.4.50.0280.04721.98
8.4.40.0260.03321.80
8.4.30.0220.03221.99
8.4.20.0300.03921.62
8.4.10.0240.03022.13
8.3.260.0120.04420.27
8.3.250.0140.03921.43
8.3.240.0170.03520.38
8.3.230.0160.03320.52
8.3.220.0180.03321.37
8.3.210.0190.03920.77
8.3.200.0190.03220.35
8.3.190.0260.03020.46
8.3.180.0250.03920.34
8.3.170.0210.02820.27
8.3.160.0260.03721.07
8.3.150.0260.03720.65
8.3.140.0210.03620.33
8.3.130.0190.03220.59
8.3.120.0220.03920.93
8.3.110.0190.03020.50
8.3.100.0270.05027.39
8.3.90.0220.03621.45
8.3.80.0260.04024.47
8.3.70.0290.04120.25
8.3.60.0240.04620.51
8.3.50.0260.04420.79
8.3.40.0230.02823.02
8.3.30.0270.02822.03
8.3.20.0230.02422.77
8.3.10.0220.02022.71
8.3.00.0220.02423.38
8.2.290.0180.03021.82
8.2.280.0240.03621.39
8.2.270.0190.04721.16
8.2.260.0190.04320.32
8.2.250.0210.03420.38
8.2.240.0240.03220.68
8.2.230.0260.03920.54
8.2.220.0210.04225.08
8.2.210.0190.03521.33
8.2.200.0190.03320.41
8.2.190.0150.04020.22
8.2.180.0180.03721.21
8.2.170.0240.02522.18
8.2.160.0210.02322.36
8.2.150.0240.02522.33
8.2.140.0260.02522.23
8.2.130.0260.02523.04
8.2.120.0250.02122.90
8.2.110.0280.02722.82
8.2.100.0250.02622.63
8.2.90.0230.02822.50
8.2.80.0210.02322.51
8.2.70.0220.02432.15
8.2.60.0210.02331.95
8.2.50.0230.02231.15
8.2.40.0190.02630.06
8.2.30.0170.02329.96
8.2.20.0170.02230.16
8.2.10.0190.02129.96
8.2.00.0160.02530.06
8.1.330.0190.03521.97
8.1.320.0280.04019.91
8.1.310.0250.04520.29
8.1.300.0170.03420.60
8.1.290.0170.04221.67
8.1.280.0230.04120.87
8.1.270.0190.02422.86
8.1.260.0200.03023.19
8.1.250.0210.02723.44
8.1.240.0180.02222.98
8.1.230.0200.02222.67
8.1.220.0190.02722.42
8.1.210.0190.02622.44
8.1.200.0190.02431.78
8.1.190.0220.02631.71
8.1.180.0200.02531.02
8.1.170.0200.02330.35
8.1.160.0180.02429.84
8.1.150.0180.02129.96
8.1.140.0190.02329.67
8.1.130.0170.02029.84
8.1.120.0170.02529.83
8.1.110.0170.02429.71
8.1.100.0150.02228.85
8.1.90.0150.02527.15
8.1.80.0180.02228.48
8.1.70.0170.02128.45
8.1.60.0210.02328.64
8.1.50.0170.02528.56
8.1.40.0180.02128.61
8.1.30.0200.02028.72
8.1.20.0150.02228.69
8.1.10.0190.01928.65
8.1.00.0170.02228.48
8.0.300.0250.02822.52
8.0.290.0180.02331.31
8.0.280.0180.02429.40
8.0.270.0190.02428.91
8.0.260.0180.02029.29
8.0.250.0180.02329.33
8.0.240.0180.02129.37
8.0.230.0170.02328.26
8.0.220.0160.02227.89
8.0.210.0200.02327.84
8.0.200.0170.02427.92
8.0.190.0170.02227.91
8.0.180.0180.02027.94
8.0.170.0170.02327.94
8.0.160.0180.02327.95
8.0.150.0180.01927.88
8.0.140.0190.02227.88
8.0.130.0170.02427.88
8.0.120.0170.02127.91
8.0.110.0190.02327.91
8.0.100.0150.02227.88
8.0.90.0200.01927.87
8.0.80.0180.02327.89
8.0.70.0200.02227.84
8.0.60.0190.02327.87
8.0.50.0180.02327.87
8.0.30.0170.02127.96
8.0.20.0150.02227.99
8.0.10.0150.02427.97
7.4.330.0150.01227.70
7.4.320.0180.02528.92
7.4.300.0140.02426.38
7.4.290.0160.02226.87
7.4.280.0170.02327.54
7.4.270.0170.02327.54
7.4.260.0150.02227.56
7.4.250.0180.02627.58
7.4.240.0170.02327.54
7.4.230.0160.02327.52
7.4.220.0170.02427.54
7.4.210.0180.02227.56
7.4.200.0170.02127.56
7.4.190.0170.02227.63
7.4.180.0160.02127.57
7.4.160.0160.02427.58
7.4.150.0170.02327.51
7.4.140.0170.02327.47
7.4.130.0180.02227.48
7.4.120.0170.02127.46
7.4.110.0170.02227.52
7.4.100.0180.02427.52
7.4.90.0130.02327.50
7.4.80.0180.02227.50
7.4.70.0160.02027.52
7.4.60.0190.02127.51
7.4.50.0190.02227.44
7.4.40.0150.02227.48
7.4.30.0150.02427.50
7.4.20.0170.02427.47
7.4.10.0190.02327.42
7.4.00.0160.02227.43

preferences:
27.56 ms | 403 KiB | 5 Q