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> <form> First name: <input type="text" name="firstname"><br> Last name: <input type="text" name="lastname"> </form> <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.0120.00318.34
8.3.50.0140.00622.30
8.3.40.0070.00719.05
8.3.30.0160.00019.13
8.3.20.0080.00020.39
8.3.10.0050.00322.03
8.3.00.0100.00022.39
8.2.180.0120.00916.88
8.2.170.0070.01122.96
8.2.160.0030.01119.00
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0070.00726.16
8.2.120.0060.00319.49
8.2.110.0030.00620.96
8.2.100.0060.00617.97
8.2.90.0030.00619.20
8.2.80.0000.00817.97
8.2.70.0050.00317.63
8.2.60.0060.00317.80
8.2.50.0030.00518.07
8.2.40.0040.00420.00
8.2.30.0040.00418.24
8.2.20.0080.00017.89
8.2.10.0080.00017.91
8.2.00.0000.01118.04
8.1.280.0040.01125.92
8.1.270.0060.00322.23
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00321.43
8.1.230.0060.00617.52
8.1.220.0060.00317.79
8.1.210.0040.00418.77
8.1.200.0030.00617.38
8.1.190.0050.00317.47
8.1.180.0000.00818.72
8.1.170.0030.00618.75
8.1.160.0040.00422.16
8.1.150.0040.00418.82
8.1.140.0030.00617.68
8.1.130.0000.00717.82
8.1.120.0030.00417.58
8.1.110.0000.00917.61
8.1.100.0030.00617.57
8.1.90.0000.00717.58
8.1.80.0040.00417.58
8.1.70.0000.00717.55
8.1.60.0000.00817.80
8.1.50.0060.00317.70
8.1.40.0000.00917.59
8.1.30.0000.00817.71
8.1.20.0050.00317.86
8.1.10.0000.00717.64
8.1.00.0060.00317.61
8.0.300.0000.00718.77
8.0.290.0090.00016.88
8.0.280.0000.00718.42
8.0.270.0050.00217.24
8.0.260.0070.00016.96
8.0.250.0030.00317.04
8.0.240.0070.00017.09
8.0.230.0050.00217.05
8.0.220.0070.00017.06
8.0.210.0070.00016.95
8.0.200.0030.00317.15
8.0.190.0000.00816.98
8.0.180.0040.00417.06
8.0.170.0070.00016.99
8.0.160.0000.00716.95
8.0.150.0000.00816.78
8.0.140.0000.00716.88
8.0.130.0060.00013.45
8.0.120.0080.00017.04
8.0.110.0000.00817.03
8.0.100.0080.00017.11
8.0.90.0030.00516.98
8.0.80.0100.01017.12
8.0.70.0000.00817.07
8.0.60.0040.00417.08
8.0.50.0080.00017.06
8.0.30.0100.01217.11
8.0.20.0140.00517.48
8.0.10.0040.00417.00
8.0.00.0090.01416.81
7.4.330.0050.00015.01
7.4.320.0000.00616.87
7.4.300.0000.00616.88
7.4.290.0030.00316.92
7.4.280.0000.00716.79
7.4.270.0000.00716.80
7.4.260.0040.00416.89
7.4.250.0050.00316.91
7.4.240.0020.00616.92
7.4.230.0030.00316.70
7.4.220.0000.01816.84
7.4.210.0110.00516.91
7.4.200.0040.00416.81
7.4.190.0000.00716.63
7.4.160.0110.00516.64
7.4.150.0090.00917.40
7.4.140.0100.00817.86
7.4.130.0090.01316.78
7.4.120.0130.00616.78
7.4.110.0060.01316.78
7.4.100.0110.00816.50
7.4.90.0090.00916.82
7.4.80.0070.01119.39
7.4.70.0160.00316.77
7.4.60.0100.00716.81
7.4.50.0090.00016.75
7.4.40.0040.00722.77
7.4.30.0100.01016.46
7.4.10.0070.01414.99
7.4.00.0060.01115.31
7.3.330.0000.00513.38
7.3.320.0030.00313.26
7.3.310.0020.00516.51
7.3.300.0070.00016.35
7.3.290.0100.01016.39
7.3.280.0060.01016.38
7.3.270.0080.00817.40
7.3.260.0120.01216.47
7.3.250.0160.00616.60
7.3.240.0070.01116.50
7.3.230.0170.00016.63
7.3.210.0110.00616.46
7.3.200.0120.00419.39
7.3.190.0120.00516.70
7.3.180.0110.00516.67
7.3.170.0100.00716.57
7.3.160.0100.00616.74
7.3.130.0070.01114.86
7.3.120.0070.00914.99
7.3.110.0080.01015.23
7.3.100.0070.01014.75
7.3.90.0100.00814.92
7.3.80.0090.00415.03
7.3.70.0090.00614.96
7.3.60.0080.00815.07
7.3.50.0050.00814.83
7.3.40.0040.01014.91
7.3.30.0020.01115.00
7.3.20.0050.00916.97
7.3.10.0090.00616.72
7.3.00.0070.00716.93
7.2.330.0110.00616.76
7.2.320.0060.01816.63
7.2.310.0150.00316.83
7.2.300.0110.01116.77
7.2.290.0150.00616.83
7.2.260.0000.01615.29
7.2.250.0080.00815.14
7.2.240.0050.01215.24
7.2.230.0170.00015.11
7.2.220.0050.01315.05
7.2.210.0010.01415.25
7.2.200.0050.01115.07
7.2.190.0040.01215.23
7.2.180.0060.00815.28
7.2.170.0020.01215.28
7.2.160.0100.00315.07
7.2.150.0070.01017.05
7.2.140.0060.01217.10
7.2.130.0120.00416.66
7.2.120.0080.00417.11
7.2.110.0100.00716.98
7.2.100.0100.01017.23
7.2.90.0030.01216.95
7.2.80.0090.00317.24
7.2.70.0040.01216.93
7.2.60.0130.00017.10
7.2.50.0070.00717.21
7.2.40.0130.00616.95
7.2.30.0080.00816.93
7.2.20.0110.00317.14
7.2.10.0000.01517.15
7.2.00.0030.00916.86
7.1.330.0080.00515.74
7.1.320.0030.01215.78
7.1.310.0060.01016.16
7.1.300.0050.00815.88
7.1.290.0070.00515.87
7.1.280.0060.00615.86
7.1.270.0050.00515.88
7.1.260.0020.01015.85
7.1.250.0120.00016.06
7.1.240.0060.00916.09
7.1.230.0070.00715.57
7.1.220.0160.00315.64
7.1.210.0060.00915.98
7.1.200.0070.00215.90
7.1.190.0040.01115.88
7.1.180.0030.00716.07
7.1.170.0120.00315.58
7.1.160.0070.00716.08
7.1.150.0040.01115.89
7.1.140.0070.00715.73
7.1.130.0030.01015.71
7.1.120.0090.00315.99
7.1.110.0030.00715.84
7.1.100.0060.00616.99
7.1.90.0100.00316.07
7.1.80.0060.00315.77
7.1.70.0050.00516.64
7.1.60.0090.01017.79
7.1.50.0070.01316.61
7.1.40.0000.01315.97
7.1.30.0000.01615.93
7.1.20.0060.00915.96
7.1.10.0070.00715.65
7.1.00.0030.04319.04
7.0.330.0090.00015.71
7.0.320.0070.00715.46
7.0.310.0060.00315.41
7.0.300.0090.00615.31
7.0.290.0000.01015.71
7.0.280.0080.00815.28
7.0.270.0030.00915.54
7.0.260.0060.00615.50
7.0.250.0030.00915.40
7.0.240.0030.00615.61
7.0.230.0030.01015.62
7.0.220.0030.00715.32
7.0.210.0070.00715.77
7.0.200.0020.00916.23
7.0.190.0040.00815.51
7.0.180.0070.00315.59
7.0.170.0000.01115.47
7.0.160.0080.00415.70
7.0.150.0060.00915.30
7.0.140.0030.04018.81
7.0.130.0080.00415.42
7.0.120.0110.00315.69
7.0.110.0060.02218.74
7.0.100.0060.02018.63
7.0.90.0050.03518.66
7.0.80.0030.02318.51
7.0.70.0050.02818.47
7.0.60.0020.02818.64
7.0.50.0060.03818.74
7.0.40.0080.03016.88
7.0.30.0070.02316.87
7.0.20.0030.02516.92
7.0.10.0030.02416.83
7.0.00.0030.02716.81
5.6.400.0060.00913.97
5.6.390.0080.00314.46
5.6.380.0080.00414.27
5.6.370.0000.01414.21
5.6.360.0070.00714.74
5.6.350.0100.00314.39
5.6.340.0070.00714.34
5.6.330.0070.00714.02
5.6.320.0050.00314.32
5.6.310.0080.00514.57
5.6.300.0070.01014.39
5.6.290.0000.01513.98
5.6.280.0050.03817.76
5.6.270.0120.00414.79
5.6.260.0080.02117.51
5.6.250.0050.02717.29
5.6.240.0050.03517.40
5.6.230.0050.02317.59
5.6.220.0010.03917.58
5.6.210.0110.02017.36
5.6.200.0080.03717.65
5.6.190.0090.01817.70
5.6.180.0050.02517.85
5.6.170.0050.03217.83
5.6.160.0030.02317.68
5.6.150.0040.02917.70
5.6.140.0050.03717.74
5.6.130.0030.02617.65
5.6.120.0020.02717.52
5.6.110.0030.02617.76
5.6.100.0030.04217.62
5.6.90.0020.03717.58
5.6.80.0020.02517.45
5.6.70.0060.02317.34
5.6.60.0050.02217.31
5.6.50.0080.03317.50
5.6.40.0080.03317.35
5.6.30.0040.02417.27
5.6.20.0050.03817.20
5.6.10.0030.04017.23
5.6.00.0100.03817.40
5.5.380.0060.03017.42
5.5.370.0030.03017.44
5.5.360.0040.02417.07
5.5.350.0030.02917.24
5.5.340.0040.02517.38
5.5.330.0030.02417.74
5.5.320.0010.03317.39
5.5.310.0020.02917.66
5.5.300.0000.02717.36
5.5.290.0060.02117.60
5.5.280.0040.02617.44
5.5.270.0030.04017.54
5.5.260.0070.02317.67
5.5.250.0030.02217.25
5.5.240.0020.03017.06
5.5.230.0070.02017.15
5.5.220.0070.03317.30
5.5.210.0030.02217.22
5.5.200.0000.02517.32
5.5.190.0060.04117.25
5.5.180.0080.03817.12
5.5.170.0100.00714.27
5.5.160.0110.03617.13
5.5.150.0050.04517.26
5.5.140.0040.04317.19
5.5.130.0100.03817.27
5.5.120.0070.03817.12
5.5.110.0070.02617.15
5.5.100.0030.04417.13
5.5.90.0030.04117.22
5.5.80.0040.04417.18
5.5.70.0030.04317.24
5.5.60.0090.02017.08
5.5.50.0030.04517.00
5.5.40.0050.03717.13
5.5.30.0070.03717.23
5.5.20.0020.02917.14
5.5.10.0070.04017.05
5.5.00.0080.03816.92
5.4.450.0020.02415.49
5.4.440.0010.02315.44
5.4.430.0040.02215.39
5.4.420.0090.01815.33
5.4.410.0050.01815.34
5.4.400.0030.02015.16
5.4.390.0020.02615.32
5.4.380.0050.01815.17
5.4.370.0000.02915.32
5.4.360.0030.02315.15
5.4.350.0000.03015.17
5.4.340.0050.03715.18
5.4.330.0000.01211.33
5.4.320.0060.04015.29
5.4.310.0020.04315.32
5.4.300.0030.04015.30
5.4.290.0100.03515.15
5.4.280.0100.02015.32
5.4.270.0030.03815.25
5.4.260.0040.03715.34
5.4.250.0040.03915.32
5.4.240.0050.03015.14
5.4.230.0030.04115.33
5.4.220.0020.02515.32
5.4.210.0050.03315.18
5.4.200.0020.04015.33
5.4.190.0030.03815.19
5.4.180.0020.02715.16
5.4.170.0020.04215.25
5.4.160.0090.03715.15
5.4.150.0050.03615.27
5.4.140.0000.03713.92
5.4.130.0050.03613.81
5.4.120.0020.02513.82
5.4.110.0030.02513.94
5.4.100.0030.03913.96
5.4.90.0050.03813.91
5.4.80.0050.03813.96
5.4.70.0010.03913.87
5.4.60.0080.03613.81
5.4.50.0060.01813.86
5.4.40.0020.03013.81
5.4.30.0010.03913.81
5.4.20.0040.03713.88
5.4.10.0050.02413.78
5.4.00.0020.03813.67
5.3.290.0050.03313.01
5.3.280.0020.03812.96
5.3.270.0000.04212.95
5.3.260.0030.03912.89
5.3.250.0060.03013.01
5.3.240.0050.02313.03
5.3.230.0050.03512.96
5.3.220.0050.03812.95
5.3.210.0070.03713.01
5.3.200.0050.04013.06
5.3.190.0020.04313.01
5.3.180.0000.03412.99
5.3.170.0020.02713.06
5.3.160.0030.02412.97
5.3.150.0010.02613.01
5.3.140.0070.01912.94
5.3.130.0020.02512.96
5.3.120.0020.04413.01
5.3.110.0030.04012.94
5.3.100.0020.04212.76
5.3.90.0020.02812.68
5.3.80.0050.03312.67
5.3.70.0030.03312.67
5.3.60.0030.03312.66
5.3.50.0020.03412.65
5.3.40.0050.02412.65
5.3.30.0030.02312.63
5.3.20.0020.04012.62
5.3.10.0030.04012.42
5.3.00.0020.03512.49
5.2.170.0070.06013.13
5.2.160.0100.05313.13
5.2.150.0000.06313.13
5.2.140.0030.06313.13
5.2.130.0070.05713.13
5.2.120.0070.05313.13
5.2.110.0000.03313.13
5.2.100.0030.06013.13
5.2.90.0000.04713.13
5.2.80.0030.06313.13
5.2.70.0030.04013.13
5.2.60.0030.05713.13
5.2.50.0000.05713.13
5.2.40.0000.06013.13
5.2.30.0030.06313.13
5.2.20.0030.06013.13
5.2.10.0000.05713.13
5.2.00.0030.05713.13
5.1.60.0000.05313.13
5.1.50.0030.05013.13
5.1.40.0070.05313.13
5.1.30.0000.06313.13
5.1.20.0030.03713.13
5.1.10.0100.04013.13
5.1.00.0070.04313.13
5.0.50.0030.02013.13
5.0.40.0030.03013.13
5.0.30.0000.03713.13
5.0.20.0000.03013.13
5.0.10.0030.04013.13
5.0.00.0030.06713.13
4.4.90.0000.02313.13
4.4.80.0030.03313.13
4.4.70.0000.03013.13
4.4.60.0000.03313.13
4.4.50.0000.03313.13
4.4.40.0030.05313.13
4.4.30.0000.03313.13
4.4.20.0000.03713.13
4.4.10.0000.02313.13
4.4.00.0000.04713.13
4.3.110.0000.02713.13
4.3.100.0000.03313.13
4.3.90.0070.02313.13
4.3.80.0000.04713.13
4.3.70.0000.03713.13
4.3.60.0000.03713.13
4.3.50.0030.03313.13
4.3.40.0030.05313.13
4.3.30.0000.03713.13
4.3.20.0000.03313.13
4.3.10.0000.03713.13
4.3.00.0000.03313.13

preferences:
42.79 ms | 401 KiB | 5 Q