3v4l.org

run code in 300+ PHP versions simultaneously
<?php $buffer = <<<XML <tr> <td>http://www.example.co.uk/the-view-from-22/feed/</td> <td>Example Blogs » The View from 22 » Example Blogs</td> <td>http://blogs.example.co.uk/</td> <td><![CDATA[Listen: The Example&rsquo;s verdict on the debate]]></td> <td>http://blogs.example.co.uk/coffeehouse/2015/04/podcast-special-the-debate/</td> </tr> XML; $xml = simplexml_load_string($buffer); $xml->asXML('php://output'); $doc = new DOMDocument(); $doc->presverWhitespace = false; $doc->formatOutput = true; $xml = $xml->asXML(); $xml = str_replace('&rsquo;', '&#8217;', $xml); $doc->loadXML($xml); $doc->save('php://output');

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.0160.00016.75
8.3.60.0120.00617.00
8.3.50.0130.00822.12
8.3.40.0150.00619.21
8.3.30.0160.00019.52
8.3.20.0080.00020.52
8.3.10.0040.00422.10
8.3.00.0030.00519.63
8.2.190.0090.00916.73
8.2.180.0110.00417.13
8.2.170.0050.01022.96
8.2.160.0100.00722.51
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0140.00026.16
8.2.120.0040.00419.89
8.2.110.0030.00621.03
8.2.100.0100.00318.03
8.2.90.0050.00318.16
8.2.80.0040.00418.29
8.2.70.0000.00917.93
8.2.60.0000.00818.34
8.2.50.0000.00818.10
8.2.40.0000.00919.60
8.2.30.0040.00418.34
8.2.20.0040.00418.04
8.2.10.0040.00418.39
8.2.00.0040.00418.00
8.1.280.0120.00925.92
8.1.270.0030.00618.94
8.1.260.0050.00526.35
8.1.250.0040.00428.09
8.1.240.0080.00024.04
8.1.230.0060.00622.86
8.1.220.0000.00817.91
8.1.210.0000.00818.91
8.1.200.0050.00517.60
8.1.190.0080.00017.48
8.1.180.0050.00318.10
8.1.170.0090.00018.75
8.1.160.0040.00422.20
8.1.150.0000.00819.08
8.1.140.0000.00717.65
8.1.130.0030.00318.10
8.1.120.0040.00417.77
8.1.110.0030.00517.59
8.1.100.0000.00717.69
8.1.90.0000.00717.67
8.1.80.0050.00217.56
8.1.70.0030.00317.71
8.1.60.0030.00517.85
8.1.50.0080.00017.77
8.1.40.0040.00417.77
8.1.30.0000.00817.91
8.1.20.0040.00417.94
8.1.10.0060.00317.77
8.1.00.0000.00817.77
8.0.300.0000.00819.88
8.0.290.0090.00017.00
8.0.280.0000.00718.63
8.0.270.0040.00417.43
8.0.260.0060.00017.52
8.0.250.0000.00717.25
8.0.240.0000.00717.13
8.0.230.0030.00317.23
8.0.220.0030.00317.04
8.0.210.0070.00017.20
8.0.200.0040.00417.32
8.0.190.0060.00317.27
8.0.180.0040.00417.22
8.0.170.0030.00617.23
8.0.160.0080.00017.19
8.0.150.0000.00817.20
8.0.140.0040.00417.02
8.0.130.0060.00013.61
8.0.120.0030.00517.25
8.0.110.0000.01017.09
8.0.100.0000.00917.11
8.0.90.0000.00817.25
8.0.80.0030.02117.16
8.0.70.0040.00417.26
8.0.60.0040.00417.16
8.0.50.0000.00717.24
8.0.30.0110.00917.27
8.0.20.0170.01017.40
8.0.10.0000.00717.24
8.0.00.0040.01217.02
7.4.330.0050.00015.22
7.4.320.0050.00216.67
7.4.300.0040.00416.64
7.4.290.0040.00416.86
7.4.280.0000.00716.66
7.4.270.0000.00716.61
7.4.260.0040.00716.64
7.4.250.0040.00416.82
7.4.240.0020.00516.66
7.4.230.0000.00716.93
7.4.220.0090.00916.91
7.4.210.0070.00716.83
7.4.200.0050.00216.86
7.4.160.0110.00416.97
7.4.150.0140.00817.40
7.4.140.0060.01417.86
7.4.130.0080.01116.68
7.4.120.0060.01516.87
7.4.110.0150.00416.73
7.4.100.0100.00716.69
7.4.90.0070.01116.66
7.4.80.0090.01219.39
7.4.70.0090.00916.72
7.4.60.0080.00816.86
7.4.50.0050.00016.87
7.4.40.0100.00716.63
7.4.30.0190.00316.81
7.4.00.0030.01215.16
7.3.330.0050.00013.25
7.3.320.0070.00813.46
7.3.310.0030.00316.47
7.3.300.0000.00716.55
7.3.290.0100.00516.60
7.3.280.0060.01116.57
7.3.270.0110.00617.40
7.3.260.0130.00316.76
7.3.250.0100.00716.73
7.3.240.0110.00716.57
7.3.230.0110.00716.46
7.3.210.0080.00916.70
7.3.200.0070.01019.39
7.3.190.0100.00616.64
7.3.180.0040.01116.91
7.3.170.0110.00716.63
7.3.160.0030.01316.68
7.2.330.0060.01316.94
7.2.320.0140.00716.64
7.2.310.0060.01316.53
7.2.300.0030.01316.74
7.2.290.0200.00316.88
7.2.60.0100.00616.95
7.2.00.0200.00718.95
7.1.200.0060.00915.69
7.1.100.0060.00918.11
7.1.70.0000.00717.30
7.1.60.0030.00919.46
7.1.50.0200.01734.66
7.1.00.0130.08022.59
7.0.200.0040.00416.63
7.0.140.0030.03322.13
7.0.60.0030.06020.13
7.0.50.0100.08717.97
7.0.40.0030.09020.43
7.0.30.0330.07020.24
7.0.20.0200.04720.28
7.0.10.0100.07020.28
7.0.00.0130.06020.25
5.6.280.0070.07020.96
5.6.210.0000.04320.87
5.6.200.0070.07718.26
5.6.190.0170.07720.70
5.6.180.0400.04320.37
5.6.170.0130.06720.52
5.6.160.0070.08720.59
5.6.150.0130.06718.31
5.6.140.0100.07318.26
5.6.130.0100.08018.29
5.6.120.0100.03721.20
5.6.110.0100.08021.17
5.6.100.0070.08321.17
5.6.90.0100.05721.22
5.6.80.0130.03320.55
5.5.350.0330.04720.39
5.5.340.0100.07018.09
5.5.330.0070.05720.15
5.5.320.3270.04320.36
5.5.310.0300.07020.39
5.5.300.0130.07318.08
5.5.290.0030.08018.06
5.5.280.0070.03720.78
5.5.270.0200.07020.98
5.5.260.0170.07320.88
5.5.250.0000.04720.79
5.5.240.0100.07020.29
5.4.450.0730.08719.67
5.4.440.0630.06319.32
5.4.430.0700.05319.33
5.4.420.0070.07719.71
5.4.410.0200.04319.43
5.4.400.0230.06318.76
5.4.390.0100.06318.57
5.4.380.0130.06018.73
5.4.370.0200.05318.86
5.4.360.0170.05318.77
5.4.350.0230.05318.71
5.4.340.0330.07318.82
5.4.320.0200.05318.74
5.4.310.0170.05318.86
5.4.300.0030.06718.69
5.4.290.0100.05718.82
5.4.280.0130.05718.69
5.4.270.0170.06018.70
5.4.260.0200.05018.57
5.4.250.0100.06318.77
5.4.240.0170.06718.70
5.4.230.0170.05318.80
5.4.220.0300.05318.85
5.4.210.0230.05318.65
5.4.200.0170.05316.48
5.4.190.0170.05318.76
5.4.180.0200.05718.56
5.4.170.0170.07718.78
5.4.160.0270.06018.78
5.4.150.0270.04018.76
5.4.140.0200.05016.38
5.4.130.0170.05016.36
5.4.120.0200.05016.45
5.4.110.0270.04016.16
5.4.100.0230.05716.39
5.4.90.0270.06016.17
5.4.80.0170.05316.34
5.4.70.0200.05016.30
5.4.60.0100.05716.34
5.4.50.0130.05016.38
5.4.40.0030.06316.09
5.4.30.0170.05316.14
5.4.20.0170.05316.33
5.4.10.0300.05016.11
5.4.00.0030.06015.70
5.3.290.0170.05314.76
5.3.280.0200.05014.70
5.3.270.0270.05714.78
5.3.260.0200.05714.83
5.3.250.0170.07014.75
5.3.240.0100.06714.84
5.3.230.0170.06014.73
5.3.220.0230.05014.59
5.3.210.0100.06014.77
5.3.200.0200.05714.69
5.3.190.0200.05014.61
5.3.180.0200.05014.68
5.3.170.0200.04714.55
5.3.160.0200.04714.68
5.3.150.0230.04314.74
5.3.140.0130.05314.78
5.3.130.0100.06014.67
5.3.120.0130.05714.55
5.3.110.0230.04714.73
5.3.100.0270.04714.04
5.3.90.0070.06014.14
5.3.80.0130.05314.06
5.3.70.0130.05314.25
5.3.60.0100.06014.18
5.3.50.0270.04314.04
5.3.40.0170.04714.06
5.3.30.0170.04714.14
5.3.20.0200.04313.76
5.3.10.0100.05713.88
5.3.00.0170.05013.81
5.2.170.0070.04711.42
5.2.160.0170.03711.25
5.2.150.0170.03711.18
5.2.140.0130.04011.45
5.2.130.0100.04011.26
5.2.120.0130.04311.25
5.2.110.0170.03311.29
5.2.100.0170.03711.30
5.2.90.0100.04311.23
5.2.80.0100.04311.15
5.2.70.0200.03711.27
5.2.60.0070.04311.29
5.2.50.0130.04011.31
5.2.40.0030.05011.04
5.2.30.0100.04311.10
5.2.20.0270.04011.25
5.2.10.0100.04011.00
5.2.00.0070.04310.91
5.1.60.0100.03310.10
5.1.50.0130.03710.29
5.1.40.0030.04310.10
5.1.30.0170.03010.54
5.1.20.0100.04010.61
5.1.10.0130.03310.29
5.1.00.0100.05310.32
5.0.50.0030.0338.74
5.0.40.0100.0238.64
5.0.30.0030.0478.42
5.0.20.0200.0278.28
5.0.10.0030.0308.50
5.0.00.0030.0438.25
4.4.90.0030.0235.92
4.4.80.0070.0205.96
4.4.70.0100.0175.84
4.4.60.0070.0205.84
4.4.50.0030.0235.95
4.4.40.0030.0375.89
4.4.30.0070.0205.95
4.4.20.0030.0236.00
4.4.10.0030.0235.96
4.4.00.0030.0335.94
4.3.110.0170.0105.89
4.3.100.0030.0235.84
4.3.90.0130.0205.86
4.3.80.0070.0335.86
4.3.70.0100.0235.85
4.3.60.0070.0205.84
4.3.50.0070.0205.79
4.3.40.0070.0305.77
4.3.30.0000.0274.60
4.3.20.0030.0234.58
4.3.10.0100.0174.50
4.3.00.0070.0237.20

preferences:
45.98 ms | 401 KiB | 5 Q