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"; $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.56
8.3.50.0100.00722.10
8.3.40.0090.00919.01
8.3.30.0110.00719.22
8.3.20.0030.00520.52
8.3.10.0080.00022.00
8.3.00.0060.00322.40
8.2.180.0090.01216.75
8.2.170.0150.00022.96
8.2.160.0110.00418.94
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0030.01226.16
8.2.120.0050.00517.88
8.2.110.0070.00421.25
8.2.100.0090.00317.97
8.2.90.0080.00019.35
8.2.80.0060.00317.97
8.2.70.0000.00817.88
8.2.60.0030.00617.93
8.2.50.0040.00418.07
8.2.40.0030.00520.01
8.2.30.0040.00418.19
8.2.20.0000.00817.91
8.2.10.0080.00017.80
8.2.00.0040.00417.81
8.1.280.0060.00925.92
8.1.270.0060.00322.27
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0090.00021.26
8.1.230.0030.00917.89
8.1.220.0090.00017.79
8.1.210.0040.00418.77
8.1.200.0060.00317.60
8.1.190.0060.00317.48
8.1.180.0080.00018.83
8.1.170.0040.00418.68
8.1.160.0040.00422.27
8.1.150.0000.00718.75
8.1.140.0040.00417.70
8.1.130.0080.00017.92
8.1.120.0000.00717.59
8.1.110.0050.00317.46
8.1.100.0000.00817.60
8.1.90.0070.00017.59
8.1.80.0000.00717.49
8.1.70.0000.00717.44
8.1.60.0000.00917.74
8.1.50.0030.00617.71
8.1.40.0000.00917.59
8.1.30.0060.00317.82
8.1.20.0080.00017.86
8.1.10.0040.00417.73
8.1.00.0040.00417.54
8.0.300.0040.00418.77
8.0.290.0030.00617.00
8.0.280.0030.00318.52
8.0.270.0070.00017.21
8.0.260.0000.00716.92
8.0.250.0070.00017.11
8.0.240.0000.00717.18
8.0.230.0070.00017.10
8.0.220.0050.00316.93
8.0.210.0000.00717.06
8.0.200.0000.00616.97
8.0.190.0050.00317.09
8.0.180.0040.00417.08
8.0.170.0030.00517.06
8.0.160.0080.00016.99
8.0.150.0070.00016.96
8.0.140.0050.00216.98
8.0.130.0060.00013.44
8.0.120.0000.00817.08
8.0.110.0040.00417.01
8.0.100.0080.00017.03
8.0.90.0070.00017.07
8.0.80.0150.00316.98
8.0.70.0040.00416.98
8.0.60.0000.00817.04
8.0.50.0000.00817.07
8.0.30.0140.00817.09
8.0.20.0100.01417.44
8.0.10.0030.00517.17
8.0.00.0090.01116.89
7.4.330.0050.00015.08
7.4.320.0000.00616.68
7.4.300.0030.00316.92
7.4.290.0050.00316.92
7.4.280.0000.00716.82
7.4.270.0070.00016.96
7.4.260.0040.00416.76
7.4.250.0030.00516.81
7.4.240.0060.00116.89
7.4.230.0070.00016.79
7.4.220.0070.01116.88
7.4.210.0110.00416.94
7.4.200.0020.00516.86
7.4.190.0050.00216.93
7.4.160.0080.00816.66
7.4.150.0090.00917.40
7.4.140.0090.01117.86
7.4.130.0110.00816.80
7.4.120.0140.00416.64
7.4.110.0040.02116.71
7.4.100.0100.00716.83
7.4.90.0030.01416.78
7.4.80.0090.01019.39
7.4.70.0040.01516.51
7.4.60.0070.01016.76
7.4.50.0080.00016.67
7.4.40.0040.01222.77
7.4.30.0130.01016.74
7.4.00.0110.00715.21
7.3.330.0050.00013.35
7.3.320.0000.00513.27
7.3.310.0040.00416.47
7.3.300.0040.00316.31
7.3.290.0180.00416.45
7.3.280.0090.01016.43
7.3.270.0080.00817.40
7.3.260.0070.01516.89
7.3.250.0120.00916.73
7.3.240.0120.00916.61
7.3.230.0140.00316.70
7.3.210.0110.00516.66
7.3.200.0000.01719.39
7.3.190.0150.00316.42
7.3.180.0130.00316.46
7.3.170.0110.00516.63
7.3.160.0120.00416.75
7.3.120.0070.01115.01
7.3.110.0120.00615.18
7.3.100.0040.01414.86
7.3.90.0140.00415.18
7.3.80.0040.01415.05
7.3.70.0060.01014.79
7.3.60.0060.00914.88
7.3.50.0040.00814.88
7.3.40.0030.00815.00
7.3.30.0120.00015.08
7.3.20.0110.01116.89
7.3.10.0070.01116.88
7.3.00.0080.00416.79
7.2.330.0110.00716.86
7.2.320.0080.01116.90
7.2.310.0140.00316.75
7.2.300.0170.00016.80
7.2.290.0070.01516.93
7.2.250.0110.00515.09
7.2.240.0100.01015.03
7.2.230.0030.01315.29
7.2.220.0090.00615.14
7.2.210.0040.00715.27
7.2.200.0060.00915.40
7.2.190.0080.00615.19
7.2.180.0040.00815.19
7.2.170.0000.01115.26
7.2.00.0030.01019.62
7.1.330.0030.01015.97
7.1.320.0070.00716.10
7.1.310.0070.00715.72
7.1.300.0090.00315.96
7.1.290.0080.00615.96
7.1.280.0090.00315.98
7.1.270.0100.00616.09
7.1.260.0100.01015.69
7.1.100.0000.00818.41
7.1.70.0050.00517.32
7.1.60.0100.01319.82
7.1.50.0120.00917.17
7.1.00.0030.08722.38
7.0.200.0110.00016.93
7.0.140.0100.06722.00
7.0.60.0100.08020.09
7.0.50.0000.04717.90
7.0.40.0070.09020.21
7.0.30.0170.04020.24
7.0.20.0300.07320.15
7.0.10.0100.08020.33
7.0.00.0030.08720.23
5.6.280.0030.07321.02
5.6.210.0030.04020.77
5.6.200.0070.05318.15
5.6.190.0130.04320.67
5.6.180.0230.04320.48
5.6.170.0400.07320.57
5.6.160.0070.08020.50
5.6.150.0070.07718.18
5.6.140.0030.07718.19
5.6.130.0070.06718.24
5.6.120.0170.07320.88
5.6.110.0030.04020.97
5.6.100.0130.07721.00
5.6.90.0170.07320.88
5.6.80.0000.07320.41
5.5.350.0200.08020.43
5.5.340.0100.08018.09
5.5.330.0070.08320.57
5.5.320.0470.07720.51
5.5.310.0300.06020.29
5.5.300.0000.06317.99
5.5.290.0030.04317.95
5.5.280.0170.03320.74
5.5.270.0070.08320.97
5.5.260.0070.08720.80
5.5.250.0030.04020.69
5.5.240.0230.06720.22
5.4.450.0770.05019.16
5.4.440.0500.04019.64
5.4.430.1330.03719.52
5.4.420.0900.04319.47
5.4.410.0830.05319.46
5.4.400.0900.04019.00
5.4.390.0770.03319.15
5.4.380.0370.04018.62
5.4.370.0530.05718.47
5.4.360.0230.04718.72
5.4.350.0230.06018.50
5.4.340.0330.04718.80
5.4.320.0050.03612.50
5.4.310.0070.03712.50
5.4.300.0050.03712.50
5.4.290.0060.03712.50
5.4.280.0050.03512.39
5.4.270.0070.04312.39
5.4.260.0100.05319.04
5.4.250.0200.04319.01
5.4.240.0100.05318.92
5.4.230.0200.04719.03
5.4.220.0130.05018.96
5.4.210.0100.05019.01
5.4.200.0130.05018.75
5.4.190.0070.05018.79
5.4.180.0100.07318.96
5.4.170.0100.05018.79
5.4.160.0070.06718.66
5.4.150.0170.04718.96
5.4.140.0100.05316.48
5.4.130.0070.04716.63
5.4.120.0170.03716.43
5.4.110.0070.05316.48
5.4.100.0030.06016.53
5.4.90.0130.04316.54
5.4.80.0200.04716.42
5.4.70.0070.05016.52
5.4.60.0070.05016.31
5.4.50.0070.05316.39
5.4.40.0070.04716.52
5.4.30.0000.05316.38
5.4.20.0100.05316.47
5.4.10.0100.05316.50
5.4.00.0130.04315.81
5.3.290.0060.04012.80
5.3.280.0100.05714.42
5.3.270.0030.05714.59
5.3.260.0100.05314.43
5.3.250.0030.05314.62
5.3.240.0200.04314.76
5.3.230.0100.04714.58
5.3.220.0070.06014.55
5.3.210.0100.05314.40
5.3.200.0130.06714.65
5.3.190.0130.06714.40
5.3.180.0130.04314.63
5.3.170.0100.06314.47
5.3.160.0130.04314.70
5.3.150.0070.05014.65
5.3.140.0000.06014.62
5.3.130.0070.05314.64
5.3.120.0100.07014.57
5.3.110.0030.06014.65
5.3.100.0230.05714.21
5.3.90.0130.04314.07
5.3.80.0070.05014.02
5.3.70.0070.05014.24
5.3.60.0070.07014.07
5.3.50.0070.05014.17
5.3.40.0130.04713.93
5.3.30.0200.03313.89
5.3.20.0100.06713.68
5.3.10.0100.05713.81
5.3.00.0070.05013.80
5.2.170.0070.04011.13
5.2.160.0100.03311.05
5.2.150.0030.04311.36
5.2.140.0130.03711.22
5.2.130.0170.03011.05
5.2.120.0000.04311.05
5.2.110.0100.03711.17
5.2.100.0100.05311.09
5.2.90.0070.04310.92
5.2.80.0130.05011.17
5.2.70.0030.04711.31
5.2.60.0100.04711.14
5.2.50.0130.03710.86
5.2.40.0130.04311.09
5.2.30.0100.03710.98
5.2.20.0100.04010.87
5.2.10.0000.04310.94
5.2.00.0070.04710.81
5.1.60.0030.04010.24
5.1.50.0070.03710.07
5.1.40.0100.02710.22
5.1.30.0100.03010.40
5.1.20.0000.06010.35
5.1.10.0100.03010.06
5.1.00.0170.03710.15
5.0.50.0100.0338.75
5.0.40.0070.0278.62
5.0.30.0100.0378.32
5.0.20.0030.0408.44
5.0.10.0100.0378.34
5.0.00.0100.0378.15
4.4.90.0000.0336.61
4.4.80.0070.0236.61
4.4.70.0030.0276.61
4.4.60.0070.0206.61
4.4.50.0070.0306.61
4.4.40.0070.0436.61
4.4.30.0100.0136.61
4.4.20.0070.0236.61
4.4.10.0100.0236.61
4.4.00.0100.0276.61
4.3.110.0030.0236.61
4.3.100.0000.0276.61
4.3.90.0000.0236.61
4.3.80.0100.0276.61
4.3.70.0000.0236.61
4.3.60.0000.0236.61
4.3.50.0000.0336.61
4.3.40.0030.0376.61
4.3.30.0000.0276.61
4.3.20.0030.0206.61
4.3.10.0030.0306.61
4.3.00.0070.01313.41

preferences:
43.43 ms | 401 KiB | 5 Q