3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Namnet på bildtävlingen'; $string = "--My----string hello---"; $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.0110.04020.71
8.4.120.0130.03323.53
8.4.110.0100.02025.59
8.4.100.0120.03621.91
8.4.90.0120.04121.94
8.4.80.0080.02821.83
8.4.70.0120.03720.81
8.4.60.0110.03721.82
8.4.50.0130.04120.74
8.4.40.0100.02722.50
8.4.30.0070.01723.59
8.4.20.0130.01322.83
8.4.10.0130.04124.93
8.3.260.0130.03319.63
8.3.250.0070.01421.77
8.3.240.0130.03820.01
8.3.230.0170.03219.45
8.3.220.0110.01821.94
8.3.210.0180.02519.73
8.3.200.0280.03819.63
8.3.190.0090.03420.16
8.3.180.0080.02619.83
8.3.170.0240.04120.03
8.3.160.0100.01721.29
8.3.150.0160.03221.75
8.3.140.0070.02620.14
8.3.130.0030.02219.43
8.3.120.0040.02123.75
8.3.110.0170.03320.56
8.3.100.0170.03119.34
8.3.90.0290.03525.34
8.3.80.0190.02421.93
8.3.70.0290.03320.97
8.3.60.0220.02720.84
8.3.50.0130.03121.63
8.3.40.0220.01822.37
8.3.30.0200.01622.41
8.3.20.0210.01222.95
8.3.10.0220.02022.92
8.3.00.0140.01824.55
8.2.290.0140.03423.30
8.2.280.0130.03621.39
8.2.270.0250.03620.29
8.2.260.0140.02822.16
8.2.250.0000.02619.38
8.2.240.0100.03420.38
8.2.230.0190.01720.17
8.2.220.0120.01921.92
8.2.210.0090.02224.25
8.2.200.0160.02222.59
8.2.190.0190.03720.95
8.2.180.0190.03122.12
8.2.170.0150.02322.48
8.2.160.0140.02022.84
8.2.150.0150.01823.18
8.2.140.0180.01922.79
8.2.130.0240.01723.11
8.2.120.0220.01622.72
8.2.110.0200.02022.91
8.2.100.0230.01722.25
8.2.90.0200.02022.39
8.2.80.0220.01722.09
8.2.70.0210.02122.10
8.2.60.0210.02022.15
8.2.50.0190.01922.16
8.2.40.0170.01522.32
8.2.30.0160.01422.21
8.2.20.0160.01322.50
8.2.10.0120.01522.14
8.2.00.0150.01622.37
8.1.330.0130.03524.79
8.1.320.0100.03918.91
8.1.310.0130.02319.61
8.1.300.0070.02521.71
8.1.290.0220.02725.61
8.1.280.0170.03422.03
8.1.270.0200.01422.59
8.1.260.0220.01923.04
8.1.250.0250.01423.51
8.1.240.0160.01122.44
8.1.230.0170.01422.06
8.1.220.0180.01822.03
8.1.210.0190.01421.89
8.1.200.0200.02021.89
8.1.190.0210.01921.79
8.1.180.0210.01921.78
8.1.170.0170.02121.78
8.1.160.0170.01621.93
8.1.150.0150.01721.97
8.1.140.0170.01321.81
8.1.130.0140.01622.09
8.1.120.0130.01821.89
8.1.110.0140.02021.91
8.1.100.0110.01721.36
8.1.90.0180.01921.45
8.1.80.0130.02021.49
8.1.70.0150.01721.53
8.1.60.0160.01721.50
8.1.50.0170.01821.51
8.1.40.0170.01821.50
8.1.30.0180.01721.65
8.1.20.0210.01721.63
8.1.10.0180.01521.60
8.1.00.0120.01921.54
8.0.300.0160.01821.14
8.0.290.0190.01621.35
8.0.280.0160.01321.65
8.0.270.0170.01621.47
8.0.260.0170.01721.67
8.0.250.0150.01821.42
8.0.240.0180.01421.51
8.0.230.0170.01621.06
8.0.220.0120.01720.93
8.0.210.0130.01420.88
8.0.200.0120.01520.98
8.0.190.0140.01420.91
8.0.180.0130.01620.93
8.0.170.0190.01520.92
8.0.160.0140.01820.97
8.0.150.0130.01720.87
8.0.140.0160.01520.84
8.0.130.0160.01520.90
8.0.120.0130.01520.87
8.0.110.0120.01820.90
8.0.100.0130.01620.86
8.0.90.0130.01420.97
8.0.80.0170.01720.89
8.0.70.0160.01620.91
8.0.60.0160.01720.91
8.0.50.0170.01620.90
8.0.30.0150.01620.90
8.0.20.0120.01620.97
8.0.10.0130.01721.02
7.4.330.0140.01118.51
7.4.320.0150.02021.01
7.4.300.0130.01620.63
7.4.290.0150.01720.50
7.4.280.0140.01520.54
7.4.270.0160.01720.54
7.4.260.0150.01720.55
7.4.250.0130.01420.53
7.4.240.0140.01520.51
7.4.230.0150.01620.49
7.4.220.0120.01620.52
7.4.210.0150.01520.56
7.4.200.0160.01720.51
7.4.190.0160.01420.58
7.4.180.0140.01720.57
7.4.160.0130.01520.57
7.4.150.0130.01620.53
7.4.140.0170.01620.32
7.4.130.0140.01520.43
7.4.120.0140.01820.45
7.4.110.0150.01620.42
7.4.100.0160.01520.51
7.4.90.0180.01220.40
7.4.80.0160.01520.39
7.4.70.0120.01820.37
7.4.60.0140.01620.42
7.4.50.0170.01620.37
7.4.40.0170.01720.38
7.4.30.0170.01820.42
7.4.20.0140.01520.44
7.4.10.0140.01720.37
7.4.00.0130.01620.35

preferences:
28.68 ms | 403 KiB | 5 Q