3v4l.org

run code in 300+ PHP versions simultaneously
<?php function highlightString($highlightString,$string) { if(strlen($highlightString)>0 && strlen($string)>0) { $s = $highlightString; $rest = $string; $result = $string; do { $rest = stristr($rest,$s); $replace = substr($rest,0,strlen($s)); $result = str_replace($replace,"<span class='textHighlight'>{$replace}</span>",$result); $rest = substr($rest,strlen($s)); } while ($rest !== false); return $result; } return $string; } echo highlightString("M&ouml;hre","M&ouml;hre"); echo highlightString("r&ouml;per","R&ouml;per");

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.0071.99718.43
8.3.50.0151.98421.94
8.3.40.0071.99618.71
8.3.30.0032.00018.67
8.3.20.0002.00818.82
8.3.10.0032.00020.40
8.3.00.0071.99621.87
8.2.180.0131.99016.50
8.2.170.0002.00422.96
8.2.160.0171.98521.07
8.2.150.0071.99524.18
8.2.140.0071.99724.66
8.2.130.0031.99726.16
8.2.120.0032.00019.36
8.2.110.0171.98820.56
8.2.100.0071.99617.91
8.2.90.0032.00017.78
8.2.80.0002.00617.97
8.2.70.0032.00117.50
8.2.60.0071.99617.93
8.2.50.0002.00718.07
8.2.40.0071.99718.16
8.2.30.0071.99519.81
8.2.20.0031.99517.75
8.2.10.0071.99719.54
8.2.00.0002.00317.64
8.1.280.0071.99725.92
8.1.270.0031.99923.99
8.1.260.0131.99226.35
8.1.250.0101.99228.09
8.1.240.0071.99423.96
8.1.230.0031.99922.75
8.1.220.0031.99817.74
8.1.210.0002.00318.77
8.1.200.0032.00217.23
8.1.190.0031.99917.54
8.1.180.0002.00118.10
8.1.170.0031.99818.58
8.1.160.0002.00218.85
8.1.150.0002.00318.64
8.1.140.0071.99817.59
8.1.130.0032.00017.82
8.1.120.0032.00017.63
8.1.110.0002.00417.47
8.1.100.0002.00317.57
8.1.90.0101.99317.44
8.1.80.0032.00117.58
8.1.70.0031.99817.54
8.1.60.0031.99617.70
8.1.50.0002.00417.57
8.1.40.0071.99617.65
8.1.30.0032.00017.66
8.1.20.0032.00017.69
8.1.10.0002.00317.66
8.1.00.0071.99717.54
8.0.300.0031.99919.96
8.0.290.0002.00116.58
8.0.280.0002.00018.42
8.0.270.0002.00317.21
8.0.260.0031.99716.83
8.0.250.0002.00416.88
8.0.240.0031.99616.81
8.0.230.0031.99916.88
8.0.220.0071.99516.72
8.0.210.0071.99716.84
8.0.200.0002.00316.92
8.0.190.0031.99916.89
8.0.180.0031.99816.78
8.0.170.0031.99916.90
8.0.160.0002.00216.83
8.0.150.0031.99916.72
8.0.140.0071.99416.89
8.0.130.0031.99813.36
8.0.120.0002.00116.86
8.0.110.0031.99816.73
8.0.100.0002.00316.80
8.0.90.0031.99816.77
8.0.80.0101.99116.71
8.0.70.0031.99916.80
8.0.60.0071.99716.68
8.0.50.0002.00416.69
8.0.30.0061.99517.10
8.0.20.0101.99717.40
8.0.10.0131.98916.76
8.0.00.0181.99216.74
7.4.330.0020.00214.66
7.4.320.0030.00316.64
7.4.300.0070.00016.61
7.4.290.0000.00816.38
7.4.280.0040.00416.44
7.4.270.0070.00016.61
7.4.260.0000.00513.31
7.4.250.0000.00816.49
7.4.240.0070.00016.64
7.4.230.0000.00716.64
7.4.220.0070.01016.57
7.4.210.0080.01116.67
7.4.200.0000.00716.36
7.4.190.0000.00716.76
7.4.160.0140.00416.56
7.4.150.0100.00717.40
7.4.140.0090.01217.86
7.4.130.0030.01416.56
7.4.120.0140.00516.56
7.4.110.0030.01316.58
7.4.100.0040.01816.50
7.4.90.0110.00816.44
7.4.80.0130.00319.37
7.4.70.0100.00616.47
7.4.60.0070.01016.39
7.4.50.0000.00916.34
7.4.40.0040.01122.27
7.4.30.0150.00616.38
7.4.00.0120.00015.02
7.3.330.0020.00213.34
7.3.320.0000.00513.31
7.3.310.0000.00916.18
7.3.300.0000.00716.28
7.3.290.0040.01116.34
7.3.280.0110.00716.30
7.3.270.0040.01417.40
7.3.260.0080.01018.24
7.3.250.0070.01416.48
7.3.240.0160.00016.68
7.3.230.0160.00316.39
7.3.210.0090.00916.44
7.3.200.0060.01119.39
7.3.190.0070.01416.46
7.3.180.0060.01016.50
7.3.170.0060.01116.67
7.3.160.0070.01416.66
7.3.120.0040.01215.02
7.3.110.0030.01015.07
7.3.100.0090.00014.49
7.3.90.0080.00814.85
7.3.80.0090.00914.87
7.3.70.0070.01014.93
7.3.60.0120.00314.89
7.3.50.0070.01014.71
7.3.40.0100.00714.50
7.3.30.0060.01014.72
7.3.20.0060.00616.62
7.3.10.0090.00616.65
7.3.00.0070.00716.63
7.2.330.0120.00616.75
7.2.320.0070.01516.70
7.2.310.0030.01816.43
7.2.300.0090.00816.67
7.2.290.0120.01116.77
7.2.240.0030.01315.14
7.2.230.0080.00415.10
7.2.220.0070.01014.62
7.2.210.0070.01014.84
7.2.200.0060.01015.20
7.2.190.0040.00815.11
7.2.180.0040.01114.72
7.2.170.0040.01114.89
7.2.160.0090.00615.17
7.2.150.0080.00916.96
7.2.140.0070.01016.57
7.2.130.0060.00917.03
7.2.120.0090.00316.76
7.2.110.0110.00716.96
7.2.100.0120.00616.98
7.2.90.0060.01216.87
7.2.80.0070.00716.82
7.2.70.0110.00717.02
7.2.60.0030.01016.98
7.2.50.0070.01016.98
7.2.40.0100.00716.64
7.2.30.0040.01416.73
7.2.20.0060.00916.84
7.2.10.0110.00717.02
7.2.00.0050.00817.96
7.1.330.0040.00816.00
7.1.320.0120.00315.75
7.1.310.0040.00815.83
7.1.300.0040.01115.69
7.1.290.0070.01115.62
7.1.280.0030.01315.86
7.1.270.0030.01415.56
7.1.260.0090.00615.61
7.1.250.0030.01315.93
7.1.100.0110.00018.49
7.1.70.0030.01017.10
7.1.60.0070.01719.40
7.1.50.0030.01017.11
7.1.00.0070.04022.48
7.0.200.0610.00314.82
7.0.140.0070.07022.05
7.0.70.0100.07721.61
7.0.60.0030.05321.74
7.0.50.0030.07022.05
7.0.40.0100.07020.04
7.0.30.0070.08020.04
7.0.20.0100.08020.04
7.0.10.0030.08020.12
7.0.00.0000.09020.03
5.6.280.0030.07321.02
5.6.220.0070.08020.60
5.6.210.0070.06320.69
5.6.200.0030.05021.08
5.6.190.0000.07321.07
5.6.180.0000.06021.08
5.6.170.0030.07021.04
5.6.160.0030.08021.07
5.6.150.0070.06721.07
5.6.140.0030.06021.06
5.6.130.0000.08721.07
5.6.120.0000.07721.01
5.6.110.0130.07721.00
5.6.100.0030.08321.00
5.6.90.0100.06021.00
5.6.80.0070.07320.49
5.6.70.0030.08020.38
5.6.60.0070.07020.43
5.6.50.0030.08020.40
5.6.40.0030.07020.34
5.6.30.0000.08320.38
5.6.20.0100.06720.39
5.6.10.0100.07320.30
5.6.00.0030.06020.41
5.5.360.0070.07020.51
5.5.350.0130.06320.37
5.5.340.0070.04720.82
5.5.330.0130.06020.90
5.5.320.0030.08320.85
5.5.310.0000.08720.88
5.5.300.0070.06720.82
5.5.290.0070.04020.76
5.5.280.0000.09020.91
5.5.270.0100.07720.62
5.5.260.0000.06020.84
5.5.250.0030.08020.67
5.5.240.0000.04320.25
5.5.230.0000.07320.29
5.5.220.0100.05020.00
5.5.210.0070.08020.20
5.5.200.0030.04020.25
5.5.190.0000.08320.26
5.5.180.0030.07020.25
5.5.160.0070.04020.24
5.5.150.0030.03720.17
5.5.140.0070.04320.11
5.5.130.0030.03720.23
5.5.120.0000.04320.16
5.5.110.0100.03020.17
5.5.100.0000.04020.08
5.5.90.0030.03720.13
5.5.80.0000.04019.92
5.5.70.0030.03019.97
5.5.60.0000.03320.14
5.5.50.0030.03319.92
5.5.40.0000.03720.04
5.5.30.0030.04319.92
5.5.20.0070.04720.09
5.5.10.0030.03020.05
5.5.00.0000.04720.09
5.4.450.0070.07019.16
5.4.440.0070.08019.26
5.4.430.0000.07019.55
5.4.420.0030.04319.25
5.4.410.0000.07719.11
5.4.400.0030.07719.13
5.4.390.0100.07019.03
5.4.380.0070.04319.21
5.4.370.0070.06318.96
5.4.360.0000.04019.03
5.4.350.0030.07718.83
5.4.340.0070.05719.03
5.4.320.0000.04019.11
5.4.310.0070.03319.12
5.4.300.0030.03319.14
5.4.290.0070.03318.84
5.4.280.0030.03719.02
5.4.270.0030.05319.01
5.4.260.0000.03719.08
5.4.250.0000.06018.93
5.4.240.0000.03019.03
5.4.230.0070.03019.10
5.4.220.0030.03719.10
5.4.210.0000.04018.83
5.4.200.0030.03719.10
5.4.190.0030.04719.18
5.4.180.0030.02719.01
5.4.170.0000.03019.14
5.4.160.0000.05019.01
5.4.150.0000.04019.10
5.4.140.0000.03716.38
5.4.130.0000.03716.27
5.4.120.0000.03316.36
5.4.110.0000.03316.26
5.4.100.0000.03016.45
5.4.90.0000.03716.40
5.4.80.0000.03016.47
5.4.70.0000.03016.39
5.4.60.0000.03016.44
5.4.50.0000.03016.35
5.4.40.0000.03016.43
5.4.30.0030.02716.39
5.4.20.0030.02716.46
5.4.10.0000.03016.39
5.4.00.0000.04015.79
5.3.290.0030.05014.66
5.3.280.0030.03314.68
5.3.270.0030.04714.63
5.3.260.0030.04014.72
5.3.250.0000.03714.70
5.3.240.0000.03314.71
5.3.230.0000.03714.69
5.3.220.0030.03314.49
5.3.210.0000.04014.68
5.3.200.0030.02714.49
5.3.190.0000.03014.68
5.3.180.0030.03014.63
5.3.170.0000.03014.61
5.3.160.0000.03014.62
5.3.150.0000.03014.58
5.3.140.0000.03014.57
5.3.130.0000.03014.57
5.3.120.0030.02714.49
5.3.110.0000.03014.57
5.3.100.0030.02714.18
5.3.90.0000.03314.14
5.3.80.0030.02713.95
5.3.70.0000.03014.08
5.3.60.0000.03013.98
5.3.50.0030.02714.01
5.3.40.0000.03313.95
5.3.30.0030.03313.83
5.3.20.0000.03313.75
5.3.10.0070.06013.69
5.3.00.0030.07713.64
5.2.170.0030.02011.25
5.2.160.0030.02711.24
5.2.150.0000.03311.24
5.2.140.0000.03311.24
5.2.130.0070.01711.24
5.2.120.0000.05011.24
5.2.110.0030.04711.24
5.2.100.0000.06311.24
5.2.90.0000.04711.24
5.2.80.0070.05711.24
5.2.70.0000.06011.24
5.2.60.0030.04711.24
5.2.50.0000.05311.24
5.2.40.0030.06311.24
5.2.30.0030.06311.24
5.2.20.0070.05711.24
5.2.10.0030.04711.24
5.2.00.0070.03711.24
5.1.60.0000.04311.24
5.1.50.0000.03711.24
5.1.40.0000.02711.24
5.1.30.0000.04011.24
5.1.20.0030.05011.24
5.1.10.0030.03711.24
5.1.00.0030.04311.24
5.0.50.0030.02711.24
5.0.40.0030.04311.24
5.0.30.0070.05311.24
5.0.20.0030.04011.24
5.0.10.0030.04011.24
5.0.00.0030.06011.24
4.4.90.0030.02711.24
4.4.80.0000.03011.24
4.4.70.0030.02011.24
4.4.60.0070.02011.24
4.4.50.0030.03311.24
4.4.40.0000.03011.24
4.4.30.0000.01311.24
4.4.20.0000.03711.24
4.4.10.0070.03311.24
4.4.00.0000.05311.24
4.3.110.0000.03311.24
4.3.100.0000.03711.24
4.3.90.0000.03311.24
4.3.80.0030.03711.24
4.3.70.0000.03711.24
4.3.60.0000.02711.24
4.3.50.0070.02311.24
4.3.40.0000.05311.24
4.3.30.0000.03311.24
4.3.20.0000.03711.24
4.3.10.0000.03711.24
4.3.00.0000.03711.24

preferences:
50.44 ms | 401 KiB | 5 Q