3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = "Dette er en test af F&oslash;rste af de f&oslash;r omtalte tests"; $search = "F&oslash;"; $pos = 0; $loop = true; while($loop) { # Check if the word can be found in the text $pos = stripos($html,$search,$pos); if($pos !== false) { $spanStart = "<span style='background-color:khaki;'>"; $spanEnd = "</span>"; $html = substr($html,0,$pos) . $spanStart . substr($html,$pos,strlen($search)) . $spanEnd . substr($html,$pos+strlen($search),strlen($html)); $pos = $pos + strlen($search) + strlen($spanStart) + strlen($spanEnd); } else { $loop = false; } } echo "html=[$html]";

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.01116.38
8.3.50.0120.00822.83
8.3.40.0040.01118.70
8.3.30.0080.00618.96
8.3.20.0050.00220.35
8.3.10.0040.00423.70
8.3.00.0000.00819.01
8.2.180.0090.00616.63
8.2.170.0140.00722.96
8.2.160.0110.00420.38
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0100.00720.96
8.2.110.0030.00621.03
8.2.100.0060.00617.66
8.2.90.0080.00019.17
8.2.80.0050.00317.97
8.2.70.0040.00417.60
8.2.60.0000.00817.80
8.2.50.0050.00318.10
8.2.40.0000.00820.60
8.2.30.0040.00419.13
8.2.20.0050.00317.60
8.2.10.0040.00418.18
8.2.00.0000.00717.61
8.1.280.0120.00325.92
8.1.270.0090.00024.00
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00323.89
8.1.230.0080.00317.52
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0080.00018.65
8.1.160.0070.00018.84
8.1.150.0040.00420.02
8.1.140.0050.00217.36
8.1.130.0030.00317.75
8.1.120.0080.00017.39
8.1.110.0070.00017.50
8.1.100.0000.00817.46
8.1.90.0070.00017.50
8.1.80.0050.00217.33
8.1.70.0030.00317.45
8.1.60.0090.00017.59
8.1.50.0000.00817.47
8.1.40.0000.00817.52
8.1.30.0040.00417.48
8.1.20.0070.00017.54
8.1.10.0040.00417.45
8.1.00.0080.00017.36
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0080.00018.42
8.0.270.0000.00717.25
8.0.260.0030.00317.25
8.0.250.0000.00716.91
8.0.240.0000.00716.99
8.0.230.0000.00616.95
8.0.220.0070.00016.75
8.0.210.0000.00716.79
8.0.200.0030.00316.84
8.0.190.0000.00916.86
8.0.180.0000.00716.77
8.0.170.0080.00016.83
8.0.160.0030.00516.85
8.0.150.0000.00716.71
8.0.140.0030.00416.83
8.0.130.0000.00913.26
8.0.120.0000.00716.75
8.0.110.0020.00516.89
8.0.100.0040.00416.91
8.0.90.0000.00716.77
8.0.80.0040.01116.84
8.0.70.0040.00416.87
8.0.60.0040.00416.82
8.0.50.0000.00716.94
8.0.30.0140.01017.11
8.0.20.0110.00817.40
8.0.10.0040.00316.76
8.0.00.0090.00916.67
7.4.330.0030.00315.07
7.4.320.0040.00416.54
7.4.300.0030.00316.48
7.4.290.0030.00316.63
7.4.280.0050.00316.64
7.4.270.0040.00416.48
7.4.260.0000.00816.41
7.4.250.0000.00716.52
7.4.240.0000.00716.44
7.4.230.0040.00416.43
7.4.220.0070.01216.44
7.4.210.0060.00916.54
7.4.200.0080.00016.29
7.4.160.0060.00916.36
7.4.150.0100.00717.40
7.4.140.0100.00817.86
7.4.130.0130.00616.44
7.4.120.0070.01216.43
7.4.110.0100.00616.27
7.4.100.0110.01116.42
7.4.90.0110.00616.54
7.4.80.0090.01319.39
7.4.70.0110.00616.38
7.4.60.0030.01316.66
7.4.50.0040.00416.11
7.4.40.0100.01016.52
7.4.30.0040.01116.36
7.4.10.0150.00415.06
7.4.00.0070.00714.80
7.3.330.0070.00013.26
7.3.320.0030.00313.05
7.3.310.0040.00316.44
7.3.300.0000.00716.28
7.3.290.0090.00416.42
7.3.280.0100.01016.36
7.3.270.0070.01117.40
7.3.260.0110.00616.66
7.3.240.0090.00916.56
7.3.230.0120.00416.39
7.3.210.0100.00616.28
7.3.200.0150.00419.39
7.3.190.0080.00916.58
7.3.180.0060.01316.41
7.3.170.0060.00916.60
7.3.160.0060.00916.45
7.3.130.0050.01014.98
7.3.120.0150.00014.51
7.3.110.0070.01414.81
7.3.100.0100.00315.17
7.3.90.0090.00615.05
7.3.80.0030.01215.03
7.3.70.0030.00814.77
7.3.60.0070.00714.98
7.3.50.0000.01014.79
7.3.40.0000.01014.88
7.3.30.0130.00015.01
7.3.20.0000.01016.91
7.3.10.0070.00316.71
7.3.00.0100.00716.62
7.2.330.0060.01816.82
7.2.320.0050.01216.44
7.2.310.0060.01016.71
7.2.300.0170.00016.83
7.2.290.0080.00816.51
7.2.260.0040.01115.16
7.2.250.0000.01915.13
7.2.240.0040.01115.14
7.2.230.0070.01015.16
7.2.220.0070.01015.28
7.2.210.0060.00614.90
7.2.200.0060.00615.00
7.2.190.0060.00315.04
7.2.180.0100.00314.97
7.2.170.0060.00614.91
7.2.160.0000.00915.05
7.2.150.0090.00316.80
7.2.140.0080.00516.87
7.2.130.0060.00316.93
7.2.120.0060.01116.95
7.2.110.0070.01016.68
7.2.100.0080.00816.93
7.2.90.0110.00716.87
7.2.80.0070.00316.97
7.2.70.0100.00717.09
7.2.60.0040.01116.97
7.2.50.0060.00917.00
7.2.40.0040.01016.95
7.2.30.0000.01216.75
7.2.20.0080.00516.90
7.2.10.0090.00617.00
7.2.00.0060.00618.12
7.1.330.0030.01015.79
7.1.320.0110.00315.74
7.1.310.0040.00715.66
7.1.300.0110.00415.92
7.1.290.0110.00315.76
7.1.280.0100.00315.77
7.1.270.0040.00715.75
7.1.260.0030.01015.68
7.1.250.0060.00915.77
7.1.240.0000.01315.75
7.1.230.0040.01115.95
7.1.220.0060.00615.98
7.1.210.0040.01415.81
7.1.200.0000.01215.91
7.1.190.0080.00315.91
7.1.180.0040.00715.73
7.1.170.0060.00915.53
7.1.160.0000.00815.62
7.1.150.0060.00615.94
7.1.140.0000.01115.97
7.1.130.0000.01215.97
7.1.120.0090.00615.72
7.1.110.0000.01315.89
7.1.100.0100.01316.86
7.1.90.0080.00815.89
7.1.80.0060.00315.89
7.1.70.0000.01516.55
7.1.60.0110.00717.56
7.1.50.0090.01425.34
7.1.40.0040.00815.84
7.1.30.0090.00415.94
7.1.20.0030.01215.56
7.1.10.0040.01415.54
7.1.00.0030.04319.18
7.0.330.0060.00615.56
7.0.320.0030.00715.37
7.0.310.0070.00415.53
7.0.300.0080.00615.38
7.0.290.0090.00315.37
7.0.280.0070.00715.36
7.0.270.0060.00615.37
7.0.260.0030.01215.11
7.0.250.0090.00615.08
7.0.240.0050.00515.34
7.0.230.0030.01715.38
7.0.220.0000.01115.52
7.0.210.0060.00615.28
7.0.200.0010.01016.19
7.0.190.0080.00415.31
7.0.180.0070.00415.31
7.0.170.0000.01515.16
7.0.160.0050.00815.32
7.0.150.0000.01715.52
7.0.140.0050.04018.81
7.0.130.0000.01715.30
7.0.120.0040.00815.41
7.0.110.0070.00715.31
7.0.100.0040.00415.45
7.0.90.0110.00015.41
7.0.80.0000.00915.43
7.0.70.0070.00715.42
7.0.60.0050.04417.66
7.0.50.0050.02516.70
7.0.40.0030.02616.98
7.0.30.0170.04216.87
7.0.20.0150.03716.75
7.0.10.0150.04216.79
7.0.00.0020.03116.69
5.6.400.0000.01514.43
5.6.390.0030.00914.49
5.6.380.0000.00914.07
5.6.370.0000.01814.52
5.6.360.0150.00014.50
5.6.350.0030.00614.18
5.6.340.0030.01014.48
5.6.330.0040.00814.57
5.6.320.0050.00514.13
5.6.310.0090.00014.18
5.6.300.0000.01114.18
5.6.290.0030.00714.43
5.6.280.0050.03817.79
5.6.270.0100.00614.23
5.6.260.0060.00314.34
5.6.250.0080.00414.47
5.6.240.0060.00914.57
5.6.230.0080.00414.11
5.6.220.0100.00714.18
5.6.210.0080.02817.43
5.6.200.0070.02816.23
5.6.190.0070.04517.36
5.6.180.0090.03817.39
5.6.170.0150.04317.41
5.6.160.0100.04617.54
5.6.150.0050.02216.27
5.6.140.0020.04616.26
5.6.130.0090.03316.26
5.6.120.0020.02517.73
5.6.110.0110.01917.59
5.6.100.0050.04617.70
5.6.90.0070.04817.84
5.6.80.0070.04517.48
5.6.70.0130.03817.34
5.6.60.0030.01014.22
5.6.50.0040.00714.11
5.6.40.0030.00714.21
5.6.30.0070.00714.43
5.6.20.0130.00314.39
5.6.10.0070.00714.36
5.6.00.0000.01214.23
5.5.380.0080.00614.42
5.5.370.0040.00414.48
5.5.360.0070.00713.98
5.5.350.0180.04017.30
5.5.340.0050.02216.22
5.5.330.0070.03017.21
5.5.320.0300.03217.36
5.5.310.0160.03917.20
5.5.300.0080.04316.22
5.5.290.0070.02916.14
5.5.280.0070.04317.43
5.5.270.0070.04717.29
5.5.260.0080.02117.60
5.5.250.0060.03817.50
5.5.240.0030.05017.30
5.5.230.0050.00514.29
5.5.220.0030.00614.04
5.5.210.0040.00814.23
5.5.200.0080.00813.96
5.5.190.0030.01314.11
5.5.180.0030.01213.83
5.5.170.0030.01414.35
5.5.160.0080.00414.18
5.5.150.0070.01013.81
5.5.140.0120.00414.29
5.5.130.0070.01014.29
5.5.120.0030.01114.16
5.5.110.0100.00314.41
5.5.100.0060.00614.18
5.5.90.0030.01213.98
5.5.80.0090.00614.16
5.5.70.0070.00614.16
5.5.60.0050.00514.21
5.5.50.0060.00614.19
5.5.40.0070.01013.75
5.5.30.0030.01013.76
5.5.20.0070.00714.26
5.5.10.0060.00614.18
5.5.00.0030.01113.70
5.4.450.0450.02915.52
5.4.440.0400.02815.49
5.4.430.0350.03115.57
5.4.420.0400.02515.37
5.4.410.0080.03315.22
5.4.400.0270.03615.15
5.4.390.0220.02315.11
5.4.380.0030.03715.06
5.4.370.0040.02415.07
5.4.360.0110.01715.09
5.4.350.0050.02611.74
5.4.340.0040.02211.74
5.4.330.0000.00911.50
5.4.320.0080.01811.98
5.4.310.0070.02211.97
5.4.300.0040.02611.98
5.4.290.0040.02711.97
5.4.280.0090.02211.93
5.4.270.0070.01911.93
5.4.260.0040.02211.92
5.4.250.0050.02011.92
5.4.240.0050.02111.93
5.4.230.0050.02011.92
5.4.220.0060.02211.92
5.4.210.0050.02311.92
5.4.200.0040.02311.92
5.4.190.0060.02211.92
5.4.180.0030.02311.92
5.4.170.0060.02511.93
5.4.160.0040.02211.92
5.4.150.0050.02111.92
5.4.140.0060.02011.76
5.4.130.0070.01911.76
5.4.120.0040.02211.73
5.4.110.0060.02311.73
5.4.100.0040.02111.73
5.4.90.0050.02211.73
5.4.80.0090.01811.73
5.4.70.0060.02111.73
5.4.60.0050.01911.73
5.4.50.0050.02111.73
5.4.40.0020.02311.72
5.4.30.0020.02611.72
5.4.20.0040.02411.73
5.4.10.0050.02211.72
5.4.00.0040.02211.47
5.3.290.0100.03712.80
5.3.280.0090.03512.71
5.3.270.0090.04212.73
5.3.260.0070.04112.72
5.3.250.0070.04112.72
5.3.240.0060.03812.72
5.3.230.0030.04312.71
5.3.220.0070.03612.68
5.3.210.0060.03812.68
5.3.200.0050.03812.68
5.3.190.0110.04212.68
5.3.180.0040.03812.67
5.3.170.0070.03412.67
5.3.160.0060.03612.67
5.3.150.0050.03812.67
5.3.140.0060.03612.66
5.3.130.0030.04012.66
5.3.120.0080.03512.66
5.3.110.0060.03812.66
5.3.100.0070.03412.12
5.3.90.0050.03712.09
5.3.80.0080.03312.08
5.3.70.0060.03512.07
5.3.60.0070.04012.06
5.3.50.0070.03512.00
5.3.40.0090.03712.00
5.3.30.0140.03111.95
5.3.20.0060.04111.72
5.3.10.0100.03111.69
5.3.00.0090.03811.68
5.2.170.0070.0319.18
5.2.160.0050.0349.18
5.2.150.0110.0269.18
5.2.140.0050.0309.18
5.2.130.0070.0269.14
5.2.120.0040.0289.14
5.2.110.0070.0269.15
5.2.100.0060.0309.14
5.2.90.0060.0429.14
5.2.80.0070.0299.14
5.2.70.0050.0339.14
5.2.60.0080.0399.09
5.2.50.0050.0309.05
5.2.40.0050.0299.03
5.2.30.0110.0389.01
5.2.20.0050.0359.00
5.2.10.0050.0278.92
5.2.00.0040.0298.78
5.1.60.0060.0228.07
5.1.50.0050.0328.06
5.1.40.0030.0258.04
5.1.30.0060.0398.39
5.1.20.0050.0258.41
5.1.10.0070.0238.14
5.1.00.0060.0308.14
5.0.50.0030.0326.63
5.0.40.0050.0286.49
5.0.30.0010.0336.30
5.0.20.0060.0256.28
5.0.10.0050.0236.25
5.0.00.0040.0306.25
4.4.90.0060.0124.77
4.4.80.0020.0164.76
4.4.70.0050.0164.75
4.4.60.0030.0154.75
4.4.50.0030.0154.77
4.4.40.0040.0244.71
4.4.30.0040.0144.76
4.4.20.0010.0184.85
4.4.10.0020.0174.85
4.4.00.0020.0264.76
4.3.110.0030.0154.67
4.3.100.0020.0154.67
4.3.90.0030.0144.63
4.3.80.0010.0264.59
4.3.70.0060.0144.63
4.3.60.0030.0214.63
4.3.50.0020.0204.63
4.3.40.0030.0244.54
4.3.30.0030.0173.30
4.3.20.0020.0213.27
4.3.10.0020.0223.23
4.3.00.0000.0277.93

preferences:
56.81 ms | 401 KiB | 5 Q