3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = strtr("This is á tèst!", "ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûýýþÿŔŕ", "aaaaaaaceeeeiiiidnoooooouuuuybsaaaaaaaceeeeiiiidnoooooouuuyybyRr"); $string = trim($string); $string = str_replace (" ", "-", $string); $string = preg_replace('/[^a-zA-Z0-9-]/', '', $string); $string = strtolower($string); print_r($string);

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.0120.00618.67
8.3.30.0070.00718.96
8.3.20.0040.00420.20
8.3.10.0080.00021.96
8.3.00.0070.00022.40
8.2.170.0040.01122.96
8.2.160.0070.00721.05
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0100.00726.16
8.2.120.0040.00419.36
8.2.110.0060.00322.26
8.2.100.0100.00317.91
8.2.90.0090.00019.21
8.2.80.0050.00317.97
8.2.70.0040.00417.88
8.2.60.0050.00317.80
8.2.50.0040.00418.07
8.2.40.0060.00318.09
8.2.30.0000.00817.95
8.2.20.0020.00517.84
8.2.10.0040.00419.46
8.2.00.0040.00417.76
8.1.270.0060.00322.05
8.1.260.0000.00826.35
8.1.250.0090.00928.09
8.1.240.0090.00023.73
8.1.230.0100.00019.09
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0060.00717.36
8.1.190.0030.00617.41
8.1.180.0050.00318.72
8.1.170.0080.00018.60
8.1.160.0000.00721.98
8.1.150.0040.00418.71
8.1.140.0040.00417.53
8.1.130.0000.00717.84
8.1.120.0030.00317.60
8.1.110.0000.00717.53
8.1.100.0040.00417.52
8.1.90.0030.00317.42
8.1.80.0000.00717.50
8.1.70.0040.00417.55
8.1.60.0080.00017.56
8.1.50.0050.00217.59
8.1.40.0000.00717.61
8.1.30.0000.00817.68
8.1.20.0000.00817.77
8.1.10.0020.00517.47
8.1.00.0040.00417.57
8.0.300.0040.00418.77
8.0.290.0070.00017.05
8.0.280.0070.00018.36
8.0.270.0000.00717.20
8.0.260.0040.00416.80
8.0.250.0070.00016.99
8.0.240.0050.00216.93
8.0.230.0000.00817.03
8.0.220.0050.00316.99
8.0.210.0040.00416.98
8.0.200.0000.00616.90
8.0.190.0030.00516.96
8.0.180.0030.00316.88
8.0.170.0040.00416.92
8.0.160.0000.00716.96
8.0.150.0040.00416.91
8.0.140.0040.00416.84
8.0.130.0000.00613.37
8.0.120.0040.00416.96
8.0.110.0040.00416.97
8.0.100.0000.00716.96
8.0.90.0000.00716.96
8.0.80.0000.01817.03
8.0.70.0030.00516.87
8.0.60.0040.00416.89
8.0.50.0000.00817.03
8.0.30.0070.01217.25
8.0.20.0120.00917.41
8.0.10.0070.00017.05
8.0.00.0090.00916.77
7.4.330.0000.00515.00
7.4.320.0000.00616.55
7.4.300.0030.00316.71
7.4.290.0000.00716.66
7.4.280.0030.00316.73
7.4.270.0000.00716.75
7.4.260.0050.00316.70
7.4.250.0000.00816.75
7.4.240.0020.00616.75
7.4.230.0020.00516.39
7.4.220.0170.00016.70
7.4.210.0130.00416.76
7.4.200.0000.00916.59
7.4.190.0030.00516.59
7.4.160.0110.01116.47
7.4.150.0100.00717.40
7.4.140.0090.01217.86
7.4.130.0040.01316.60
7.4.120.0100.00716.53
7.4.110.0100.00716.58
7.4.100.0040.01416.69
7.4.90.0090.00916.70
7.4.80.0090.00919.39
7.4.70.0090.01216.45
7.4.60.0070.01216.53
7.4.50.0000.00816.56
7.4.40.0060.00622.77
7.4.30.0120.00316.55
7.4.00.0100.00715.18
7.3.330.0000.00613.15
7.3.320.0000.00513.11
7.3.310.0070.00016.17
7.3.300.0000.00716.17
7.3.290.0040.01116.28
7.3.280.0060.01116.29
7.3.270.0100.01017.40
7.3.260.0100.00716.31
7.3.250.0130.00316.45
7.3.240.0060.01016.58
7.3.230.0070.01016.47
7.3.210.0060.01016.37
7.3.200.0000.01719.39
7.3.190.0150.00616.63
7.3.180.0140.00616.48
7.3.170.0140.00316.49
7.3.160.0110.00516.42
7.3.120.0090.00615.02
7.3.110.0110.00314.45
7.3.100.0040.00415.04
7.3.90.0060.00314.88
7.3.80.0070.00314.95
7.3.70.0000.00814.82
7.3.60.0070.00414.87
7.3.50.0070.01014.65
7.3.40.0070.00714.86
7.3.30.0000.01114.80
7.3.20.0030.00916.64
7.3.10.0030.01016.49
7.3.00.0000.00816.82
7.2.330.0090.00916.62
7.2.320.0110.01516.75
7.2.310.0030.01916.71
7.2.300.0070.01016.66
7.2.290.0100.00716.70
7.2.250.0040.01114.97
7.2.240.0030.01314.85
7.2.230.0040.00715.15
7.2.220.0060.00315.15
7.2.210.0070.00715.02
7.2.200.0070.00715.16
7.2.190.0060.01215.04
7.2.180.0000.00914.78
7.2.170.0070.00714.79
7.2.160.0080.00414.71
7.2.150.0000.01517.06
7.2.140.0030.00717.13
7.2.130.0030.00816.86
7.2.120.0110.00416.72
7.2.110.0060.00616.91
7.2.100.0040.01117.02
7.2.90.0060.00616.61
7.2.80.0000.00917.05
7.2.70.0030.00816.74
7.2.60.0030.00616.94
7.2.50.0080.00417.05
7.2.40.0060.00316.79
7.2.30.0030.00817.14
7.2.20.0040.01116.93
7.2.10.0030.01017.02
7.2.00.0030.00816.89
7.1.330.0000.01015.78
7.1.320.0030.01015.92
7.1.310.0050.00515.98
7.1.300.0030.00715.97
7.1.290.0080.00415.90
7.1.280.0000.00915.85
7.1.270.0060.00916.08
7.1.260.0040.00415.70
7.1.250.0000.01015.98
7.1.100.0060.00618.28
7.1.70.0040.00417.09
7.1.60.0070.01719.82
7.1.50.0160.00617.14
7.1.00.0130.06322.29
7.0.200.0000.01016.79
7.0.140.0100.06722.15
7.0.60.0070.08319.86
7.0.50.0100.06017.83
7.0.40.0070.09320.24
7.0.30.0330.07020.02
7.0.20.0200.04020.14
7.0.10.0130.05320.01
7.0.00.0100.08720.10
5.6.280.0030.07321.09
5.6.210.0200.06320.55
5.6.200.0070.08018.18
5.6.190.0000.04720.68
5.6.180.4030.04020.27
5.6.170.0300.04020.41
5.6.160.0170.07020.48
5.6.150.0100.07318.12
5.6.140.0030.07318.15
5.6.130.0100.08018.21
5.6.120.0070.03721.09
5.6.110.0170.06020.98
5.6.100.0170.08020.98
5.6.90.0070.09020.96
5.6.80.0000.04320.37
5.6.70.0400.06720.34
5.5.350.0000.08320.34
5.5.340.0030.08317.95
5.5.330.0000.09320.07
5.5.320.0300.07320.27
5.5.310.0230.07720.50
5.5.300.0030.08317.98
5.5.290.0100.06317.91
5.5.280.0070.08320.64
5.5.270.0070.08720.75
5.5.260.0030.08020.78
5.5.250.0130.07320.59
5.5.240.0070.08320.25
5.4.450.0470.05719.61
5.4.440.0300.06019.32
5.4.430.0100.08019.61
5.4.420.0070.06019.35
5.4.410.0170.07019.37
5.4.400.0770.00018.48
5.4.390.0670.00018.72
5.4.380.0270.05318.50
5.4.370.0430.04018.50
5.4.360.0330.04718.52
5.4.350.0330.05718.49
5.4.340.0230.05318.53
5.4.320.0050.03712.45
5.4.310.0080.03912.45
5.4.300.0060.03812.45
5.4.290.0050.03912.45
5.4.280.0090.03212.35
5.4.270.0060.04012.31
5.4.260.0060.04712.32
5.4.250.0060.04912.31
5.4.240.0050.04412.31
5.4.230.0070.03712.30
5.4.220.0040.03812.31
5.4.210.0060.03712.30
5.4.200.0070.03712.31
5.4.190.0090.03512.30
5.4.180.0080.03612.30
5.4.170.0070.04512.31
5.4.160.0030.04012.31
5.4.150.0070.03712.30
5.4.140.0060.03711.98
5.4.130.0080.03411.98
5.4.120.0090.03611.93
5.4.110.0080.03311.93
5.4.100.0060.03611.93
5.4.90.0070.03711.93
5.4.80.0060.03911.93
5.4.70.0070.05111.93
5.4.60.0080.05811.93
5.4.50.0080.03511.92
5.4.40.0080.04711.91
5.4.30.0060.03511.91
5.4.20.0070.04011.91
5.4.10.0070.04111.91
5.4.00.0060.03911.40
5.3.290.0050.04112.80
5.3.280.0060.04112.71
5.3.270.0060.04412.72
5.3.260.0100.05112.72
5.3.250.0080.06312.72
5.3.240.0080.05812.72
5.3.230.0120.04912.71
5.3.220.0070.05312.68
5.3.210.0070.06112.68
5.3.200.0100.04912.68
5.3.190.0100.04112.68
5.3.180.0100.04712.67
5.3.170.0080.04812.67
5.3.160.0070.04012.67
5.3.150.0140.04312.68
5.3.140.0100.04712.66
5.3.130.0090.05212.66
5.3.120.0100.05212.66
5.3.110.0120.07112.66
5.3.100.0080.04212.12
5.3.90.0060.04812.08
5.3.80.0080.04812.08
5.3.70.0110.04112.08
5.3.60.0100.04412.06
5.3.50.0080.05312.00
5.3.40.0040.04312.00
5.3.30.0030.03811.94
5.3.20.0090.03311.69
5.3.10.0080.03711.65
5.3.00.0040.04011.64
5.2.170.0080.0299.14
5.2.160.0030.0349.14
5.2.150.0040.0349.14
5.2.140.0050.0329.14
5.2.130.0040.0319.10
5.2.120.0060.0319.10
5.2.110.0060.0299.10
5.2.100.0050.0369.11
5.2.90.0040.0349.10
5.2.80.0040.0429.09
5.2.70.0080.0319.09
5.2.60.0070.0399.05
5.2.50.0090.0289.02
5.2.40.0060.0299.00
5.2.30.0050.0318.97
5.2.20.0040.0298.96
5.2.10.0060.0278.89
5.2.00.0070.0288.74
5.1.60.0070.0218.03
5.1.50.0040.0278.03
5.1.40.0050.0298.02
5.1.30.0030.0298.36
5.1.20.0030.0278.39
5.1.10.0040.0268.11
5.1.00.0050.0248.11
5.0.50.0040.0276.58
5.0.40.0070.0176.44
5.0.30.0060.0376.25
5.0.20.0050.0236.23
5.0.10.0050.0216.20
5.0.00.0070.0386.20
4.4.90.0050.0234.78
4.4.80.0030.0224.75
4.4.70.0050.0204.76
4.4.60.0060.0194.76
4.4.50.0050.0154.77
4.4.40.0040.0264.70
4.4.30.0000.0194.76
4.4.20.0020.0174.85
4.4.10.0010.0194.85
4.4.00.0040.0244.75
4.3.110.0030.0164.67
4.3.100.0020.0164.66
4.3.90.0030.0154.63
4.3.80.0010.0264.58
4.3.70.0020.0164.63
4.3.60.0020.0164.63
4.3.50.0030.0154.63
4.3.40.0010.0264.54
4.3.30.0010.0173.27
4.3.20.0010.0163.25
4.3.10.0050.0143.22
4.3.00.0000.0236.98

preferences:
43.26 ms | 400 KiB | 5 Q