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.5.00.0190.01821.64
8.4.150.0210.01319.75
8.4.140.0210.07221.38
8.4.130.0190.05721.44
8.4.120.0360.05422.49
8.4.110.0370.06022.60
8.4.100.0240.04622.26
8.4.90.0300.05021.84
8.4.80.0310.05022.08
8.4.70.0250.04321.94
8.4.60.0300.04621.89
8.4.50.0270.05021.90
8.4.40.0290.04121.76
8.4.30.0260.03721.89
8.4.20.0290.04021.58
8.4.10.0250.03221.99
8.3.280.0270.02823.88
8.3.270.0280.07420.20
8.3.260.0280.05620.15
8.3.250.0240.04721.06
8.3.240.0180.04220.37
8.3.230.0210.04220.43
8.3.220.0220.04021.14
8.3.210.0220.04820.64
8.3.200.0210.03520.36
8.3.190.0280.03820.44
8.3.180.0270.04420.37
8.3.170.0240.03620.24
8.3.160.0300.04420.89
8.3.150.0280.04120.59
8.3.140.0240.04220.32
8.3.130.0210.03720.54
8.3.120.0230.04220.83
8.3.110.0200.03620.46
8.3.100.0280.05226.71
8.3.90.0240.04121.30
8.3.80.0270.04224.11
8.3.70.0280.04520.23
8.3.60.0260.05020.49
8.3.50.0270.04620.74
8.3.40.0260.02922.95
8.3.30.0270.02922.05
8.3.20.0240.02522.73
8.3.10.0230.02222.64
8.3.00.0220.02523.25
8.2.290.0210.03821.48
8.2.280.0230.04421.18
8.2.270.0200.05021.06
8.2.260.0200.04720.29
8.2.250.0220.03920.36
8.2.240.0240.03820.63
8.2.230.0260.04420.51
8.2.220.0220.04524.55
8.2.210.0200.04021.17
8.2.200.0200.03820.39
8.2.190.0170.04220.24
8.2.180.0190.04321.05
8.2.170.0250.02822.17
8.2.160.0220.02522.34
8.2.150.0240.02722.29
8.2.140.0260.02722.18
8.2.130.0270.02622.94
8.2.120.0260.02322.80
8.2.110.0280.02722.76
8.2.100.0250.02722.59
8.2.90.0240.02822.47
8.2.80.0220.02522.47
8.2.70.0230.02531.35
8.2.60.0220.02531.16
8.2.50.0230.02330.51
8.2.40.0200.02629.56
8.2.30.0170.02429.47
8.2.20.0180.02329.64
8.2.10.0200.02229.47
8.2.00.0160.02429.56
8.1.330.0200.04521.44
8.1.320.0250.04219.92
8.1.310.0260.04720.21
8.1.300.0200.04020.50
8.1.290.0190.04621.40
8.1.280.0250.04420.71
8.1.270.0210.02622.74
8.1.260.0210.03123.07
8.1.250.0220.02823.28
8.1.240.0190.02322.87
8.1.230.0210.02422.60
8.1.220.0200.02822.38
8.1.210.0210.02722.38
8.1.200.0200.02530.99
8.1.190.0230.02730.93
8.1.180.0210.02530.35
8.1.170.0200.02429.79
8.1.160.0180.02529.33
8.1.150.0190.02229.44
8.1.140.0200.02429.17
8.1.130.0170.02129.34
8.1.120.0180.02629.33
8.1.110.0180.02529.21
8.1.100.0160.02328.45
8.1.90.0150.02626.91
8.1.80.0190.02328.12
8.1.70.0180.02228.10
8.1.60.0210.02428.29
8.1.50.0180.02528.21
8.1.40.0190.02228.26
8.1.30.0200.02128.37
8.1.20.0160.02228.34
8.1.10.0200.02028.30
8.1.00.0180.02328.14
8.0.300.0250.02822.42
8.0.290.0200.02330.53
8.0.280.0190.02528.88
8.0.270.0200.02428.46
8.0.260.0180.02128.79
8.0.250.0180.02428.82
8.0.240.0180.02228.87
8.0.230.0180.02427.86
8.0.220.0160.02327.53
8.0.210.0200.02327.49
8.0.200.0170.02627.56
8.0.190.0170.02227.55
8.0.180.0180.02027.58
8.0.170.0180.02327.58
8.0.160.0190.02327.59
8.0.150.0190.02027.52
8.0.140.0200.02327.52
8.0.130.0180.02427.52
8.0.120.0180.02227.54
8.0.110.0200.02427.53
8.0.100.0160.02327.61
8.0.90.0200.02127.50
8.0.80.0180.02327.54
8.0.70.0200.02227.49
8.0.60.0190.02227.51
8.0.50.0180.02227.52
8.0.30.0180.02227.60
8.0.20.0150.02327.63
8.0.10.0160.02527.62
7.4.330.0160.01327.27
7.4.320.0190.02628.41
7.4.300.0150.02526.14
7.4.290.0160.02226.58
7.4.280.0170.02427.17
7.4.270.0180.02427.18
7.4.260.0150.02227.20
7.4.250.0180.02627.21
7.4.240.0170.02427.18
7.4.230.0170.02427.15
7.4.220.0170.02527.19
7.4.210.0180.02327.19
7.4.200.0180.02127.20
7.4.190.0180.02327.26
7.4.180.0170.02227.21
7.4.160.0170.02527.22
7.4.150.0180.02327.15
7.4.140.0180.02427.11
7.4.130.0190.02327.12
7.4.120.0180.02327.09
7.4.110.0190.02327.15
7.4.100.0190.02527.16
7.4.90.0140.02427.12
7.4.80.0190.02327.13
7.4.70.0160.02127.16
7.4.60.0200.02227.16
7.4.50.0190.02327.08
7.4.40.0170.02227.12
7.4.30.0160.02527.13
7.4.20.0180.02527.12
7.4.10.0200.02327.06
7.4.00.0160.02227.07

preferences:
30.92 ms | 403 KiB | 5 Q