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.3.130.0030.02722.02
8.3.120.0070.02524.73
8.3.110.0110.02822.08
8.3.100.0100.02220.27
8.3.90.0210.05226.77
8.3.80.0190.03222.00
8.3.70.0220.05420.38
8.3.60.0100.04721.80
8.3.50.0100.05419.97
8.3.40.0130.02322.56
8.3.30.0240.02022.73
8.3.20.0080.01225.73
8.3.10.0080.01125.66
8.3.00.0030.01627.71
8.2.250.0100.02020.44
8.2.240.0060.02422.77
8.2.230.0160.03522.58
8.2.220.0030.02624.06
8.2.210.0030.03126.77
8.2.200.0000.03521.99
8.2.190.0190.04820.09
8.2.180.0200.04025.92
8.2.170.0070.02822.81
8.2.160.0130.02224.35
8.2.150.0060.01325.66
8.2.140.0000.01924.66
8.2.130.0080.01126.16
8.2.120.0100.01026.35
8.2.110.0030.01925.32
8.2.100.0120.01521.77
8.2.90.0030.02023.07
8.2.80.0030.02121.75
8.2.70.0110.01421.50
8.2.60.0000.02522.29
8.2.50.0070.01821.75
8.2.40.0030.02024.20
8.2.30.0090.01822.19
8.2.20.0000.02322.40
8.2.10.0070.01723.30
8.2.00.0070.01623.21
8.1.300.0160.02921.40
8.1.290.0070.02930.84
8.1.280.0140.05525.92
8.1.270.0060.01325.92
8.1.260.0060.01326.35
8.1.250.0080.01128.09
8.1.240.0070.01525.48
8.1.230.0070.02121.70
8.1.220.0030.02121.91
8.1.210.0100.01321.36
8.1.200.0030.02221.60
8.1.190.0030.02321.35
8.1.180.0000.02421.76
8.1.170.0030.02122.77
8.1.160.0120.01222.88
8.1.150.0000.02222.79
8.1.140.0060.01622.91
8.1.130.0000.02224.00
8.1.120.0030.02021.63
8.1.110.0100.01321.54
8.1.100.0030.02021.55
8.1.90.0000.02321.66
8.1.80.0060.02321.71
8.1.70.0000.02321.70
8.1.60.0000.02421.77
8.1.50.0070.01721.78
8.1.40.0190.01621.77
8.1.30.0030.02121.80
8.1.20.0040.02121.79
8.1.10.0000.02421.75
8.1.00.0100.01721.57
8.0.300.0030.02220.93
8.0.290.0000.02320.75
8.0.280.0040.02022.45
8.0.270.0100.02122.02
8.0.260.0000.02222.54
8.0.250.0060.01621.05
8.0.240.0030.01921.18
8.0.230.0040.01921.17
8.0.220.0030.01920.99
8.0.210.0060.01821.07
8.0.200.0060.01921.19
8.0.190.0030.02021.09
8.0.180.0070.01621.19
8.0.170.0090.01621.14
8.0.160.0030.02021.12
8.0.150.0000.02321.05
8.0.140.0030.02021.16
8.0.130.0060.00013.35
8.0.120.0030.02321.21
8.0.110.0030.02021.27
8.0.100.0030.02020.99
8.0.90.0030.02021.11
8.0.80.0150.03821.20
8.0.70.0070.01621.12
8.0.60.0040.02521.09
8.0.50.0000.02321.11
8.0.30.0200.03121.27
8.0.20.0240.03121.35
8.0.10.0190.03521.21
8.0.00.0190.03421.25
7.4.330.0000.00415.55
7.4.320.0030.02020.77
7.4.300.0030.02020.78
7.4.290.0160.01320.63
7.4.280.0100.01420.69
7.4.270.0000.02420.76
7.4.260.0000.00513.24
7.4.250.0110.01420.60
7.4.240.0030.02220.69
7.4.230.0030.02020.72
7.4.220.0080.01520.74
7.4.210.0110.03220.74
7.4.200.0030.02020.54
7.4.160.0180.05220.78
7.4.150.0260.03420.76
7.4.140.0190.03220.64
7.4.130.0270.02120.62
7.4.120.0220.02920.70
7.4.110.0190.03520.68
7.4.100.0200.05120.70
7.4.90.0130.03820.55
7.4.80.0160.03020.64
7.4.70.0150.03720.65
7.4.60.0210.03120.53
7.4.50.0230.03620.69
7.4.40.0180.03320.48
7.4.30.0220.04020.61
7.4.20.0200.05320.67
7.4.10.0250.02920.68
7.4.00.0140.02820.70
7.3.330.0070.00016.01
7.3.320.0060.00013.17
7.3.310.0000.00716.12
7.3.300.0000.00616.18
7.3.290.0070.01116.15
7.3.280.0170.00816.16
7.3.270.0140.01716.08
7.3.260.0170.00916.17
7.3.250.0090.01416.14
7.3.240.0290.00416.20
7.3.230.0200.00816.13
7.3.220.0220.01516.13
7.3.210.0060.01916.15
7.3.200.0130.00416.11
7.3.190.0250.00016.15
7.3.180.0150.01216.14
7.3.170.0210.00416.15
7.3.160.0210.00616.03
7.3.150.0200.00816.16
7.3.140.0190.00916.15
7.3.130.0180.01116.02
7.3.120.0120.01216.07
7.3.110.0200.01316.03
7.3.100.0080.01415.99
7.3.90.0160.00516.39
7.3.80.0150.01016.07
7.3.70.0180.00916.18
7.3.60.0150.01116.21
7.3.50.0090.01216.21
7.3.40.0140.01016.32
7.3.30.0180.00616.22
7.3.20.0180.00816.32
7.3.10.0170.00816.18
7.3.00.0180.00916.21

preferences:
50.52 ms | 403 KiB | 5 Q