3v4l.org

run code in 300+ PHP versions simultaneously
<?php function slugify(string $input): string { $translitRules = [ ":: Any-Latin", ":: [:Nonspacing Mark:] Remove", ":: [:Punctuation:] Remove", ":: [:Symbol:] Remove", ":: Latin-ASCII", ":: Lower()", "' ' {' '} > ", "::NULL", "[:Separator:] > '-'", ]; $transliterator = \Transliterator::createFromRules( implode(';', $translitRules) ); return $transliterator->transliterate($input); } $title = '<?php François😎: _+ / Стравинский`😜.'; $slug = slugify($title); var_dump($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.10.0100.01924.09
8.3.140.0170.06320.41
8.3.130.0060.02321.75
8.3.120.0030.03222.34
8.3.110.0040.03121.77
8.3.100.0000.03024.06
8.3.90.0030.02426.77
8.3.80.0030.03921.74
8.3.70.0130.04519.91
8.3.60.0130.04220.16
8.3.50.0070.04825.38
8.3.40.0070.03625.51
8.3.30.0210.02522.00
8.3.20.0040.01425.23
8.3.10.0060.01325.38
8.3.00.0090.00926.16
8.2.250.0070.02721.92
8.2.240.0110.02222.56
8.2.230.0070.02322.58
8.2.220.0070.02337.54
8.2.210.0070.02126.77
8.2.200.0070.05120.04
8.2.190.0070.05721.97
8.2.180.0190.06825.92
8.2.170.0100.02322.41
8.2.160.0130.03223.90
8.2.150.0040.01526.05
8.2.140.0180.01424.92
8.2.130.0070.01026.16
8.2.120.0040.01524.10
8.2.110.0070.01325.12
8.2.100.0120.02321.47
8.2.90.0000.02123.34
8.2.80.0060.01522.59
8.2.70.0090.01321.25
8.2.60.0140.01421.28
8.2.50.0030.01821.50
8.2.40.0070.01423.13
8.2.30.0000.02122.81
8.2.20.0030.01721.99
8.2.10.0030.01723.07
8.2.00.0000.02023.03
8.1.300.0030.02621.48
8.1.290.0070.02730.84
8.1.280.0130.05325.92
8.1.270.0090.00925.80
8.1.260.0090.00926.40
8.1.250.0030.01528.09
8.1.240.0100.01026.52
8.1.230.0130.01326.54
8.1.220.0060.01521.54
8.1.210.0030.01723.51
8.1.200.0040.01821.10
8.1.190.0070.02021.66
8.1.180.0070.01421.38
8.1.170.0040.01822.46
8.1.160.0030.01922.71
8.1.150.0030.01722.50
8.1.140.0000.02022.52
8.1.130.0060.01521.32
8.1.120.0000.02521.33
8.1.110.0080.01721.43
8.1.100.0100.01521.09
8.1.90.0080.01521.22
8.1.80.0060.01721.13
8.1.70.0090.01421.27
8.1.60.0050.02221.51
8.1.50.0050.02021.35
8.1.40.0080.02021.42
8.1.30.0090.01721.51
8.1.20.0080.01721.53
8.1.10.0040.02121.32
8.1.00.0020.02321.24
8.0.300.0090.01223.78
8.0.290.0060.01520.63
8.0.280.0000.02022.10
8.0.270.0030.01720.76
8.0.260.0040.01820.71
8.0.250.0050.01920.69
8.0.240.0090.01420.75
8.0.230.0110.01620.70
8.0.220.0060.01720.71
8.0.210.0030.02220.69
8.0.200.0080.01620.75
8.0.190.0030.02120.76
8.0.180.0050.01720.74
8.0.170.0050.01920.64
8.0.160.0040.02120.75
8.0.150.0060.01720.72
8.0.140.0070.01520.60
8.0.130.0040.01216.94
8.0.120.0050.01720.66
8.0.110.0080.01720.56
8.0.100.0050.01820.74
8.0.90.0050.01820.64
8.0.80.0070.02820.75
8.0.70.0060.02020.63
8.0.60.0070.01620.64
8.0.50.0110.01420.49
8.0.30.0080.02620.96
8.0.20.0140.03120.90
8.0.10.0090.01520.95
8.0.00.0150.03220.80
7.4.330.0020.00414.92
7.4.320.0070.01720.40
7.4.300.0110.01120.40
7.4.290.0070.02520.39
7.4.280.0090.02320.42
7.4.270.0080.01820.41
7.4.260.0070.01216.77
7.4.250.0050.02020.43
7.4.240.0050.01820.46
7.4.230.0080.01620.24
7.4.220.0060.01620.42
7.4.210.0140.02220.43
7.4.200.0040.02020.48
7.4.190.0040.02520.50
7.4.180.0000.02620.32
7.4.160.0140.01120.43
7.4.150.0000.02720.35
7.4.140.0030.02420.34
7.4.130.0110.02720.34
7.4.120.0050.03020.12
7.4.110.0070.02720.11
7.4.100.0080.02620.22
7.4.90.0070.02720.37
7.4.80.0130.02420.22
7.4.70.0090.02420.29
7.4.60.0090.02620.26
7.4.50.0130.02320.38
7.4.40.0100.02520.18
7.4.30.0050.03019.95
7.4.20.0060.02920.18
7.4.10.0100.02520.22
7.4.00.0080.02420.10
7.3.330.0110.01821.14
7.3.320.0070.01216.71
7.3.310.0060.01920.23
7.3.300.0120.01620.25
7.3.290.0110.03920.27
7.3.280.0180.01920.07
7.3.270.0130.01920.09
7.3.260.0110.03120.24
7.3.250.0110.02220.09
7.3.240.0160.01820.21
7.3.230.0170.01920.22
7.3.220.0150.02320.11
7.3.210.0150.02120.32
7.3.200.0180.01820.19
7.3.190.0160.01920.24
7.3.180.0090.02820.22
7.3.170.0080.03020.23
7.3.160.0180.01920.32
7.3.150.0130.02220.07
7.3.140.0180.03220.37
7.3.130.0110.03720.19
7.3.120.0080.03019.96
7.3.110.0090.02820.06
7.3.100.0100.02620.18
7.3.90.0120.02620.34
7.3.80.0110.02820.16
7.3.70.0090.02820.21
7.3.60.0090.02920.25
7.3.50.0130.02420.24
7.3.40.0130.02720.32
7.3.30.0080.02920.20
7.3.20.0240.02721.10
7.3.10.0150.02521.11
7.3.00.0160.02321.12
7.2.340.0070.02820.36
7.2.330.0100.02720.29
7.2.320.0060.03320.16
7.2.310.0120.02320.30
7.2.300.0090.02520.22
7.2.290.0140.02320.32
7.2.280.0120.02420.05
7.2.270.0150.02420.17
7.2.260.0150.02020.25
7.2.250.0150.02120.27
7.2.240.0140.02220.10
7.2.230.0110.03020.30
7.2.220.0140.02720.13
7.2.210.0130.02520.13
7.2.200.0110.02720.33
7.2.190.0140.02220.32
7.2.180.0060.02920.38
7.2.170.0160.02020.34
7.2.160.0140.02520.42
7.2.150.0120.02521.21
7.2.140.0130.02521.18
7.2.130.0140.02421.23
7.2.120.0130.02321.33
7.2.110.0090.02721.22
7.2.100.0150.02121.26
7.2.90.0150.02121.20
7.2.80.0140.02321.21
7.2.70.0120.02721.21
7.2.60.0110.02821.32
7.2.50.0110.02721.27
7.2.40.0150.02321.24
7.2.30.0170.02121.32
7.2.20.0070.03121.30
7.2.10.0120.02521.26
7.2.00.0170.02221.28

preferences:
61.74 ms | 403 KiB | 5 Q