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; <img src='f&oslash;ste.jpg' />"; $search = "F&oslash;"; $pos = 0; $loop = true; while($loop) { $pos = stripos($html,$search,$pos); if($pos !== false) { $spanStart = "<strong>"; $spanEnd = "</strong>"; $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.70.0210.00916.58
8.3.60.0120.00916.50
8.3.50.0200.00922.87
8.3.40.0070.00718.73
8.3.30.0120.00318.74
8.3.20.0080.00020.21
8.3.10.0000.00823.53
8.3.00.0040.00419.26
8.2.180.0080.00816.63
8.2.170.0030.01222.96
8.2.160.0040.01120.39
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0040.01121.16
8.2.110.0000.00921.03
8.2.100.0080.00417.91
8.2.90.0040.00419.21
8.2.80.0060.00317.97
8.2.70.0080.00017.63
8.2.60.0040.00418.05
8.2.50.0000.00818.10
8.2.40.0050.00319.88
8.2.30.0000.00717.93
8.2.20.0040.00417.68
8.2.10.0000.00718.04
8.2.00.0050.00217.74
8.1.280.0060.00925.92
8.1.270.0090.00024.01
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0000.00921.03
8.1.230.0000.01120.39
8.1.220.0050.00517.74
8.1.210.0040.00418.77
8.1.200.0060.00317.22
8.1.190.0080.00017.35
8.1.180.0000.00818.10
8.1.170.0000.00818.50
8.1.160.0070.00022.00
8.1.150.0040.00418.86
8.1.140.0020.00517.44
8.1.130.0030.00317.88
8.1.120.0040.00417.46
8.1.110.0050.00317.50
8.1.100.0000.00717.41
8.1.90.0030.00317.43
8.1.80.0070.00017.50
8.1.70.0000.00717.40
8.1.60.0000.00817.45
8.1.50.0000.00817.44
8.1.40.0080.00017.40
8.1.30.0030.00517.66
8.1.20.0020.00517.63
8.1.10.0040.00417.51
8.1.00.0040.00417.48
8.0.300.0030.00618.77
8.0.290.0040.00416.73
8.0.280.0080.00018.48
8.0.270.0030.00317.24
8.0.260.0060.00017.26
8.0.250.0030.00316.87
8.0.240.0070.00016.95
8.0.230.0060.00016.88
8.0.220.0000.00716.95
8.0.210.0040.00416.91
8.0.200.0060.00016.97
8.0.190.0000.01016.94
8.0.180.0060.00316.78
8.0.170.0000.00816.90
8.0.160.0000.00816.88
8.0.150.0040.00416.82
8.0.140.0040.00416.81
8.0.130.0000.00613.32
8.0.120.0040.00416.86
8.0.110.0000.00816.88
8.0.100.0070.00016.88
8.0.90.0040.00416.75
8.0.80.0070.00716.84
8.0.70.0030.00516.78
8.0.60.0090.00016.72
8.0.50.0020.00516.75
8.0.30.0110.00817.13
8.0.20.0100.00817.40
8.0.10.0050.00316.88
8.0.00.0100.00816.77
7.4.330.0030.00315.00
7.4.320.0030.00316.58
7.4.300.0000.00716.48
7.4.290.0030.00316.44
7.4.280.0070.00016.59
7.4.270.0070.00016.62
7.4.260.0000.00716.57
7.4.250.0000.00716.45
7.4.240.0000.00716.64
7.4.230.0070.00016.30
7.4.220.0130.00516.70
7.4.210.0070.00716.44
7.4.200.0040.00416.34
7.4.160.0090.00616.60
7.4.150.0100.01017.40
7.4.140.0070.01317.86
7.4.130.0100.00716.47
7.4.120.0120.00416.49
7.4.110.0070.01016.43
7.4.100.0070.01016.56
7.4.90.0080.00916.47
7.4.80.0100.01019.39
7.4.70.0060.01616.40
7.4.60.0060.01016.59
7.4.50.0080.00016.47
7.4.40.0080.00816.62
7.4.30.0030.01216.50
7.4.00.0000.01714.99
7.3.330.0030.00313.20
7.3.320.0070.00013.25
7.3.310.0000.00716.18
7.3.300.0030.00316.38
7.3.290.0110.00416.36
7.3.280.0090.00716.31
7.3.270.0090.00917.40
7.3.260.0070.01016.57
7.3.250.0120.00516.46
7.3.240.0070.01116.51
7.3.230.0100.00616.50
7.3.210.0080.00816.34
7.3.200.0080.00819.39
7.3.190.0100.00616.26
7.3.180.0070.01316.55
7.3.170.0120.00416.54
7.3.160.0030.01316.45
7.3.10.0100.01416.33
7.3.00.0100.01016.54
7.2.330.0030.01616.57
7.2.320.0060.00916.51
7.2.310.0100.00716.50
7.2.300.0100.00616.69
7.2.290.0130.00316.54
7.2.130.0080.01116.52
7.2.120.0240.00016.43
7.2.110.0100.00716.59
7.2.100.0130.00416.79
7.2.90.0140.00616.79
7.2.80.0150.01116.64
7.2.70.0130.00617.07
7.2.60.0080.00816.80
7.2.50.0080.02016.40
7.2.40.0110.01116.43
7.2.30.0140.01416.77
7.2.20.0120.00616.74
7.2.10.0150.00416.56
7.2.00.0060.00918.08
7.1.250.0090.01515.27
7.1.200.0110.00415.89
7.1.100.0120.00918.02
7.1.70.0000.00717.29
7.1.60.0180.00719.40
7.1.50.0100.01316.93
7.1.00.0030.07722.40
7.0.200.0080.00416.61
7.0.140.0000.07722.15
7.0.100.0270.04719.91
7.0.90.0330.08319.98
7.0.80.0200.08319.95
7.0.70.0230.04020.02
7.0.60.0170.06019.99
7.0.50.0200.07720.40
7.0.40.0030.04720.13
7.0.30.0170.08020.15
7.0.20.0070.05320.17
7.0.10.0130.06720.18
7.0.00.0170.07020.14
5.6.280.0100.06721.02
5.6.250.0070.05020.76
5.6.240.0130.07720.60
5.6.230.0070.05020.63
5.6.220.0070.08020.64
5.6.210.0030.05020.64
5.6.200.0030.04321.00
5.6.190.0130.06321.13
5.6.180.0070.07721.08
5.6.170.0170.07021.08
5.6.160.0030.05721.03
5.6.150.0030.06021.10
5.6.140.0100.07321.08
5.6.130.0070.04321.01
5.6.120.0030.08321.00
5.6.110.0100.07321.12
5.6.100.0000.08721.09
5.6.90.0100.08720.93
5.6.80.0170.06720.34
5.6.70.0030.08320.48
5.6.60.0100.05320.39
5.6.50.0100.07320.32
5.6.40.0070.05720.41
5.6.30.0130.07720.41
5.6.20.0070.08020.46
5.6.10.0230.03720.52
5.6.00.0170.07320.27
5.5.380.0130.07320.39
5.5.370.0000.08720.37
5.5.360.0100.07320.34
5.5.350.0130.06320.46
5.5.340.0100.07720.83
5.5.330.0030.08020.86
5.5.320.0070.05320.92
5.5.310.0170.07720.82
5.5.300.0100.08320.75
5.5.290.0130.07320.75
5.5.280.0070.08320.77
5.5.270.0030.09020.81
5.5.260.0170.07320.76
5.5.250.0070.05020.67
5.5.240.0030.07320.29
5.5.230.0100.07320.14
5.5.220.0170.07720.26
5.5.210.0130.07020.25
5.5.200.0170.07320.23
5.5.190.0100.07020.14
5.5.180.0070.08320.25
5.5.160.0130.07320.23
5.5.150.0130.07320.24
5.5.140.0130.07720.07
5.5.130.0000.08320.14
5.5.120.0130.07020.10
5.5.110.0100.07320.23
5.5.100.0170.07020.16
5.5.90.0100.03720.10
5.5.80.0000.08020.09
5.5.70.0070.05320.05
5.5.60.0130.07020.08
5.5.50.0130.03720.02
5.5.40.0100.04720.07
5.5.30.0200.06720.07
5.5.20.0130.06720.05
5.5.10.0100.07320.12
5.5.00.0100.06320.10
5.4.450.0170.08019.45
5.4.440.0100.07719.11
5.4.430.0070.06019.11
5.4.420.0070.03719.44
5.4.410.0000.08719.27
5.4.400.0070.07718.98
5.4.390.0070.07718.78
5.4.380.0100.04319.02
5.4.370.0100.07319.09
5.4.360.0170.06019.13
5.4.350.0000.07319.09
5.4.340.0130.07019.10
5.4.320.0000.06319.05
5.4.310.0030.08018.96
5.4.300.0130.07019.02
5.4.290.0030.06718.97
5.4.280.0030.06319.22
5.4.270.0070.07718.98
5.4.260.0070.08019.23
5.4.250.0030.08019.06
5.4.240.0030.06718.93
5.4.230.0200.06719.04
5.4.220.0100.04719.09
5.4.210.0070.06318.95
5.4.200.0100.07019.05
5.4.190.0070.07318.93
5.4.180.0200.07019.08
5.4.170.0070.07719.11
5.4.160.0170.07719.20
5.4.150.0100.07318.79
5.4.140.0070.07716.39
5.4.130.0100.06016.35
5.4.120.0100.03016.32
5.4.110.0030.04016.20
5.4.100.0070.03316.25
5.4.90.0070.03716.35
5.4.80.0000.03716.34
5.4.70.0030.03716.23
5.4.60.0030.03716.21
5.4.50.0000.04016.33
5.4.40.0030.03316.25
5.4.30.0100.03016.27
5.4.20.0070.05316.18
5.4.10.0000.04016.39
5.4.00.0000.04315.78
5.3.290.0100.07714.49
5.3.280.0000.05714.57
5.3.270.0070.06714.47
5.3.260.0070.06314.60
5.3.250.0070.07314.57
5.3.240.0070.06314.60
5.3.230.0100.03314.56
5.3.220.0070.04014.55
5.3.210.0030.04014.52
5.3.200.0000.05314.42
5.3.190.0030.03714.54
5.3.180.0000.04014.54
5.3.170.0030.03714.50
5.3.160.0030.03714.55
5.3.150.0030.03714.52
5.3.140.0000.04014.55
5.3.130.0030.04014.40
5.3.120.0030.04014.50
5.3.110.0100.06714.54
5.3.100.0030.04313.89
5.3.90.0030.03313.84
5.3.80.0030.05013.98
5.3.70.0030.04014.01
5.3.60.0070.03314.01
5.3.50.0030.04313.80
5.3.40.0000.04313.88
5.3.30.0000.07013.91
5.3.20.0030.03713.70
5.3.10.0070.03313.51
5.3.00.0030.03713.41
5.2.170.0000.03012.90
5.2.160.0030.02712.90
5.2.150.0000.03012.90
5.2.140.0000.04012.90
5.2.130.0000.03012.90
5.2.120.0000.03012.90
5.2.110.0030.03012.90
5.2.100.0000.03012.90
5.2.90.0000.03012.90
5.2.80.0100.05012.90
5.2.70.0100.02312.90
5.2.60.0000.04312.90
5.2.50.0000.03012.90
5.2.40.0070.02712.90
5.2.30.0030.02712.90
5.2.20.0000.03012.90
5.2.10.0000.03012.90
5.2.00.0000.03312.90
5.1.60.0030.04712.90
5.1.50.0000.04012.90
5.1.40.0030.02012.90
5.1.30.0030.02712.90
5.1.20.0000.02712.90
5.1.10.0000.02712.90
5.1.00.0000.02712.90
5.0.50.0000.02312.90
5.0.40.0000.02012.90
5.0.30.0000.03712.90
5.0.20.0030.01712.90
5.0.10.0000.02312.90
5.0.00.0100.02312.90
4.4.90.0000.01712.90
4.4.80.0000.01312.90
4.4.70.0000.01712.90
4.4.60.0030.01312.90
4.4.50.0000.01712.90
4.4.40.0030.02012.90
4.4.30.0000.01712.90
4.4.20.0000.01712.90
4.4.10.0000.01712.90
4.4.00.0070.02012.90
4.3.110.0030.02012.90
4.3.100.0000.01712.90
4.3.90.0000.01712.90
4.3.80.0000.03712.90
4.3.70.0030.03012.90
4.3.60.0000.01712.90
4.3.50.0000.04012.90
4.3.40.0030.04312.90
4.3.30.0000.03712.90
4.3.20.0070.03012.90
4.3.10.0000.03712.90
4.3.00.0000.03712.90

preferences:
40.14 ms | 401 KiB | 5 Q