3v4l.org

run code in 300+ PHP versions simultaneously
<?php function transliterate($textcyr) { $textcyr = preg_replace('/[^A-Za-z0-9\s \-]/', '', $textcyr); if($textcyr) return $textcyr; else return null; } echo transliterate("Restart Cool");

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.60.0100.01018.68
8.3.50.0070.01122.09
8.3.40.0070.01118.96
8.3.30.0120.00919.13
8.3.20.0040.00420.21
8.3.10.0000.00823.48
8.3.00.0040.00419.09
8.2.180.0100.01316.63
8.2.170.0110.00422.96
8.2.160.0000.01522.22
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0030.00521.11
8.2.110.0030.00721.04
8.2.100.0080.00318.03
8.2.90.0060.00319.25
8.2.80.0060.00317.97
8.2.70.0030.00517.63
8.2.60.0040.00417.80
8.2.50.0080.00018.07
8.2.40.0000.00818.16
8.2.30.0040.00418.08
8.2.20.0000.00817.82
8.2.10.0040.00418.07
8.2.00.0000.00817.81
8.1.280.0130.00725.92
8.1.270.0040.00418.95
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0100.00023.96
8.1.230.0000.01120.90
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0040.00417.35
8.1.190.0000.00817.22
8.1.180.0040.00419.14
8.1.170.0090.00018.63
8.1.160.0030.00521.83
8.1.150.0040.00418.75
8.1.140.0080.00019.32
8.1.130.0000.00717.78
8.1.120.0080.00017.57
8.1.110.0040.00417.41
8.1.100.0030.00317.50
8.1.90.0000.00817.54
8.1.80.0040.00417.49
8.1.70.0000.00717.46
8.1.60.0000.00917.69
8.1.50.0030.00517.59
8.1.40.0040.00417.48
8.1.30.0030.00617.86
8.1.20.0040.00417.77
8.1.10.0040.00417.58
8.1.00.0040.00417.51
8.0.300.0030.00718.77
8.0.290.0030.00516.75
8.0.280.0030.00518.33
8.0.270.0000.00817.26
8.0.260.0000.00817.31
8.0.250.0000.00917.11
8.0.240.0030.00617.05
8.0.230.0030.00416.93
8.0.220.0000.00716.86
8.0.210.0070.00016.84
8.0.200.0040.00416.98
8.0.190.0000.00816.94
8.0.180.0000.00816.88
8.0.170.0030.00616.93
8.0.160.0000.00716.86
8.0.150.0080.00016.80
8.0.140.0040.00416.79
8.0.130.0030.00313.36
8.0.120.0040.00416.97
8.0.110.0050.00216.84
8.0.100.0080.00016.94
8.0.90.0050.00216.84
8.0.80.0160.00317.02
8.0.70.0000.00716.84
8.0.60.0000.00817.00
8.0.50.0050.00216.98
8.0.30.0080.01017.23
8.0.20.0100.00917.48
8.0.10.0000.00717.15
8.0.00.0120.00617.05
7.4.330.0040.00315.03
7.4.320.0030.00316.63
7.4.300.0030.00316.74
7.4.290.0040.00416.56
7.4.280.0050.00316.66
7.4.270.0000.01016.71
7.4.260.0080.00016.69
7.4.250.0020.00516.78
7.4.240.0030.00516.79
7.4.230.0000.00716.70
7.4.220.0060.01616.62
7.4.210.0110.01016.81
7.4.200.0030.00616.86
7.4.160.0090.00616.67
7.4.150.0090.00917.40
7.4.140.0110.00817.86
7.4.130.0100.00616.73
7.4.120.0110.00716.62
7.4.110.0130.01016.84
7.4.100.0070.01016.48
7.4.90.0070.01116.55
7.4.80.0040.01919.39
7.4.70.0120.01216.61
7.4.60.0090.00616.73
7.4.50.0030.00616.40
7.4.40.0100.00716.61
7.4.30.0070.01016.50
7.4.00.0030.01014.97
7.3.330.0040.00413.20
7.3.320.0020.00313.30
7.3.310.0000.00716.23
7.3.300.0040.00416.22
7.3.290.0070.00716.36
7.3.280.0080.01116.38
7.3.270.0060.01117.40
7.3.260.0160.00316.48
7.3.250.0100.00716.53
7.3.240.0130.00316.56
7.3.230.0210.00016.77
7.3.210.0120.00616.65
7.3.200.0090.00919.39
7.3.190.0090.00916.46
7.3.180.0060.01016.70
7.3.170.0140.00716.66
7.3.160.0040.01216.42
7.3.10.0070.01016.65
7.3.00.0100.00816.60
7.2.330.0070.01016.89
7.2.320.0040.01916.51
7.2.310.0140.00616.73
7.2.300.0070.01016.91
7.2.290.0030.01416.92
7.2.130.0100.00916.96
7.2.120.0090.00617.11
7.2.110.0100.00617.03
7.2.100.0020.00917.15
7.2.90.0050.00917.06
7.2.80.0050.00716.85
7.2.70.0060.00816.94
7.2.60.0040.01216.94
7.2.50.0070.00716.95
7.2.40.0060.00717.19
7.2.30.0020.01017.07
7.2.20.0060.00717.02
7.2.10.0040.00916.91
7.2.00.0070.00817.76
7.1.250.0090.00715.87
7.1.200.0080.00315.72
7.1.100.0030.01018.52
7.1.70.0050.00217.13
7.1.60.0040.00719.46
7.1.50.0110.01116.88
7.1.00.0100.07022.38
7.0.200.0060.00316.78
7.0.140.0070.03322.21
7.0.60.0130.07719.79
7.0.50.0070.08317.84
7.0.40.0100.07720.32
7.0.30.0230.08020.27
7.0.20.0370.07320.12
7.0.10.0070.08720.12
7.0.00.0030.09020.21
5.6.210.0100.07020.63
5.6.200.0100.07318.25
5.6.190.0130.07020.67
5.6.180.0230.04320.46
5.6.170.0230.07020.45
5.6.160.0100.08720.56
5.6.150.0070.07718.19
5.6.140.0230.04018.21
5.6.130.0070.08018.26
5.6.120.0100.04721.05
5.6.110.0230.07020.99
5.6.100.0070.08721.03
5.6.90.0100.06321.13
5.6.80.0030.03720.43
5.5.350.4200.04720.52
5.5.340.0030.08318.09
5.5.330.0100.07020.40
5.5.320.0300.07320.20
5.5.310.0400.06320.19
5.5.300.0070.07017.97
5.5.290.0030.04018.04
5.5.280.0030.05020.77
5.5.270.0130.07320.84
5.5.260.0000.04320.96
5.5.250.0030.04320.61
5.5.240.0030.07020.24
5.4.450.3770.04319.30
5.4.440.0070.05319.44
5.4.430.0530.04719.53
5.4.420.2630.03319.53
5.4.410.4100.03319.36
5.4.400.3400.03719.10
5.4.390.4270.03719.21
5.4.380.4500.03318.98
5.4.370.4300.03318.96
5.4.360.3700.04019.07
5.4.350.4530.03719.15
5.4.340.4330.03319.21
5.4.320.4630.04018.96
5.4.310.4570.04019.16
5.4.300.0030.04019.13
5.4.290.0000.04319.21
5.4.280.4900.04019.16
5.4.270.4670.03319.03
5.4.260.4530.03718.92
5.4.250.4100.03719.09
5.4.240.4670.04019.21
5.4.230.5670.04319.11
5.4.220.3870.03719.11
5.4.210.4670.03719.22
5.4.200.0000.06719.11
5.4.190.2230.06018.95
5.4.180.3870.04019.11
5.4.170.4230.03718.97
5.4.160.4130.03319.14
5.4.150.4300.04319.19
5.4.140.3800.03016.30
5.4.130.4200.03716.48
5.4.120.4100.04316.39
5.4.110.4630.04016.30
5.4.100.4430.03716.36
5.4.90.4470.03316.54
5.4.80.4800.03016.48
5.4.70.4630.03316.48
5.4.60.4630.03716.46
5.4.50.3930.05316.45
5.4.40.4770.03716.61
5.4.30.4670.04016.44
5.4.20.3700.03716.34
5.4.10.3830.04016.39
5.4.00.3470.03315.88
5.3.290.5170.04014.82
5.3.280.4100.03714.59
5.3.270.4170.04014.61
5.3.260.4300.04314.75
5.3.250.4270.03014.65
5.3.240.4230.03314.59
5.3.230.4330.04014.67
5.3.220.3370.04314.48
5.3.210.4130.04014.61
5.3.200.4630.03714.62
5.3.190.4400.03714.56
5.3.180.4700.04014.70
5.3.170.4970.03014.60
5.3.160.4830.03314.58
5.3.150.5000.03014.58
5.3.140.4070.04014.54
5.3.130.4870.03014.71
5.3.120.5170.04314.56
5.3.110.4100.04314.59
5.3.100.3930.03713.92
5.3.90.3870.03314.06
5.3.80.2970.04014.17
5.3.70.3570.03014.06
5.3.60.3530.03014.14
5.3.50.2600.04014.01
5.3.40.3630.03713.98
5.3.30.3000.03313.85
5.3.20.2930.03313.57
5.3.10.3070.03313.71
5.3.00.2570.04013.67
5.2.170.2600.03011.18
5.2.160.2770.03011.05
5.2.150.2370.02711.30
5.2.140.2230.02311.02
5.2.130.1970.03311.13
5.2.120.2570.02011.01
5.2.110.2530.03011.09
5.2.100.1970.02311.06
5.2.90.2030.03011.09
5.2.80.2830.03011.05
5.2.70.3070.03011.01
5.2.60.3500.03010.96
5.2.50.3100.03311.00
5.2.40.3030.03310.98
5.2.30.2770.03010.88
5.2.20.2570.02710.92
5.2.10.3400.03010.92
5.2.00.3170.03310.67
5.1.60.3630.02310.05
5.1.50.3270.02010.13
5.1.40.2930.0239.96
5.1.30.2830.02310.30
5.1.20.3330.02710.34
5.1.10.3230.02710.05
5.1.00.3470.0209.97
5.0.50.1900.0238.50
5.0.40.2030.0138.46
5.0.30.1900.0338.19
5.0.20.1530.0238.17
5.0.10.1900.0208.13
5.0.00.1870.0308.06
4.4.90.1370.0175.88
4.4.80.1630.0175.84
4.4.70.1870.0175.84
4.4.60.1830.0135.89
4.4.50.1630.0205.89
4.4.40.1800.0275.84
4.4.30.2170.0135.79
4.4.20.1670.0175.88
4.4.10.1700.0205.83
4.4.00.1830.0175.95
4.3.110.1900.0175.78
4.3.100.1830.0175.77
4.3.90.1900.0135.72
4.3.80.1630.0235.71
4.3.70.1870.0175.70
4.3.60.1630.0175.80
4.3.50.0800.0175.69
4.3.40.1370.0235.63
4.3.30.0500.0104.44
4.3.20.0670.0234.54
4.3.10.0930.0234.41
4.3.00.0730.0174.44

preferences:
39.78 ms | 401 KiB | 5 Q