3v4l.org

run code in 300+ PHP versions simultaneously
<?php // http://gathering.tweakers.net/forum/list_messages/1605981 // Just a char (http://www.fileformat.info/info/unicode/char/f1/index.htm) $char = 'ñ'; // Combining char (http://en.wikipedia.org/wiki/Combining_character) $charCombining = 'ñ'; $str = 'se'.$char.'or'; $strCombining = 'se'.$charCombining.'or'; var_dump($str, str_replace($char, 'n', $str)); //var_dump($strCombining, str_replace($char, 'n', $strCombining));

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.0070.00718.55
8.3.50.0020.01322.05
8.3.40.0070.00718.71
8.3.30.0120.00619.00
8.3.20.0000.00820.34
8.3.10.0130.00020.54
8.3.00.0040.00419.26
8.2.180.0150.00016.50
8.2.170.0120.00622.96
8.2.160.0110.00420.43
8.2.150.0070.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0070.00021.08
8.2.110.0030.00622.11
8.2.100.0030.00918.09
8.2.90.0030.00519.17
8.2.80.0000.00817.97
8.2.70.0050.00317.63
8.2.60.0000.00817.93
8.2.50.0080.00018.07
8.2.40.0000.00718.16
8.2.30.0000.00719.50
8.2.20.0040.00417.74
8.2.10.0070.00017.99
8.2.00.0070.00017.75
8.1.280.0170.00325.92
8.1.270.0030.00623.96
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0030.00622.20
8.1.230.0000.01017.83
8.1.220.0070.00017.79
8.1.210.0040.00418.77
8.1.200.0000.00817.35
8.1.190.0050.00317.23
8.1.180.0040.00418.88
8.1.170.0040.00418.54
8.1.160.0000.00821.88
8.1.150.0020.00518.88
8.1.140.0020.00517.36
8.1.130.0030.00317.70
8.1.120.0020.00517.48
8.1.110.0040.00417.49
8.1.100.0030.00517.42
8.1.90.0070.00017.48
8.1.80.0000.00817.47
8.1.70.0030.00317.39
8.1.60.0030.00617.58
8.1.50.0030.00517.55
8.1.40.0050.00217.52
8.1.30.0000.00817.58
8.1.20.0000.00717.49
8.1.10.0000.00817.52
8.1.00.0000.00917.46
8.0.300.0070.00018.77
8.0.290.0060.00316.75
8.0.280.0000.00718.43
8.0.270.0000.00716.81
8.0.260.0060.00017.25
8.0.250.0000.00716.80
8.0.240.0000.00716.97
8.0.230.0000.00716.93
8.0.220.0030.00316.91
8.0.210.0030.00316.90
8.0.200.0000.00817.00
8.0.190.0110.00016.86
8.0.180.0000.00716.91
8.0.170.0000.00816.93
8.0.160.0040.00416.80
8.0.150.0030.00516.77
8.0.140.0070.00016.87
8.0.130.0030.00313.28
8.0.120.0060.00316.83
8.0.110.0000.00716.92
8.0.100.0040.00416.89
8.0.90.0040.00416.74
8.0.80.0040.01116.85
8.0.70.0040.00416.95
8.0.60.0070.00016.68
8.0.50.0000.00816.64
8.0.30.0130.00616.96
8.0.20.0100.01017.40
8.0.10.0000.00816.80
8.0.00.0120.00516.64
7.4.330.0050.00015.09
7.4.320.0060.00016.37
7.4.300.0040.00416.54
7.4.290.0040.00416.52
7.4.280.0030.00516.44
7.4.270.0030.00316.55
7.4.260.0030.00316.40
7.4.250.0000.00716.45
7.4.240.0020.00516.50
7.4.230.0030.00316.54
7.4.220.0120.01216.48
7.4.210.0090.00916.48
7.4.200.0040.00316.36
7.4.160.0160.00016.46
7.4.150.0100.00917.40
7.4.140.0080.00817.86
7.4.130.0110.00616.42
7.4.120.0100.00816.50
7.4.110.0100.00716.30
7.4.100.0150.00316.41
7.4.90.0030.01616.46
7.4.80.0030.01319.39
7.4.70.0040.01416.34
7.4.60.0030.01716.36
7.4.50.0040.00416.52
7.4.40.0090.00916.58
7.4.30.0090.00616.42
7.4.00.0100.00314.68
7.3.330.0050.00012.99
7.3.320.0000.00613.06
7.3.310.0000.00716.34
7.3.300.0030.00316.29
7.3.290.0040.01116.32
7.3.280.0060.01216.33
7.3.270.0140.00317.40
7.3.260.0130.00316.40
7.3.250.0090.01016.26
7.3.240.0140.00316.54
7.3.230.0030.01216.42
7.3.210.0110.01416.30
7.3.200.0110.00919.39
7.3.190.0110.00516.38
7.3.180.0120.00316.33
7.3.170.0080.00816.51
7.3.160.0030.01316.38
7.2.330.0030.01316.62
7.2.320.0130.00316.41
7.2.310.0100.00616.15
7.2.300.0140.00316.20
7.2.290.0150.00616.69
7.2.60.0000.01216.75
7.2.00.0030.01219.32
7.1.200.0120.00015.80
7.1.100.0000.01018.30
7.1.70.0000.01017.02
7.1.60.0100.01619.61
7.1.50.0100.01416.80
7.1.00.0030.07322.33
7.0.200.0000.00816.79
7.0.140.0030.07322.18
7.0.60.0070.08020.05
7.0.50.0100.08017.88
7.0.40.0100.07719.96
7.0.30.0530.07320.21
7.0.20.0230.06020.00
7.0.10.0070.05020.13
7.0.00.0100.08320.09
5.6.280.0070.08721.09
5.6.210.0100.07020.46
5.6.200.0170.07318.17
5.6.190.0000.05020.32
5.6.180.0430.04020.39
5.6.170.0300.08320.33
5.6.160.0030.08720.70
5.6.150.0200.06018.11
5.6.140.0070.07718.11
5.6.130.0100.07018.21
5.6.120.0070.08321.00
5.6.110.0070.08720.96
5.6.100.0130.06721.10
5.6.90.0100.07320.99
5.6.80.0100.07720.37
5.5.350.0200.08320.40
5.5.340.0070.07717.88
5.5.330.0070.04320.47
5.5.320.0300.05020.32
5.5.310.0030.05020.21
5.5.300.0000.04717.91
5.5.290.0100.07717.90
5.5.280.0070.08720.97
5.5.270.0100.04720.88
5.5.260.0130.04320.86
5.5.250.0070.04020.75
5.5.240.0170.08020.21
5.4.450.0270.05719.23
5.4.440.0630.04719.41
5.4.430.0170.05719.18
5.4.420.0270.04019.63
5.4.410.0200.05319.32
5.4.400.0300.04319.19
5.4.390.0200.06019.34
5.4.380.0170.06018.71
5.4.370.0270.05318.51
5.4.360.0330.05018.51
5.4.350.0230.05718.56
5.4.340.0330.07018.51
5.4.320.0110.03512.45
5.4.310.0050.04112.45
5.4.300.0050.04012.45
5.4.290.0060.03912.45
5.4.280.0070.03712.35
5.4.270.0050.03712.35
5.4.260.0060.03912.34
5.4.250.0090.03612.35
5.4.240.0080.03512.34
5.4.230.0040.04212.34
5.4.220.0060.03812.34
5.4.210.0060.04612.34
5.4.200.0110.03412.34
5.4.190.0050.03812.33
5.4.180.0060.03712.34
5.4.170.0060.03712.34
5.4.160.0050.03912.34
5.4.150.0060.03712.34
5.4.140.0060.03612.02
5.4.130.0050.03712.01
5.4.120.0070.03411.96
5.4.110.0090.03311.96
5.4.100.0040.04011.96
5.4.90.0040.03911.96
5.4.80.0090.03511.96
5.4.70.0080.04711.96
5.4.60.0090.04111.96
5.4.50.0070.03411.96
5.4.40.0080.03311.95
5.4.30.0110.03111.95
5.4.20.0050.03611.95
5.4.10.0040.03711.95
5.4.00.0050.03811.43
5.3.290.0080.03912.80
5.3.280.0040.04212.71
5.3.270.0050.04112.73
5.3.260.0090.03712.72
5.3.250.0070.04012.72
5.3.240.0080.04412.72
5.3.230.0050.03912.71
5.3.220.0080.03712.68
5.3.210.0090.04312.68
5.3.200.0080.03912.68
5.3.190.0060.04012.68
5.3.180.0090.04212.67
5.3.170.0060.03712.67
5.3.160.0060.03812.68
5.3.150.0080.03912.67
5.3.140.0040.04112.66
5.3.130.0040.04212.65
5.3.120.0080.03812.65
5.3.110.0090.04012.66
5.3.100.0080.04212.12
5.3.90.0120.04012.08
5.3.80.0060.03812.07
5.3.70.0090.03612.07
5.3.60.0070.04112.06
5.3.50.0040.03912.00
5.3.40.0080.04512.00
5.3.30.0040.03911.95
5.3.20.0070.03911.72
5.3.10.0100.03111.69
5.3.00.0050.03711.68
5.2.170.0040.0319.18
5.2.160.0050.0289.18
5.2.150.0030.0339.18
5.2.140.0080.0359.17
5.2.130.0070.0309.13
5.2.120.0050.0289.13
5.2.110.0050.0309.14
5.2.100.0020.0319.14
5.2.90.0040.0299.14
5.2.80.0060.0299.13
5.2.70.0050.0299.13
5.2.60.0070.0309.09
5.2.50.0090.0359.05
5.2.40.0070.0269.03
5.2.30.0050.0309.00
5.2.20.0050.0349.00
5.2.10.0040.0298.92
5.2.00.0040.0308.78
5.1.60.0070.0258.06
5.1.50.0030.0288.05
5.1.40.0050.0258.04
5.1.30.0030.0278.39
5.1.20.0030.0288.41
5.1.10.0060.0248.14
5.1.00.0050.0258.14
5.0.50.0030.0216.62
5.0.40.0030.0206.47
5.0.30.0030.0326.29
5.0.20.0040.0196.26
5.0.10.0030.0216.23
5.0.00.0030.0316.23
4.4.90.0020.0174.78
4.4.80.0010.0174.75
4.4.70.0030.0164.75
4.4.60.0030.0154.75
4.4.50.0020.0164.77
4.4.40.0000.0284.71
4.4.30.0030.0154.76
4.4.20.0050.0134.85
4.4.10.0000.0184.85
4.4.00.0010.0294.76
4.3.110.0020.0184.67
4.3.100.0030.0154.66
4.3.90.0020.0174.63
4.3.80.0030.0244.59
4.3.70.0020.0164.63
4.3.60.0050.0144.63
4.3.50.0020.0174.63
4.3.40.0010.0264.54
4.3.30.0030.0153.29
4.3.20.0020.0163.26
4.3.10.0030.0163.22
4.3.00.0070.01314.28

preferences:
103.19 ms | 401 KiB | 5 Q