3v4l.org

run code in 300+ PHP versions simultaneously
<?php function slugify($string) { $string = transliterator_transliterate("Any-Latin; NFD; [:Nonspacing Mark:] Remove; NFC; [:Punctuation:] Remove; Lower();", $string); $string = preg_replace('/[-\s]+/', '-', $string); return trim($string, '-'); } echo slugify("Я люблю PHP!"); ?>

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.40.0100.02622.15
8.3.30.0070.02123.55
8.3.20.0000.01623.72
8.3.10.0060.01024.17
8.3.00.0040.01226.07
8.2.170.0110.01822.96
8.2.160.0060.02923.48
8.2.150.0060.00924.18
8.2.140.0060.01024.66
8.2.130.0060.00926.16
8.2.120.0040.01224.49
8.2.110.0060.01324.75
8.2.100.0100.01321.59
8.2.90.0070.01322.60
8.2.80.0060.01321.68
8.2.70.0100.01321.25
8.2.60.0070.01921.18
8.2.50.0080.01221.38
8.2.40.0030.01621.62
8.2.30.0040.01422.93
8.2.20.0040.01521.41
8.2.10.0060.01321.20
8.2.00.0130.01321.33
8.1.270.0030.01325.50
8.1.260.0060.00926.35
8.1.250.0040.01228.09
8.1.240.0160.00927.22
8.1.230.0060.01924.35
8.1.220.0040.01521.39
8.1.210.0090.01224.38
8.1.200.0070.02120.88
8.1.190.0000.01920.90
8.1.180.0040.01520.97
8.1.170.0150.00922.13
8.1.160.0040.01522.08
8.1.150.0040.01521.96
8.1.140.0080.01221.01
8.1.130.0080.01221.36
8.1.120.0070.01321.16
8.1.110.0030.01720.91
8.1.100.0070.01021.02
8.1.90.0000.01721.04
8.1.80.0030.01821.10
8.1.70.0030.01621.02
8.1.60.0030.01721.23
8.1.50.0000.01921.20
8.1.40.0090.01221.21
8.1.30.0000.02021.44
8.1.20.0030.01621.28
8.1.10.0060.01321.28
8.1.00.0030.01721.19
8.0.300.0130.01322.93
8.0.290.0060.01220.68
8.0.280.0030.01921.73
8.0.270.0040.01420.78
8.0.260.0030.01520.40
8.0.250.0140.01420.53
8.0.240.0150.00920.59
8.0.230.0030.01620.58
8.0.220.0000.01820.52
8.0.210.0060.01220.47
8.0.200.0060.01320.59
8.0.190.0060.01520.43
8.0.180.0060.01320.42
8.0.170.0030.01420.52
8.0.160.0060.01420.58
8.0.150.0080.01220.43
8.0.140.0170.02120.42
8.0.130.0060.00013.39
8.0.120.0100.01020.53
8.0.110.0030.01620.69
8.0.100.0020.01820.58
8.0.90.0050.01520.48
8.0.80.0080.02220.49
8.0.70.0030.01720.47
8.0.60.0030.01720.49
8.0.50.0070.01320.51
8.0.30.0050.02920.91
8.0.20.0110.03120.60
8.0.10.0050.01420.65
8.0.00.0120.02420.61
7.4.330.0050.00016.88
7.4.320.0060.01320.14
7.4.300.0050.01520.35
7.4.290.0070.01020.34
7.4.280.0040.01620.32
7.4.270.0100.01020.32
7.4.260.0030.00313.17
7.4.250.0000.01820.23
7.4.240.0030.01520.29
7.4.230.0080.01220.25
7.4.220.0080.02820.32
7.4.210.0090.02620.31
7.4.200.0090.01120.23
7.4.190.0050.01420.48
7.4.180.0080.01120.37
7.4.160.0050.02320.38
7.4.150.0100.02420.29
7.4.140.0070.02720.09
7.4.130.0090.03020.16
7.4.120.0070.02520.10
7.4.110.0040.02720.18
7.4.100.0090.02020.28
7.4.90.0080.02120.08
7.4.80.0100.02720.34
7.4.70.0070.02220.38
7.4.60.0070.02420.09
7.4.50.0050.01720.23
7.4.40.0050.02121.42
7.4.30.0080.02520.30
7.4.20.0030.01720.32
7.4.10.0030.02619.34
7.4.00.0080.02219.09
7.3.330.0000.00613.32
7.3.320.0060.00013.32
7.3.310.0060.01219.84
7.3.300.0020.01719.95
7.3.290.0110.01920.00
7.3.280.0140.02020.01
7.3.270.0080.03320.27
7.3.260.0110.02120.20
7.3.250.0130.02619.97
7.3.240.0100.02320.01
7.3.230.0140.01720.20
7.3.220.0000.02119.84
7.3.210.0080.03120.10
7.3.200.0060.02420.04
7.3.190.0050.02820.11
7.3.180.0050.02520.10
7.3.170.0050.02720.20
7.3.160.0070.02319.97
7.3.150.0070.01419.83
7.3.140.0040.01619.91
7.3.130.0100.02019.42
7.3.120.0080.02219.00
7.3.110.0060.02019.20
7.3.100.0060.01819.12
7.3.90.0060.01519.46
7.3.80.0070.02219.10
7.3.70.0050.01719.37
7.3.60.0090.02119.30
7.3.50.0110.01819.34
7.3.40.0030.02319.40
7.3.30.0050.01819.28
7.3.20.0000.03020.06
7.3.10.0020.02720.12
7.3.00.0060.01620.20
7.2.340.0060.01820.05
7.2.330.0100.02120.30
7.2.320.0100.02820.19
7.2.310.0120.02120.21
7.2.300.0080.03220.26
7.2.290.0090.03020.25
7.2.280.0130.01320.18
7.2.270.0090.01720.16
7.2.260.0070.02419.34
7.2.250.0120.01619.42
7.2.240.0060.01919.38
7.2.230.0070.01819.46
7.2.220.0070.02119.41
7.2.210.0040.01919.37
7.2.200.0090.01719.29
7.2.190.0070.02419.48
7.2.180.0140.02119.49
7.2.170.0090.01819.51
7.2.160.0090.01919.45
7.2.150.0080.01920.32
7.2.140.0150.01620.38
7.2.130.0070.01920.25
7.2.120.0090.01920.36
7.2.110.0070.02020.37
7.2.100.0080.01920.51
7.2.90.0120.01921.30
7.2.80.0140.02121.37
7.2.70.0120.01721.32
7.2.60.0070.01921.25
7.2.50.0110.01721.15
7.2.40.0080.01621.29
7.2.30.0050.01721.40
7.2.20.0080.01821.19
7.2.10.0050.01721.27
7.2.00.0060.02221.70
7.1.330.0080.01720.30
7.1.320.0030.02620.19
7.1.310.0050.01720.21
7.1.300.0080.01620.13
7.1.290.0020.02720.11
7.1.280.0070.01720.20
7.1.270.0050.02120.01
7.1.260.0060.01920.24
7.1.250.0040.02019.94
7.1.240.0040.02019.97
7.1.230.0070.01720.13
7.1.220.0030.01920.10
7.1.210.0050.02420.26
7.1.200.0050.01620.12
7.1.190.0080.01620.11
7.1.180.0050.01719.91
7.1.170.0080.01720.25
7.1.160.0020.02019.93
7.1.150.0110.01419.98
7.1.140.0150.00620.14
7.1.130.0100.01420.11
7.1.120.0070.02120.14
7.1.110.0040.01920.18
7.1.100.0050.02320.69
7.1.90.0100.01820.08
7.1.80.0060.01920.06
7.1.70.0070.01820.48
7.1.60.0090.02320.52
7.1.50.0070.01920.43
7.1.40.0070.02020.19
7.1.30.0070.01620.17
7.1.20.0070.01720.07
7.1.10.0060.01820.13
7.1.00.0050.04522.18
7.0.330.0100.01619.95
7.0.320.0050.02119.72
7.0.310.0070.01719.72
7.0.300.0090.01719.69
7.0.290.0050.02019.69
7.0.280.0110.01419.69
7.0.270.0050.02219.61
7.0.260.0100.01719.86
7.0.250.0060.01619.90
7.0.240.0050.02019.89
7.0.230.0050.02019.84
7.0.220.0050.01919.78
7.0.210.0070.01619.85
7.0.200.0080.01920.00
7.0.190.0120.02019.66
7.0.180.0090.02319.71
7.0.170.0040.02119.93
7.0.160.0060.02119.93
7.0.150.0080.01719.84
7.0.140.0100.04021.77
7.0.130.0110.01319.73
7.0.120.0100.01619.84
7.0.110.0080.01919.76
7.0.100.0110.04421.02
7.0.90.0090.04620.81
7.0.80.0090.03020.94
7.0.70.0140.04620.96
7.0.60.0040.04621.07
7.0.50.0170.02620.81
7.0.40.0020.03720.00
7.0.30.0120.03820.06
7.0.20.0080.02820.02
7.0.10.0030.03720.06
7.0.00.0090.04020.03
5.6.400.0070.01618.65
5.6.390.0070.01918.59
5.6.380.0100.01618.61
5.6.370.0060.01918.68
5.6.360.0100.01518.46
5.6.350.0070.01818.63
5.6.340.0070.01918.49
5.6.330.0090.01718.54
5.6.320.0130.01618.58
5.6.310.0070.01718.66
5.6.300.0070.01918.53
5.6.290.0040.02018.63
5.6.280.0060.04320.55
5.6.270.0090.01818.65
5.6.260.0020.02418.56
5.6.250.0080.04520.39
5.6.240.0080.04620.45
5.6.230.0070.04820.35
5.6.220.0120.03820.47
5.6.210.0100.03920.35
5.6.200.0120.02620.39
5.6.190.0080.03020.44
5.6.180.0080.03820.40
5.6.170.0080.03220.45
5.6.160.0100.03620.48
5.6.150.0080.04520.48
5.6.140.0070.03420.45
5.6.130.0090.02820.37
5.6.120.0100.04020.36
5.6.110.0100.04320.39
5.6.100.0070.03520.31
5.6.90.0080.03820.36
5.6.80.0060.04020.08
5.6.70.0050.03620.23
5.6.60.0040.04220.24
5.6.50.0090.03920.09
5.6.40.0060.04120.08
5.6.30.0130.02620.05
5.6.20.0040.03220.15
5.6.10.0100.04120.03
5.6.00.0090.04320.10
5.5.380.0060.04520.55
5.5.370.0070.04720.43
5.5.360.0100.04320.36
5.5.350.0100.04320.31
5.5.340.0090.04120.13
5.5.330.0070.03720.37
5.5.320.0050.03920.18
5.5.310.0080.02520.24
5.5.300.0060.04720.24
5.5.290.0120.04220.30
5.5.280.0040.02920.15
5.5.270.0070.03620.22
5.5.260.0130.03920.18
5.5.250.0090.03720.11
5.5.240.0030.04119.96
5.5.230.0110.02819.95
5.5.220.0070.03520.00
5.5.210.0120.03720.04
5.5.200.0070.04020.03
5.5.190.0070.02619.99
5.5.180.0120.02420.00
5.5.170.0070.02018.58
5.5.160.0070.04020.01
5.5.150.0090.03919.94
5.5.140.0070.03919.87
5.5.130.0110.03719.94
5.5.120.0090.02619.92
5.5.110.0080.03919.96
5.5.100.0080.03819.95
5.5.90.0040.03119.91
5.5.80.0100.03520.03
5.5.70.0090.03719.99
5.5.60.0080.03720.01
5.5.50.0040.02620.06
5.5.40.0070.03119.91
5.5.30.0030.04819.94
5.5.20.0120.03819.99
5.5.10.0080.03419.91
5.5.00.0060.02719.88
5.4.450.0060.03415.62
5.4.440.0090.01715.63
5.4.430.0100.02615.60
5.4.420.0100.02215.58
5.4.410.0060.03315.59
5.4.400.0070.01815.60
5.4.390.0120.01615.54
5.4.380.0080.02815.45
5.4.370.0050.02615.52
5.4.360.0060.01715.49
5.4.350.0060.03115.48
5.4.340.0030.01815.60
5.4.330.0010.00712.55
5.4.320.0060.02915.57
5.4.310.0040.02015.46
5.4.300.0020.03215.55
5.4.290.0060.02415.57
5.4.280.0040.03215.52
5.4.270.0100.01315.50
5.4.260.0050.02415.48
5.4.250.0100.01915.53
5.4.240.0030.03015.55
5.4.230.0060.02115.54
5.4.220.0020.03215.46
5.4.210.0040.02915.42
5.4.200.0030.01815.36
5.4.190.0060.03015.51
5.4.180.0070.01515.44
5.4.170.0030.02015.45
5.4.160.0040.02815.47
5.4.150.0050.03115.54
5.4.140.0070.02314.67
5.4.130.0010.01814.68
5.4.120.0000.03014.68
5.4.110.0030.01814.62
5.4.100.0080.01214.55
5.4.90.0030.02814.64
5.4.80.0030.01814.61
5.4.70.0060.02314.64
5.4.60.0030.01614.64
5.4.50.0010.02314.55
5.4.40.0040.02114.63
5.4.30.0060.02814.74
5.4.20.0050.02414.65
5.4.10.0030.02514.70
5.4.00.0070.02614.51
5.3.290.0040.01813.34
5.3.280.0040.02813.38
5.3.270.0040.02713.40
5.3.260.0010.01713.41
5.3.250.0050.02513.37
5.3.240.0050.01313.26
5.3.230.0060.02613.40
5.3.220.0060.02613.29
5.3.210.0040.01513.28
5.3.200.0020.02413.32
5.3.190.0040.01613.40
5.3.180.0010.02513.47
5.3.170.0070.02413.37
5.3.160.0060.02113.40
5.3.150.0070.02413.48
5.3.140.0040.02913.39
5.3.130.0040.01513.37
5.3.120.0010.02013.37
5.3.110.0010.03013.31
5.3.100.0020.01713.11
5.3.90.0040.02313.21
5.3.80.0030.02813.20
5.3.70.0010.02013.14
5.3.60.0070.01213.16
5.3.50.0020.03013.21
5.3.40.0070.02313.15
5.3.30.0000.03013.17
5.3.20.0040.02613.06
5.3.10.0020.02813.01
5.3.00.0050.02213.00

preferences:
38.84 ms | 400 KiB | 5 Q