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.3.80.0180.04328.73
8.3.70.0130.07320.20
8.3.60.0100.05722.11
8.3.50.0000.06623.90
8.3.40.0180.03724.23
8.3.30.0220.03122.54
8.3.20.0180.03224.48
8.3.10.0150.02224.25
8.3.00.0160.02724.64
8.2.200.0070.03520.32
8.2.190.0100.05520.31
8.2.180.0200.05625.92
8.2.170.0200.03822.56
8.2.160.0180.03023.36
8.2.150.0220.02723.44
8.2.140.0170.02723.62
8.2.130.0190.02325.00
8.2.120.0180.02024.53
8.2.110.0170.02524.03
8.2.100.0170.02523.59
8.2.90.0150.02323.39
8.2.80.0170.02223.37
8.2.70.0190.02539.63
8.2.60.0160.02239.39
8.2.50.0180.02137.11
8.2.40.0160.02434.24
8.2.30.0140.02334.15
8.2.20.0130.02334.39
8.2.10.0160.02134.18
8.2.00.0130.02534.27
8.1.290.0000.04130.84
8.1.280.0170.05225.92
8.1.270.0190.02825.07
8.1.260.0130.02625.45
8.1.250.0180.02825.94
8.1.240.0120.02324.39
8.1.230.0160.02123.84
8.1.220.0140.02723.11
8.1.210.0150.02423.47
8.1.200.0150.02339.19
8.1.190.0200.02639.10
8.1.180.0150.02337.10
8.1.170.0170.02235.27
8.1.160.0130.02434.05
8.1.150.0130.02034.22
8.1.140.0140.02333.87
8.1.130.0150.01934.04
8.1.120.0140.02533.97
8.1.110.0140.02133.89
8.1.100.0130.02131.94
8.1.90.0100.02428.83
8.1.80.0130.02131.17
8.1.70.0140.02131.15
8.1.60.0170.02031.38
8.1.50.0140.02431.27
8.1.40.0160.02131.32
8.1.30.0180.02031.43
8.1.20.0150.02231.42
8.1.10.0160.02031.37
8.1.00.0150.02231.16
8.0.300.0250.02823.81
8.0.290.0160.02738.85
8.0.280.0140.02233.72
8.0.270.0160.02332.59
8.0.260.0160.02133.49
8.0.250.0140.02333.58
8.0.240.0160.02133.59
8.0.230.0150.02231.39
8.0.220.0130.02330.62
8.0.210.0180.02330.61
8.0.200.0130.02430.68
8.0.190.0130.02230.66
8.0.180.0160.02130.67
8.0.170.0160.02230.70
8.0.160.0150.02330.68
8.0.150.0170.02030.61
8.0.140.0150.02130.63
8.0.130.0130.02330.64
8.0.120.0140.02130.66
8.0.110.0140.02130.67
8.0.100.0130.02230.64
8.0.90.0160.02030.66
8.0.80.0160.02330.63
8.0.70.0150.02030.63
8.0.60.0160.02230.62
8.0.50.0150.02330.60
8.0.30.0150.02030.72
8.0.20.0130.02330.75
8.0.10.0130.02330.70
7.4.330.0130.00631.36
7.4.320.0140.02233.20
7.4.300.0120.02228.14
7.4.290.0140.02029.04
7.4.280.0150.02030.30
7.4.270.0160.02230.30
7.4.260.0120.02230.30
7.4.250.0140.02330.35
7.4.240.0140.02230.31
7.4.230.0130.02530.26
7.4.220.0130.02230.30
7.4.210.0140.02130.33
7.4.200.0160.02030.31
7.4.190.0150.02130.37
7.4.180.0150.02130.37
7.4.160.0110.02330.36
7.4.150.0140.02230.28
7.4.140.0120.02130.23
7.4.130.0160.02130.26
7.4.120.0150.02030.22
7.4.110.0150.02030.29
7.4.100.0140.02330.29
7.4.90.0120.02330.21
7.4.80.0150.02230.26
7.4.70.0170.02230.26
7.4.60.0180.01930.27
7.4.50.0160.02230.22
7.4.40.0140.02130.20
7.4.30.0140.02330.25
7.4.20.0160.02430.22
7.4.10.0150.02230.19
7.4.00.0140.02030.18
7.2.00.0420.04222.25
7.1.330.0370.03625.92

preferences:
29.01 ms | 401 KiB | 5 Q