3v4l.org

run code in 300+ PHP versions simultaneously
<?php function fixtags($text){ $text = htmlspecialchars($text); $text = preg_replace("/=/", "=\"\"", $text); $text = preg_replace("/&quot;/", "&quot;\"", $text); $tags = "/&lt;(\/|)(\w*)(\ |)(\w*)([\\\=]*)(?|(\")\"&quot;\"|)(?|(.*)?&quot;(\")|)([\ ]?)(\/|)&gt;/i(\&lt;h[1-9]&gt;)"; $replacement = "<$1$2$3$4$5$6$7$8$9$10>"; $text = preg_replace($tags, $replacement, $text); $text = preg_replace("/=\"\"/", "=", $text); return $text; }?> <?php echo fixtags(' content of website ... <h1> Heading (?= 1 for largest to 6 for smallest, eg h1) </h1> <p> Paragraph of Text </p> <b> Bold Text </b> <a href="url"> ... </a> <i> Italic Text </i> <u> Underline Text </u> <strike> Strikeout </strike> <sup> Superscript - Smaller text placed below normal text </sup> <sub> ... </sub>');

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.0100.01018.80
8.3.50.0030.01221.99
8.3.40.0150.00318.96
8.3.30.0110.00718.91
8.3.20.0040.00420.16
8.3.10.0080.00022.09
8.3.00.0090.00022.40
8.2.180.0120.00917.00
8.2.170.0120.00322.96
8.2.160.0070.00719.17
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0040.01126.16
8.2.120.0050.00319.61
8.2.110.0030.00620.97
8.2.100.0000.01117.97
8.2.90.0060.00319.23
8.2.80.0000.00817.97
8.2.70.0040.00417.75
8.2.60.0080.00017.93
8.2.50.0040.00418.07
8.2.40.0040.00420.00
8.2.30.0020.00518.11
8.2.20.0040.00417.89
8.2.10.0040.00417.81
8.2.00.0000.00718.00
8.1.280.0070.00725.92
8.1.270.0090.00022.08
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0030.00721.43
8.1.230.0040.00817.52
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0070.00417.23
8.1.190.0000.00817.38
8.1.180.0030.00518.72
8.1.170.0000.00818.65
8.1.160.0040.00422.18
8.1.150.0040.00418.63
8.1.140.0080.00017.55
8.1.130.0000.00717.78
8.1.120.0000.00817.63
8.1.110.0040.00417.55
8.1.100.0040.00417.64
8.1.90.0040.00417.62
8.1.80.0030.00317.45
8.1.70.0040.00417.45
8.1.60.0040.00417.73
8.1.50.0040.00417.68
8.1.40.0030.00517.63
8.1.30.0030.00517.77
8.1.20.0040.00417.79
8.1.10.0040.00417.66
8.1.00.0040.00717.64
8.0.300.0080.00018.77
8.0.290.0040.00416.88
8.0.280.0030.00318.42
8.0.270.0000.00717.20
8.0.260.0000.00617.10
8.0.250.0000.00817.20
8.0.240.0040.00417.04
8.0.230.0040.00417.13
8.0.220.0000.00717.00
8.0.210.0000.00716.94
8.0.200.0030.00317.14
8.0.190.0070.00017.05
8.0.180.0080.00017.00
8.0.170.0040.00417.07
8.0.160.0040.00417.12
8.0.150.0090.00016.90
8.0.140.0030.00317.04
8.0.130.0070.00013.50
8.0.120.0080.00017.07
8.0.110.0070.00017.00
8.0.100.0050.00317.02
8.0.90.0040.00417.10
8.0.80.0040.01117.07
8.0.70.0000.00817.11
8.0.60.0040.00417.16
8.0.50.0040.00417.08
8.0.30.0070.01117.33
8.0.20.0140.00917.40
8.0.10.0040.00417.07
8.0.00.0160.00617.21
7.4.330.0000.00615.00
7.4.320.0030.00316.73
7.4.300.0030.00316.84
7.4.290.0000.00916.86
7.4.280.0000.00716.74
7.4.270.0030.00316.72
7.4.260.0030.00316.70
7.4.250.0070.00016.71
7.4.240.0020.00616.71
7.4.230.0030.00316.84
7.4.220.0070.01016.78
7.4.210.0080.00816.84
7.4.200.0000.00716.79
7.4.190.0030.00316.79
7.4.160.0080.00816.71
7.4.150.0110.00717.40
7.4.140.0100.00917.86
7.4.130.0090.00916.85
7.4.120.0110.00816.74
7.4.110.0140.01016.98
7.4.100.0150.00316.71
7.4.90.0070.01016.68
7.4.80.0140.00419.39
7.4.70.0050.01316.64
7.4.60.0060.01116.76
7.4.50.0080.00016.68
7.4.40.0060.01022.77
7.4.30.0110.01016.82
7.4.00.0110.00415.04
7.3.330.0000.00513.39
7.3.320.0030.00313.46
7.3.310.0000.00716.46
7.3.300.0050.00316.43
7.3.290.0080.00816.45
7.3.280.0060.01016.47
7.3.270.0100.01117.40
7.3.260.0070.01116.53
7.3.250.0080.01416.59
7.3.240.0130.00416.68
7.3.230.0130.01016.66
7.3.210.0090.00916.44
7.3.200.0150.00619.39
7.3.190.0120.00616.61
7.3.180.0070.01016.81
7.3.170.0130.00316.66
7.3.160.0030.01316.75
7.3.120.0060.00914.88
7.3.110.0040.01114.89
7.3.100.0000.01515.26
7.3.90.0060.01014.96
7.3.80.0070.00714.88
7.3.70.0070.00714.76
7.3.60.0110.00414.84
7.3.50.0120.00414.59
7.3.40.0110.00415.04
7.3.30.0030.01014.94
7.3.20.0070.01016.87
7.3.10.0060.00916.79
7.3.00.0110.00716.59
7.2.330.0100.01016.79
7.2.320.0080.01416.84
7.2.310.0110.00816.89
7.2.300.0090.00916.81
7.2.290.0150.00716.91
7.2.240.0060.00914.94
7.2.230.0170.00015.46
7.2.220.0090.00415.21
7.2.210.0030.00915.19
7.2.200.0080.00415.21
7.2.190.0040.00715.25
7.2.180.0040.00915.17
7.2.170.0030.01315.19
7.2.160.0030.01014.93
7.2.150.0000.01217.08
7.2.140.0070.00716.91
7.2.130.0070.01117.10
7.2.120.0030.01316.94
7.2.110.0000.01617.13
7.2.100.0130.00316.87
7.2.90.0030.01017.05
7.2.80.0030.01016.91
7.2.70.0070.00716.93
7.2.60.0040.00917.06
7.2.50.0070.00717.02
7.2.40.0070.01016.95
7.2.30.0030.00917.08
7.2.20.0060.00917.03
7.2.10.0110.00717.00
7.2.00.0030.01218.28
7.1.330.0030.01115.99
7.1.320.0040.00715.78
7.1.310.0070.00716.04
7.1.300.0070.00715.88
7.1.290.0000.01416.02
7.1.280.0090.00615.93
7.1.270.0060.00615.96
7.1.260.0030.01016.09
7.1.250.0000.01415.83
7.1.200.0040.00816.02
7.1.100.0060.00618.39
7.1.70.0040.00417.34
7.1.60.0170.00719.82
7.1.50.0140.01017.13
7.1.00.0100.08722.38
7.0.200.0100.00316.64
7.0.140.0030.07722.09
7.0.110.0630.06019.99
7.0.100.0700.07719.98
7.0.90.0470.03719.95
7.0.80.0670.07020.02
7.0.70.0600.08719.99
7.0.60.0670.07320.04
7.0.50.0630.07720.45
7.0.40.0070.08320.24
7.0.30.0100.08720.04
7.0.20.0130.06720.03
7.0.10.0070.07019.95
7.0.00.0030.07320.04
5.6.280.0030.07321.13
5.6.250.0170.07020.68
5.6.240.0100.08020.70
5.6.230.0100.08320.71
5.6.220.0100.07720.65
5.6.210.0130.08020.63
5.6.200.0130.07321.09
5.6.190.0100.07721.14
5.6.180.0030.08321.05
5.6.170.0100.07720.93
5.6.160.0070.04021.14
5.6.150.0100.07720.95
5.6.140.0100.08320.98
5.6.130.0000.07720.99
5.6.120.0030.08721.14
5.6.110.0070.08021.26
5.6.100.0100.07321.05
5.6.90.0070.08720.90
5.6.80.0070.07320.33
5.6.70.0070.06720.29
5.6.60.0000.08320.59
5.6.50.0070.07020.30
5.6.40.0070.08320.32
5.6.30.0100.07020.50
5.6.20.0100.07720.28
5.6.10.0000.05720.32
5.6.00.0100.07320.49
5.5.380.0100.07720.52
5.5.370.0130.07320.48
5.5.360.0130.07720.36
5.5.350.0070.06720.48
5.5.340.0170.06721.04
5.5.330.0100.04720.98
5.5.320.0100.08720.91
5.5.310.0130.08020.99
5.5.300.0000.05320.71
5.5.290.0030.08020.89
5.5.280.0170.04021.02
5.5.270.0130.06720.73
5.5.260.0130.08020.79
5.5.250.0030.07720.59
5.5.240.0000.08020.36
5.5.230.0130.07320.13
5.5.220.0100.06020.19
5.5.210.0030.07720.36
5.5.200.0000.08320.16
5.5.190.0170.04320.30
5.5.180.0130.06720.30
5.5.160.0100.07020.39
5.5.150.0200.07020.16
5.5.140.0170.04320.22
5.5.130.0030.07020.25
5.5.120.0130.07720.17
5.5.110.0100.07020.05
5.5.100.0070.07020.11
5.5.90.0130.07320.16
5.5.80.0030.07720.11
5.5.70.0000.05720.05
5.5.60.0030.08720.25
5.5.50.0000.08020.14
5.5.40.0130.06720.15
5.5.30.0100.07720.06
5.5.20.0030.05319.98
5.5.10.0100.07320.01
5.5.00.0070.08320.14
5.4.450.0170.07319.51
5.4.440.0100.08019.27
5.4.430.0030.04319.36
5.4.420.0130.07719.48
5.4.410.0130.07319.53
5.4.400.0200.06319.25
5.4.390.0170.06719.01
5.4.380.0030.07319.18
5.4.370.0030.04719.16
5.4.360.0070.08019.01
5.4.350.0130.07019.36
5.4.340.0130.07019.23
5.4.320.0000.08319.00
5.4.310.0000.07018.95
5.4.300.0130.05319.02
5.4.290.0100.07719.14
5.4.280.0070.08019.00
5.4.270.0100.07019.01
5.4.260.0070.07719.00
5.4.250.0100.07319.02
5.4.240.0030.05719.00
5.4.230.0070.07719.24
5.4.220.0070.07719.01
5.4.210.0030.05718.98
5.4.200.0170.06319.02
5.4.190.0070.07319.21
5.4.180.0070.08019.02
5.4.170.0100.07018.98
5.4.160.0100.04319.02
5.4.150.0200.03719.00
5.4.140.0100.07316.67
5.4.130.0070.06716.54
5.4.120.0030.06016.40
5.4.110.0030.07716.46
5.4.100.0100.06316.64
5.4.90.0130.06716.37
5.4.80.0030.07016.54
5.4.70.0100.07016.63
5.4.60.0000.04316.23
5.4.50.0030.03316.41
5.4.40.0070.03716.50
5.4.30.0070.03016.40
5.4.20.0000.03716.33
5.4.10.0000.04016.40
5.4.00.0070.04015.79
5.3.290.0070.04714.66
5.3.280.0100.07314.55
5.3.270.0100.07314.57
5.3.260.0070.08014.62
5.3.250.0030.07314.61
5.3.240.0070.07314.74
5.3.230.0130.06714.73
5.3.220.0100.07314.54
5.3.210.0070.07314.58
5.3.200.0030.06314.60
5.3.190.0070.07314.60
5.3.180.0070.06714.68
5.3.170.0030.07714.60
5.3.160.0030.03714.71
5.3.150.0100.03014.56
5.3.140.0070.03314.43
5.3.130.0000.05714.67
5.3.120.0100.03714.52
5.3.110.0000.04014.68
5.3.100.0030.04314.12
5.3.90.0070.03014.11
5.3.80.0100.03014.16
5.3.70.0000.04014.07
5.3.60.0030.05314.07
5.3.50.0030.04713.95
5.3.40.0000.04013.94
5.3.30.0000.06013.86
5.3.20.0070.05713.77
5.3.10.0030.03313.66
5.3.00.0030.03313.71
5.2.170.0000.03311.18
5.2.160.0070.03011.14
5.2.150.0000.03711.16
5.2.140.0070.04011.21
5.2.130.0030.03011.09
5.2.120.0000.05311.10
5.2.110.0030.06011.12
5.2.100.0000.05011.09
5.2.90.0070.02011.08
5.2.80.0030.04711.18
5.2.70.0070.02711.08
5.2.60.0030.03311.18
5.2.50.0030.02311.24
5.2.40.0030.03011.00
5.2.30.0070.04310.96
5.2.20.0070.02311.12
5.2.10.0000.04710.83
5.2.00.0030.03310.68
5.1.60.0000.05310.01
5.1.50.0000.02710.01
5.1.40.0000.0309.96
5.1.30.0030.02310.35
5.1.20.0000.02710.49
5.1.10.0000.0279.89
5.1.00.0000.05310.06
5.0.50.0000.0278.63
5.0.40.0000.0338.50
5.0.30.0000.0308.29
5.0.20.0000.0208.26
5.0.10.0000.0208.26
5.0.00.0030.0508.26
4.4.90.0000.0178.26
4.4.80.0030.0178.26
4.4.70.0000.0208.26
4.4.60.0030.0308.26
4.4.50.0000.0178.26
4.4.40.0000.0338.26
4.4.30.0030.0108.26
4.4.20.0000.0238.26
4.4.10.0070.0308.26
4.4.00.0070.0178.26
4.3.110.0000.0138.26
4.3.100.0070.0108.26
4.3.90.0030.0178.26
4.3.80.0100.0508.26
4.3.70.0000.0178.26
4.3.60.0000.0178.26
4.3.50.0030.0138.26
4.3.40.0000.0208.26
4.3.30.0030.0138.26
4.3.20.0030.0178.26
4.3.10.0130.0238.26
4.3.00.0000.0178.26

preferences:
41.58 ms | 401 KiB | 5 Q