3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ 'This, is - - the URL!', 'Holmes & Yoyo', 'L’Œil de démon', 'How to win 1000€?', '€, $ & other currency symbols', 'Und die Katze fraß alle mäuse.', 'Белите рози на София', 'പോണ്ടിച്ചേരി സൂര്യനു കീഴിൽ', ]; $rules = <<<'RULES' # Transliteration :: Any-Latin ; :: Latin-Ascii ; # examples of custom replacements '&' > ' and ' ; [^0-9][01]? { € > ' euro' ; € > ' euros' ; [^0-9][01]? { '$' > ' dollar' ; '$' > ' dollars' ; :: Null ; # slugify [^[:alnum:]&[:ascii:]]+ > '-' ; :: Lower ; # trim [$] { '-' > &Remove() ; '-' } [$] > &Remove() ; RULES; $tsl = Transliterator::createFromRules($rules, Transliterator::FORWARD); $results = array_map(fn($s) => $tsl->transliterate($s), $strings); print_r($results);

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.120.0090.03827.57
8.4.110.0140.03022.77
8.4.100.0110.02822.51
8.4.90.0100.04022.51
8.4.80.0080.02121.74
8.4.70.0100.04821.42
8.4.60.0100.05122.68
8.4.50.0130.04222.31
8.4.40.0040.02923.19
8.4.30.0070.02822.48
8.4.20.0030.04522.55
8.4.10.0090.02221.28
8.3.250.0100.02822.54
8.3.240.0130.03220.93
8.3.230.0100.05220.23
8.3.220.0110.03320.95
8.3.210.0120.03020.29
8.3.200.0040.02720.44
8.3.190.0170.05524.71
8.3.180.0120.03822.69
8.3.170.0190.04122.86
8.3.160.0100.05321.19
8.3.150.0100.02820.25
8.3.140.0070.05221.02
8.3.130.0130.01922.16
8.3.120.0070.02622.52
8.3.110.0000.03222.11
8.3.100.0120.02824.06
8.3.90.0000.03026.77
8.3.80.0070.03020.19
8.3.70.0030.05420.57
8.3.60.0140.04522.26
8.3.50.0030.05220.20
8.3.40.0130.02522.72
8.3.30.0140.02722.63
8.3.20.0060.01325.77
8.3.10.0130.00725.76
8.3.00.0100.01027.36
8.2.290.0100.03424.36
8.2.280.0150.04621.98
8.2.270.0170.04720.58
8.2.260.0160.05220.25
8.2.250.0160.05522.25
8.2.240.0100.02422.72
8.2.230.0000.04222.58
8.2.220.0100.02737.54
8.2.210.0100.02126.77
8.2.200.0160.04822.17
8.2.190.0130.04320.11
8.2.180.0100.04525.92
8.2.170.0160.02022.84
8.2.160.0030.03524.34
8.2.150.0030.01625.66
8.2.140.0090.00924.66
8.2.130.0040.01526.16
8.2.120.0100.01026.35
8.2.110.0100.03025.24
8.2.100.0070.02321.85
8.2.90.0030.02122.28
8.2.80.0030.02121.63
8.2.70.0070.02021.75
8.2.60.0100.01421.93
8.2.50.0030.02021.63
8.2.40.0000.02824.08
8.2.30.0100.01722.17
8.2.20.0030.02022.40
8.2.10.0070.01723.16
8.2.00.0080.01823.46
8.1.330.0090.03625.99
8.1.320.0120.04119.66
8.1.310.0030.02619.79
8.1.300.0140.05823.25
8.1.290.0100.02630.84
8.1.280.0130.05425.92
8.1.270.0030.01626.06
8.1.260.0030.01726.35
8.1.250.0060.01328.09
8.1.240.0000.02127.79
8.1.230.0110.01825.14
8.1.220.0060.01921.79
8.1.210.0000.02322.85
8.1.200.0100.01621.47
8.1.190.0070.01821.48
8.1.180.0040.02123.43
8.1.170.0100.01322.71
8.1.160.0080.01523.02
8.1.150.0080.01522.77
8.1.140.0000.02322.77
8.1.130.0030.02023.27
8.1.120.0030.02021.80
8.1.110.0000.02321.62
8.1.100.0090.01521.57
8.1.90.0060.01621.55
8.1.80.0030.02621.56
8.1.70.0000.02221.69
8.1.60.0030.02021.80
8.1.50.0090.01521.69
8.1.40.0090.01921.65
8.1.30.0070.01721.92
8.1.20.0000.02421.79
8.1.10.0030.02021.88
8.1.00.0070.01721.79
8.0.300.0000.02324.10
8.0.290.0040.01920.88
8.0.280.0070.01522.38
8.0.270.0030.02022.00
8.0.260.0040.01922.19
8.0.250.0040.01921.05
8.0.240.0090.01321.20
8.0.230.0070.01721.16
8.0.220.0060.01621.11
8.0.210.0000.02321.13
8.0.200.0000.02321.15
8.0.190.0030.01921.17
8.0.180.0030.02021.05
8.0.170.0000.02521.15
8.0.160.0030.02221.13
8.0.150.0030.02121.09
8.0.140.0030.02020.95
8.0.130.0000.00613.39
8.0.120.0100.01421.22
8.0.110.0030.02021.27
8.0.100.0000.02421.09
8.0.90.0000.02421.25
8.0.80.0080.03521.14
8.0.70.0030.02021.27
8.0.60.0070.02021.13
8.0.50.0070.01621.11
8.0.30.0170.03421.23
8.0.20.0140.03421.30
8.0.10.0130.05721.38
8.0.00.0070.03721.27
7.4.330.0020.00215.55
7.4.320.0040.01920.80
7.4.300.0030.01920.62
7.4.290.0070.01720.71
7.4.280.0000.02820.79
7.4.270.0030.02220.80
7.4.260.0030.00313.33
7.4.250.0030.02120.71
7.4.240.0070.01720.75
7.4.230.0040.01920.50
7.4.220.0050.01820.79
7.4.210.0070.03520.75
7.4.200.0000.02320.84
7.4.160.0200.04020.85
7.4.150.0130.04520.66
7.4.140.0190.02820.63
7.4.130.0110.03420.67
7.4.120.0130.05420.81
7.4.110.0160.04320.64
7.4.100.0260.04220.55
7.4.90.0180.02820.71
7.4.80.0070.05320.69
7.4.70.0070.03820.55
7.4.60.0090.03620.63
7.4.50.0150.04720.60
7.4.40.0130.03420.59
7.4.30.0190.02920.42
7.4.20.0170.03220.67
7.4.10.0160.03220.75
7.4.00.0110.03520.70
7.3.330.0030.00316.14
7.3.320.0000.00513.23
7.3.310.0030.00316.18
7.3.300.0030.00316.14
7.3.290.0060.01016.21
7.3.280.0150.00416.13
7.3.270.0160.00316.12
7.3.260.0150.00316.13
7.3.250.0160.00316.24
7.3.240.0110.00616.14
7.3.230.0130.00616.12
7.3.220.0110.00816.12
7.3.210.0090.00616.07
7.3.200.0100.00316.23
7.3.190.0100.00716.13
7.3.180.0110.00616.23
7.3.170.0140.00316.06
7.3.160.0130.00616.23
7.3.150.0140.00716.11
7.3.140.0120.00416.12
7.3.130.0150.00216.11
7.3.120.0120.00516.06
7.3.110.0090.00916.04
7.3.100.0070.01215.99
7.3.90.0110.00516.34
7.3.80.0070.00916.07
7.3.70.0080.00816.18
7.3.60.0070.01016.29
7.3.50.0070.00716.23
7.3.40.0100.00316.23
7.3.30.0100.00616.18
7.3.20.0060.00816.21
7.3.10.0140.00016.16
7.3.00.0070.00716.20

preferences:
30.11 ms | 403 KiB | 5 Q