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.0101.98916.34
8.3.50.0121.99022.05
8.3.40.0032.00418.58
8.3.30.0131.99118.78
8.3.20.0002.01718.60
8.3.10.0032.00020.40
8.3.00.0071.99621.86
8.2.180.0131.99016.75
8.2.170.0131.99122.96
8.2.160.0101.99220.39
8.2.150.0071.99724.18
8.2.140.0032.00024.66
8.2.130.0031.99826.16
8.2.120.0071.99519.23
8.2.110.0031.99921.06
8.2.100.0071.99717.91
8.2.90.0032.00219.12
8.2.80.0031.99817.97
8.2.70.0071.99517.50
8.2.60.0002.00817.90
8.2.50.0071.99618.07
8.2.40.0032.00118.34
8.2.30.0101.99319.81
8.2.20.0071.99617.79
8.2.10.0032.00117.83
8.2.00.0071.99517.77
8.1.280.0031.99825.92
8.1.270.0031.99823.99
8.1.260.0002.00126.35
8.1.250.0031.99828.09
8.1.240.0131.98821.34
8.1.230.0071.99417.42
8.1.220.0031.99817.74
8.1.210.0071.99418.77
8.1.200.0031.99817.22
8.1.190.0031.99617.13
8.1.180.0071.99318.10
8.1.170.0032.00118.32
8.1.160.0032.00018.89
8.1.150.0002.00018.63
8.1.140.0071.99417.46
8.1.130.0071.99717.91
8.1.120.0031.99917.46
8.1.110.0071.99617.60
8.1.100.0071.99617.52
8.1.90.0031.99817.55
8.1.80.0002.00717.51
8.1.70.0032.00017.56
8.1.60.0071.99717.61
8.1.50.0032.00117.61
8.1.40.0071.99417.61
8.1.30.0131.98917.70
8.1.20.0031.99817.58
8.1.10.0002.00317.50
8.1.00.0031.99917.50
8.0.300.0071.99718.77
8.0.290.0032.00416.63
8.0.280.0032.00018.39
8.0.270.0031.99717.12
8.0.260.0031.99916.68
8.0.250.0032.00116.91
8.0.240.0071.99116.88
8.0.230.0032.00016.72
8.0.220.0031.99916.75
8.0.210.0031.99916.77
8.0.200.0032.00116.92
8.0.190.0031.99816.78
8.0.180.0032.00016.93
8.0.170.0002.00316.73
8.0.160.0002.00216.84
8.0.150.0032.00016.81
8.0.140.0201.97916.72
8.0.130.0031.99813.29
8.0.120.0002.00216.72
8.0.110.0002.00216.69
8.0.100.0002.00216.85
8.0.90.0071.99416.77
8.0.80.0131.98816.74
8.0.70.0002.00316.82
8.0.60.0131.98916.75
8.0.50.0071.99616.83
8.0.30.0131.98417.04
8.0.20.0211.98417.40
8.0.10.0002.00416.96
8.0.00.0131.99016.68
7.4.330.0030.00314.76
7.4.320.0060.00016.48
7.4.300.0030.00316.54
7.4.290.0000.00716.66
7.4.280.0030.00316.54
7.4.270.0030.00316.51
7.4.260.0000.00513.27
7.4.250.0030.00616.62
7.4.240.0000.00716.61
7.4.230.0000.00716.54
7.4.220.0070.01016.62
7.4.210.0070.00816.56
7.4.200.0000.00716.43
7.4.190.0070.00016.67
7.4.160.0170.00016.34
7.4.150.0090.00917.40
7.4.140.0080.01117.86
7.4.130.0080.00916.55
7.4.120.0070.01016.58
7.4.110.0090.00816.43
7.4.100.0120.00616.48
7.4.90.0070.01016.53
7.4.80.0100.00719.37
7.4.70.0120.00916.32
7.4.60.0100.01016.49
7.4.50.0030.00616.52
7.4.40.0090.00522.27
7.4.30.0100.01016.28
7.4.00.0060.00914.66
7.3.330.0020.00213.08
7.3.320.0050.00013.29
7.3.310.0040.00416.18
7.3.300.0000.00716.33
7.3.290.0030.01316.30
7.3.280.0080.00716.28
7.3.270.0060.01017.40
7.3.260.0150.00318.24
7.3.250.0130.01016.39
7.3.240.0120.00916.43
7.3.230.0140.00916.66
7.3.210.0060.01116.31
7.3.200.0070.01019.39
7.3.190.0070.01516.41
7.3.180.0140.00316.62
7.3.170.0150.00616.60
7.3.160.0060.01216.63
7.3.120.0090.00614.95
7.2.330.0070.01016.60
7.2.320.0120.00616.75
7.2.310.0100.01416.81
7.2.300.0040.01816.74
7.2.290.0060.00916.80
7.1.70.0000.00817.19
7.1.60.0100.01419.40
7.1.50.0070.01416.75
7.1.00.0070.07022.48
7.0.200.0000.01216.84
7.0.140.0130.06321.92
7.0.110.0100.05019.90
7.0.100.0100.05019.86
7.0.90.0270.04019.87
7.0.80.0100.04019.98
7.0.70.0000.05021.72
7.0.60.0070.04321.86
7.0.50.0100.04320.02
7.0.40.0000.05019.70
7.0.30.0000.05319.65
7.0.20.0100.03319.73
7.0.10.0000.05019.77
7.0.00.0030.04719.66
5.6.280.0030.07320.89
5.6.260.0030.04720.70
5.6.250.0000.04020.66
5.6.240.0030.04720.64
5.6.230.0100.05320.85
5.6.220.0030.04320.66
5.6.210.0000.05020.62
5.6.200.0170.03721.03
5.6.190.0000.05021.03
5.6.180.0130.04021.11
5.6.170.0000.05020.95
5.6.160.0100.04321.14
5.6.150.0100.04021.22
5.6.140.0130.03721.29
5.6.130.0030.04721.13
5.6.120.0100.04020.93
5.6.110.0130.04021.14
5.6.100.0170.03321.13
5.6.90.0030.05321.17
5.6.80.0000.04720.58
5.6.70.0000.05020.57
5.6.60.0070.04020.51
5.6.50.0030.04320.37
5.6.40.0070.04320.30
5.6.30.0070.03720.32
5.6.20.0030.03720.30
5.6.10.0100.03720.29
5.6.00.0070.04020.56
5.5.380.0070.03320.47
5.5.370.0030.03720.57
5.5.360.0000.05320.30
5.5.350.0070.04720.48
5.5.340.0000.05020.87
5.5.330.0030.04320.70
5.5.320.0030.04720.70
5.5.310.0070.04020.95
5.5.300.0130.03320.96
5.5.290.0000.05320.94
5.5.280.0000.05020.74
5.5.270.0070.04020.79
5.5.260.0070.04720.95
5.5.250.0170.04320.63
5.5.240.0030.04020.34
5.5.230.0070.04720.33
5.5.220.0030.04020.39
5.5.210.0030.04320.25
5.5.200.0000.04320.31
5.5.190.0000.04720.09
5.5.180.0070.04320.16
5.5.160.0030.04020.13
5.5.150.0070.04320.26
5.5.140.0000.05020.05
5.5.130.0000.05020.24
5.5.120.0030.04720.32
5.5.110.0000.05020.38
5.5.100.0070.04320.26
5.5.90.0030.04720.05
5.5.80.0100.03320.08
5.5.70.0030.04319.99
5.5.60.0100.03720.16
5.5.50.0000.04720.18
5.5.40.0030.04720.24
5.5.30.0030.03719.98
5.5.20.0100.03720.13
5.5.10.0030.04720.02
5.5.00.0000.05320.13
5.4.450.0030.05019.36
5.4.440.0000.04019.31
5.4.430.0000.05019.64
5.4.420.0030.04319.28
5.4.410.0030.04019.27
5.4.400.0070.04019.23
5.4.390.0070.04019.34
5.4.380.0030.04318.95
5.4.370.0070.03718.95
5.4.360.0070.04018.95
5.4.350.0000.04719.17
5.4.340.0070.04319.33
5.4.320.0070.04319.03
5.4.310.0170.03018.99
5.4.300.0000.04719.34
5.4.290.0070.03718.95
5.4.280.0070.04019.02
5.4.270.0030.04319.13
5.4.260.0000.04718.95
5.4.250.0070.04019.01
5.4.240.0070.03719.00
5.4.230.0070.03719.04
5.4.220.0070.04319.30
5.4.210.0070.04319.33
5.4.200.0030.04319.07
5.4.190.0030.04019.22
5.4.180.0030.04319.07
5.4.170.0070.03718.98
5.4.160.0100.02719.21
5.4.150.0030.04319.01
5.4.140.0070.03716.61
5.4.130.0070.02716.43
5.4.120.0030.03316.31
5.4.110.0030.03316.41
5.4.100.0070.03016.55
5.4.90.0000.03316.47
5.4.80.0070.07016.55
5.4.70.0070.07316.48
5.4.60.0030.07016.52
5.4.50.0030.04316.44
5.4.40.0070.07316.28
5.4.30.0100.06316.39
5.4.20.0100.07016.33
5.4.10.0030.06316.37
5.4.00.0070.06015.78
5.3.290.0100.03714.80
5.3.280.0100.03314.74
5.3.270.0030.03314.64
5.3.260.0030.03314.83
5.3.250.0100.03714.68
5.3.240.0130.03314.59
5.3.230.0030.04014.60
5.3.220.0000.03714.42
5.3.210.0030.04014.70
5.3.200.0070.03714.58
5.3.190.0030.04314.70
5.3.180.0070.07714.42
5.3.170.0100.07314.42
5.3.160.0070.07314.54
5.3.150.0030.05014.56
5.3.140.0070.05014.68
5.3.130.0000.07314.65
5.3.120.0070.06014.62
5.3.110.0070.03714.77
5.3.100.0030.06714.08
5.3.90.0030.06714.02
5.3.80.0000.03713.99
5.3.70.0070.07014.01
5.3.60.0000.03714.00
5.3.50.0070.06713.96
5.3.40.0000.08014.02
5.3.30.0070.06313.94
5.3.20.0030.07013.71
5.3.10.0030.03313.72
5.3.00.0070.07013.63
5.2.170.0030.06311.43
5.2.160.0030.06011.43
5.2.150.0000.03011.43
5.2.140.0000.03011.43
5.2.130.0000.07011.43
5.2.120.0000.05711.43
5.2.110.0030.03711.43
5.2.100.0030.05011.43
5.2.90.0000.05011.43
5.2.80.0030.04711.43
5.2.70.0030.03311.43
5.2.60.0030.03011.43
5.2.50.0030.03711.43
5.2.40.0030.04011.43
5.2.30.0030.02711.43
5.2.20.0000.03011.43
5.2.10.0030.02011.43
5.2.00.0000.02711.43
5.1.60.0000.02711.43
5.1.50.0000.02311.43
5.1.40.0000.02011.43
5.1.30.0070.05711.43
5.1.20.0070.03311.43
5.1.10.0000.02711.43
5.1.00.0030.04011.43
5.0.50.0030.02011.43
5.0.40.0000.01711.43
5.0.30.0000.02711.43
5.0.20.0030.01711.43
5.0.10.0000.02011.43
5.0.00.0000.02711.43
4.4.90.0000.01311.43
4.4.80.0030.02711.43
4.4.70.0000.02311.43
4.4.60.0000.01711.43
4.4.50.0030.02011.43
4.4.40.0000.03011.43
4.4.30.0000.01711.43
4.4.20.0000.01311.43
4.4.10.0000.01711.43
4.4.00.0000.03011.43
4.3.110.0000.01311.43
4.3.100.0000.01311.43
4.3.90.0030.01011.43
4.3.80.0000.02311.43
4.3.70.0000.01311.43
4.3.60.0030.01011.43
4.3.50.0000.01711.43
4.3.40.0000.02311.43
4.3.30.0000.01311.43
4.3.20.0000.01311.43
4.3.10.0070.01011.43
4.3.00.0030.01311.43

preferences:
44.46 ms | 401 KiB | 5 Q