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.0130.00716.63
8.3.50.0070.01122.95
8.3.40.0110.00318.45
8.3.30.0110.00718.79
8.3.20.0000.00720.08
8.3.10.0080.00020.36
8.3.00.0040.00419.38
8.2.180.0090.00616.50
8.2.170.0120.00422.96
8.2.160.0000.01420.35
8.2.150.0060.00324.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00421.02
8.2.110.0090.00020.22
8.2.100.0090.00318.22
8.2.90.0000.00819.21
8.2.80.0050.00517.97
8.2.70.0050.00517.50
8.2.60.0090.00017.93
8.2.50.0030.00518.07
8.2.40.0050.00318.22
8.2.30.0000.00719.35
8.2.20.0000.00717.75
8.2.10.0030.00518.17
8.2.00.0040.00417.77
8.1.280.0110.00325.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0070.00323.75
8.1.230.0080.00318.93
8.1.220.0000.00817.78
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0080.00017.13
8.1.180.0030.00518.10
8.1.170.0040.00418.49
8.1.160.0050.00221.91
8.1.150.0000.00718.86
8.1.140.0000.00717.45
8.1.130.0000.00817.81
8.1.120.0020.00517.32
8.1.110.0040.00417.41
8.1.100.0000.00717.48
8.1.90.0040.00417.33
8.1.80.0070.00017.46
8.1.70.0040.00417.38
8.1.60.0090.00317.41
8.1.50.0040.00417.54
8.1.40.0050.00317.50
8.1.30.0040.00417.50
8.1.20.0000.00717.60
8.1.10.0030.00517.43
8.1.00.0040.00417.41
8.0.300.0040.00418.77
8.0.290.0060.00316.88
8.0.280.0000.00718.35
8.0.270.0000.00717.25
8.0.260.0060.00017.26
8.0.250.0000.00716.83
8.0.240.0040.00416.96
8.0.230.0000.00716.94
8.0.220.0030.00316.77
8.0.210.0040.00416.83
8.0.200.0040.00416.94
8.0.190.0060.00316.94
8.0.180.0070.00016.77
8.0.170.0050.00316.98
8.0.160.0000.00716.95
8.0.150.0030.00316.75
8.0.140.0040.00416.85
8.0.130.0030.00313.30
8.0.120.0000.00816.75
8.0.110.0040.00416.75
8.0.100.0040.00416.91
8.0.90.0070.00016.75
8.0.80.0070.01416.94
8.0.70.0040.00416.68
8.0.60.0040.00416.67
8.0.50.0050.00316.88
8.0.30.0110.00817.04
8.0.20.0090.01317.40
8.0.10.0000.00716.77
8.0.00.0070.01216.80
7.4.330.0050.00015.03
7.4.320.0000.00616.45
7.4.300.0030.00316.43
7.4.290.0040.00416.39
7.4.280.0100.00016.52
7.4.270.0040.00416.54
7.4.260.0070.00016.41
7.4.250.0060.00316.50
7.4.240.0020.00516.44
7.4.230.0070.00016.27
7.4.220.0060.01216.53
7.4.210.0070.00716.52
7.4.200.0050.00216.60
7.4.160.0090.01316.29
7.4.150.0070.01317.40
7.4.140.0120.00717.86
7.4.130.0080.00916.39
7.4.120.0090.00816.39
7.4.110.0040.01416.43
7.4.100.0100.01316.44
7.4.90.0130.00316.44
7.4.80.0090.01419.39
7.4.70.0100.00716.50
7.4.60.0130.00316.42
7.4.50.0000.00816.29
7.4.40.0070.01016.38
7.4.30.0080.00816.41
7.4.00.0060.01014.93
7.3.330.0060.00013.16
7.3.320.0060.00013.23
7.3.310.0000.00616.31
7.3.300.0070.00016.14
7.3.290.0100.00316.17
7.3.280.0100.00916.24
7.3.270.0090.01317.40
7.3.260.0040.01316.25
7.3.250.0160.00816.34
7.3.240.0090.00916.27
7.3.230.0100.00916.52
7.3.210.0060.01616.62
7.3.200.0100.01019.39
7.3.190.0030.01316.38
7.3.180.0060.00916.43
7.3.170.0060.01016.27
7.3.160.0040.01116.26
7.3.10.0030.01016.46
7.3.00.0070.00716.43
7.2.330.0070.01016.51
7.2.320.0070.01316.33
7.2.310.0030.01416.44
7.2.300.0060.01116.53
7.2.290.0060.01516.21
7.2.130.0040.00716.86
7.2.120.0070.00716.88
7.2.110.0040.00416.74
7.2.100.0000.00916.82
7.2.90.0000.01616.98
7.2.80.0080.00316.74
7.2.70.0050.00516.63
7.2.60.0030.01016.77
7.2.50.0040.00716.50
7.2.40.0060.00616.91
7.2.30.0030.00916.57
7.2.20.0000.01216.49
7.2.10.0030.00916.41
7.2.00.0020.01317.94
7.1.250.0060.00615.84
7.1.100.0080.00417.91
7.1.70.0030.00517.03
7.1.60.0110.01419.61
7.1.50.0090.01516.83
7.1.00.0030.07722.51
7.0.200.0030.00616.69
7.0.140.0030.07322.04
7.0.60.0030.08319.96
7.0.50.0100.06017.78
7.0.40.0070.04020.20
7.0.30.0170.04720.22
7.0.20.0470.06720.33
7.0.10.0070.05720.18
7.0.00.0000.09020.12
5.6.280.0030.07320.98
5.6.210.0030.04020.76
5.6.200.0000.07018.11
5.6.190.0030.08720.64
5.6.180.3000.04320.56
5.6.170.0330.07020.54
5.6.160.0070.07020.47
5.6.150.0170.06318.11
5.6.140.0030.04718.14
5.6.130.0070.06318.12
5.6.120.0030.05721.13
5.6.110.0170.07321.01
5.6.100.0100.07721.03
5.6.90.0170.07320.96
5.6.80.0030.08020.40
5.5.350.0370.06320.52
5.5.340.0170.06717.96
5.5.330.0070.07320.19
5.5.320.0230.04020.41
5.5.310.0300.06320.26
5.5.300.0100.08018.01
5.5.290.0100.08017.84
5.5.280.0100.04320.97
5.5.270.0100.06720.64
5.5.260.0070.04020.75
5.5.250.0100.05020.68
5.5.240.0100.07020.27
5.4.450.0030.04719.12
5.4.440.0070.04019.32
5.4.430.0030.04719.11
5.4.420.0170.03019.29
5.4.410.0130.07019.20
5.4.400.0200.06719.12
5.4.390.0130.03019.17
5.4.380.0070.05719.14
5.4.370.0070.03318.91
5.4.360.0100.03318.81
5.4.350.0130.05319.00
5.4.340.0030.08318.80
5.4.320.0030.08318.79
5.4.310.0100.05019.08
5.4.300.0100.05718.79
5.4.290.0130.06018.91
5.4.280.0070.04718.81
5.4.270.0030.08318.91
5.4.260.0130.07319.07
5.4.250.0070.04019.15
5.4.240.0170.07319.07
5.4.230.0130.07319.18
5.4.220.0100.06719.07
5.4.210.0100.03719.11
5.4.200.0100.03319.20
5.4.190.0030.04319.16
5.4.180.0030.06019.16
5.4.170.0030.05019.17
5.4.160.0030.07018.89
5.4.150.0070.03719.00
5.4.140.0130.07316.36
5.4.130.0070.03316.29
5.4.120.0030.04316.36
5.4.110.0070.03316.23
5.4.100.0070.03716.40
5.4.90.0070.03016.39
5.4.80.0070.03716.40
5.4.70.0070.03316.23
5.4.60.0030.03716.34
5.4.50.0030.03316.27
5.4.40.0230.02716.38
5.4.30.0000.03716.12
5.4.20.0070.03016.21
5.4.10.0000.03716.28
5.4.00.0070.06315.88
5.3.290.0130.06014.56
5.3.280.0100.05314.47
5.3.270.0030.05714.57
5.3.260.0030.06714.53
5.3.250.0070.04314.55
5.3.240.0030.04714.54
5.3.230.0070.07714.53
5.3.220.0000.04314.49
5.3.210.0030.03714.51
5.3.200.0000.04014.52
5.3.190.0100.03014.51
5.3.180.0030.04014.38
5.3.170.0030.03714.58
5.3.160.0000.03714.35
5.3.150.0030.03714.38
5.3.140.0070.03314.57
5.3.130.0130.02714.58
5.3.120.0070.03314.49
5.3.110.0030.03714.36
5.3.100.0070.04013.98
5.3.90.0000.04013.97
5.3.80.0000.06713.99
5.3.70.0100.03714.11
5.3.60.0000.05013.79
5.3.50.0030.03713.89
5.3.40.0100.03013.87
5.3.30.0000.03713.84
5.3.20.0000.04013.62
5.3.10.0030.03313.49
5.3.00.0030.03313.60
5.2.170.0070.02711.22
5.2.160.0030.02711.30
5.2.150.0000.03011.08
5.2.140.0030.03711.02
5.2.130.0030.02711.09
5.2.120.0030.02711.03
5.2.110.0000.03010.96
5.2.100.0000.03011.07
5.2.90.0000.03011.05
5.2.80.0070.02710.95
5.2.70.0030.02710.99
5.2.60.0000.03011.04
5.2.50.0000.03010.86
5.2.40.0000.03010.87
5.2.30.0000.03011.05
5.2.20.0030.02710.93
5.2.10.0000.03010.74
5.2.00.0030.03010.71
5.1.60.0000.02710.14
5.1.50.0030.0239.98
5.1.40.0030.02310.12
5.1.30.0000.02710.18
5.1.20.0030.02310.36
5.1.10.0070.02010.14
5.1.00.0000.02710.06
5.0.50.0030.0178.63
5.0.40.0000.0238.36
5.0.30.0030.0308.37
5.0.20.0030.0178.15
5.0.10.0030.0438.18
5.0.00.0000.0678.06
4.4.90.0000.0177.89
4.4.80.0000.0177.89
4.4.70.0070.0107.89
4.4.60.0000.0177.89
4.4.50.0000.0137.89
4.4.40.0000.0277.89
4.4.30.0000.0177.89
4.4.20.0000.0177.89
4.4.10.0000.0177.89
4.4.00.0000.0237.89
4.3.110.0000.0137.89
4.3.100.0030.0107.89
4.3.90.0000.0207.89
4.3.80.0000.0337.89
4.3.70.0030.0337.89
4.3.60.0030.0277.89
4.3.50.0000.0377.89
4.3.40.0000.0277.89
4.3.30.0000.0237.89
4.3.20.0030.0377.89
4.3.10.0000.0377.89
4.3.00.0000.0237.89

preferences:
41.91 ms | 401 KiB | 5 Q