3v4l.org

run code in 500+ 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.70.0120.00616.82
8.5.60.0120.00616.78
8.5.50.0120.00516.70
8.5.40.0180.00416.68
8.5.30.0150.00517.94
8.5.20.0130.00617.71
8.5.10.0140.00517.29
8.5.00.0130.01019.23
8.4.220.0190.01825.34
8.4.210.0150.01625.24
8.4.200.0140.02225.27
8.4.190.0210.01525.43
8.4.180.0250.02326.83
8.4.170.0130.01626.14
8.4.160.0170.02026.81
8.4.150.0180.01622.54
8.4.140.0210.05721.41
8.4.130.0180.04821.44
8.4.120.0290.04922.12
8.4.110.0300.05222.26
8.4.100.0230.04622.34
8.4.90.0260.04821.77
8.4.80.0270.04821.92
8.4.70.0230.04321.83
8.4.60.0280.04721.79
8.4.50.0240.04621.77
8.4.40.0270.03921.64
8.4.30.0250.03921.77
8.4.20.0270.03921.52
8.4.10.0240.03521.85
8.3.310.0130.01724.63
8.3.300.0150.02324.78
8.3.290.0160.02124.88
8.3.280.0240.02124.42
8.3.270.0240.05620.26
8.3.260.0230.04820.27
8.3.250.0220.04520.75
8.3.240.0180.04620.37
8.3.230.0220.04120.40
8.3.220.0200.04121.21
8.3.210.0210.04820.60
8.3.200.0210.03720.57
8.3.190.0250.04320.43
8.3.180.0250.04720.39
8.3.170.0230.03920.24
8.3.160.0270.04620.77
8.3.150.0270.04320.55
8.3.140.0230.04320.33
8.3.130.0200.03820.51
8.3.120.0220.04420.75
8.3.110.0200.03820.45
8.3.100.0270.05125.75
8.3.90.0230.04021.28
8.3.80.0250.04223.68
8.3.70.0260.04320.26
8.3.60.0250.04820.47
8.3.50.0250.04620.63
8.3.40.0250.02722.81
8.3.30.0250.02822.06
8.3.20.0230.02422.60
8.3.10.0210.02222.55
8.3.00.0210.02523.07
8.2.310.0270.01623.46
8.2.300.0180.02323.77
8.2.290.0200.03821.13
8.2.280.0200.04221.21
8.2.270.0190.04920.94
8.2.260.0200.04720.30
8.2.250.0210.03820.37
8.2.240.0220.03820.57
8.2.230.0230.04320.44
8.2.220.0210.04523.78
8.2.210.0190.04120.95
8.2.200.0190.03820.36
8.2.190.0170.04220.29
8.2.180.0180.04220.87
8.2.170.0230.02622.20
8.2.160.0210.02322.33
8.2.150.0230.02622.24
8.2.140.0240.02622.14
8.2.130.0250.02522.76
8.2.120.0240.02222.65
8.2.110.0260.02622.65
8.2.100.0240.02622.50
8.2.90.0220.02822.38
8.2.80.0210.02522.41
8.2.70.0220.02430.10
8.2.60.0220.02429.91
8.2.50.0220.02329.43
8.2.40.0190.02628.72
8.2.30.0170.02428.65
8.2.20.0180.02228.79
8.2.10.0200.02128.64
8.2.00.0160.02428.81
8.1.340.0150.02123.27
8.1.330.0180.04620.91
8.1.320.0220.04119.91
8.1.310.0240.04720.15
8.1.300.0200.04220.34
8.1.290.0180.04721.08
8.1.280.0230.04320.54
8.1.270.0200.02522.56
8.1.260.0200.02922.87
8.1.250.0210.02723.01
8.1.240.0180.02222.70
8.1.230.0200.02322.62
8.1.220.0190.02722.33
8.1.210.0200.02622.30
8.1.200.0190.02429.74
8.1.190.0220.02629.70
8.1.180.0200.02529.27
8.1.170.0190.02428.84
8.1.160.0180.02528.48
8.1.150.0190.02228.58
8.1.140.0190.02428.33
8.1.130.0170.02128.50
8.1.120.0180.02528.49
8.1.110.0180.02528.39
8.1.100.0160.02227.77
8.1.90.0150.02526.49
8.1.80.0180.02327.50
8.1.70.0170.02227.50
8.1.60.0200.02427.67
8.1.50.0180.02527.60
8.1.40.0190.02227.65
8.1.30.0190.02127.75
8.1.20.0150.02227.72
8.1.10.0190.02127.69
8.1.00.0170.02327.53
8.0.300.0240.02822.26
8.0.290.0190.02329.27
8.0.280.0190.02428.03
8.0.270.0190.02427.69
8.0.260.0180.02128.03
8.0.250.0180.02327.97
8.0.240.0180.02228.02
8.0.230.0180.02327.28
8.0.220.0160.02326.91
8.0.210.0190.02326.88
8.0.200.0170.02626.95
8.0.190.0170.02226.94
8.0.180.0180.02026.95
8.0.170.0170.02326.96
8.0.160.0180.02327.08
8.0.150.0190.02026.90
8.0.140.0190.02326.90
8.0.130.0170.02426.91
8.0.120.0170.02226.91
8.0.110.0190.02426.90
8.0.100.0160.02326.98
8.0.90.0200.02126.89
8.0.80.0170.02326.91
8.0.70.0200.02126.86
8.0.60.0180.02226.89
8.0.50.0170.02226.89
8.0.30.0170.02126.97
8.0.20.0150.02327.01
8.0.10.0160.02427.09
7.4.330.0160.01426.65
7.4.320.0180.02527.54
7.4.300.0150.02425.71
7.4.290.0160.02226.14
7.4.280.0170.02326.55
7.4.270.0170.02326.57
7.4.260.0150.02226.59
7.4.250.0170.02626.59
7.4.240.0170.02426.56
7.4.230.0170.02326.62
7.4.220.0170.02426.55
7.4.210.0170.02326.67
7.4.200.0170.02126.58
7.4.190.0180.02226.63
7.4.180.0170.02226.68
7.4.160.0160.02426.61
7.4.150.0180.02326.54
7.4.140.0180.02326.50
7.4.130.0180.02226.50
7.4.120.0180.02226.48
7.4.110.0180.02226.52
7.4.100.0190.02426.55
7.4.90.0140.02326.50
7.4.80.0190.02326.60
7.4.70.0160.02126.53
7.4.60.0200.02226.54
7.4.50.0190.02226.46
7.4.40.0170.02226.51
7.4.30.0160.02426.58
7.4.20.0180.02426.59
7.4.10.0190.02326.43
7.4.00.0160.02226.44

preferences:
74.44 ms | 1291 KiB | 5 Q