3v4l.org

run code in 500+ PHP versions simultaneously
<?php $xml = <<<EOT <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"> <url> <loc>https://subdomain.example.com</loc> <priority>1.0</priority> <changefreq>always</changefreq> </url> <url> <loc>https://subdomain.example.com/s/queen-katwe-2016-720p-hd-480p-hd/</loc> <priority>1.0</priority> <changefreq>always</changefreq> </url><url> <loc>https://subdomain.example.com/s/justice-league-dark-2017-720p-hd-480p-hd/</loc> <priority>1.0</priority> <changefreq>always</changefreq> </url><url> <loc>https://subdomain.example.com/s/edge-seventeen-2016-720p-hd-480p-hd/</loc> <priority>1.0</priority> <changefreq>always</changefreq> </url></urlset> EOT; $dom = new DOMDocument; $dom->loadXML($xml); foreach($dom->getElementsByTagName('loc') as $node) { if ((XML_ELEMENT_NODE === $node->nodeType) && ('loc' === $node->nodeName)){ $node->nodeValue = mb_strimwidth($node->nodeValue, 0, 15); } } echo $dom->saveHTML();

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.5.70.0120.00517.14
8.5.60.0080.00617.04
8.5.50.0070.01018.89
8.5.30.0120.00717.88
8.5.20.0100.00819.61
8.5.10.0080.00920.53
8.5.00.0180.01022.21
8.4.180.0130.01019.85
8.4.170.0110.01220.70
8.4.160.0040.00623.53
8.4.150.0080.00517.09
8.4.140.0100.01117.70
8.4.130.0110.00918.13
8.4.120.0050.00620.65
8.4.110.0090.01122.56
8.4.100.0090.01220.78
8.4.90.0100.00619.11
8.4.80.0110.01019.97
8.4.70.0090.01118.44
8.4.60.0070.00218.88
8.4.50.0030.00618.05
8.4.40.0170.00319.96
8.4.30.0080.00819.05
8.4.20.0100.01017.93
8.4.10.0160.00622.20
8.3.300.0080.01321.18
8.3.290.0150.00521.07
8.3.280.0110.00918.62
8.3.270.0080.01216.80
8.3.260.0110.00816.72
8.3.250.0110.01019.28
8.3.240.0030.00516.82
8.3.230.0130.00716.77
8.3.220.0140.00517.71
8.3.210.0090.00617.07
8.3.200.0050.00616.98
8.3.190.0080.01117.68
8.3.180.0130.00818.71
8.3.170.0040.01421.09
8.3.160.0110.00717.66
8.3.150.0110.00719.17
8.3.140.0100.00017.08
8.3.130.0030.00618.66
8.3.120.0070.01121.04
8.3.110.0070.01020.94
8.3.100.0080.00018.80
8.3.90.0040.00418.76
8.3.80.0070.00317.00
8.3.70.0080.00817.13
8.3.60.0030.01218.93
8.3.50.0120.00618.54
8.3.40.0070.00720.60
8.3.30.0070.00719.09
8.3.20.0060.00324.18
8.3.10.0000.01024.66
8.3.00.0080.00026.16
8.2.300.0120.00920.60
8.2.290.0050.00720.90
8.2.280.0120.00820.44
8.2.270.0150.00317.43
8.2.260.0000.01018.59
8.2.250.0090.00917.07
8.2.240.0110.00819.20
8.2.230.0050.00522.58
8.2.220.0080.00424.06
8.2.210.0030.00526.77
8.2.200.0040.00417.13
8.2.190.0090.00616.88
8.2.180.0040.01425.92
8.2.170.0120.00619.32
8.2.160.0130.00322.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00426.16
8.2.110.0070.01120.66
8.2.100.0070.00718.09
8.2.90.0030.00518.00
8.2.80.0060.00319.91
8.2.70.0000.00917.74
8.2.60.0040.00417.75
8.2.50.0090.00018.04
8.2.40.0040.00420.13
8.2.30.0030.00618.23
8.2.20.0040.00419.52
8.2.10.0000.00818.48
8.2.00.0040.00419.64
8.1.340.0130.00820.02
8.1.330.0100.00822.03
8.1.320.0140.00616.69
8.1.310.0080.00017.01
8.1.300.0000.00820.37
8.1.290.0090.00030.84
8.1.280.0090.00625.92
8.1.270.0000.00724.66
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0060.00624.11
8.1.230.0060.00621.11
8.1.220.0050.00317.93
8.1.210.0050.00318.77
8.1.200.0060.00317.73
8.1.190.0040.00417.63
8.1.180.0040.00418.10
8.1.170.0000.00818.02
8.1.160.0000.00719.21
8.1.150.0050.00319.03
8.1.140.0040.00417.92
8.1.130.0070.00019.21
8.1.120.0040.00417.90
8.1.110.0000.00717.85
8.1.100.0100.00017.76
8.1.90.0110.00617.81
8.1.80.0120.00617.76
8.1.70.0120.00517.83
8.1.60.0110.00717.94
8.1.50.0160.00217.89
8.1.40.0090.00917.91
8.1.30.0170.00218.02
8.1.20.0060.01218.08
8.1.10.0170.00317.89
8.1.00.0170.00317.80
8.0.300.0000.00821.92
8.0.290.0000.00717.25
8.0.280.0030.00318.91
8.0.270.0030.00317.23
8.0.260.0030.00318.85
8.0.250.0070.00017.37
8.0.240.0000.00717.27
8.0.230.0070.00817.28
8.0.220.0150.00317.31
8.0.210.0150.00017.33
8.0.200.0150.00017.40
8.0.190.0160.00017.22
8.0.180.0120.00417.27
8.0.170.0130.00317.20
8.0.160.0060.01017.31
8.0.150.0090.00617.34
8.0.140.0130.00317.27
8.0.130.0110.00417.23
8.0.120.0080.00817.29
8.0.110.0070.00717.34
8.0.100.0120.00317.26
8.0.90.0060.01017.18
8.0.80.0130.00417.29
8.0.70.0080.00817.23
8.0.60.0150.00017.16
8.0.50.0070.00717.28
8.0.30.0160.00017.30
8.0.20.0170.00017.26
8.0.10.0030.01017.36
7.4.330.0000.00515.55
7.4.320.0000.00716.90
7.4.300.0190.00016.92
7.4.290.0040.00916.80
7.4.280.0120.00316.90
7.4.270.0100.00617.00
7.4.260.0120.00316.93
7.4.250.0130.00416.82
7.4.240.0100.00716.92
7.4.230.0180.00016.90
7.4.220.0110.00516.81
7.4.210.0080.00816.70
7.4.200.0040.01116.88
7.4.190.0120.00316.98
7.4.180.0060.00917.03
7.4.160.0080.00617.08
7.4.150.0120.00316.70
7.4.140.0090.00616.78
7.4.130.0160.00016.82
7.4.120.0160.00016.79
7.4.110.0090.00616.85
7.4.100.0110.00516.97
7.4.90.0130.00316.85
7.4.80.0100.00716.83
7.4.70.0110.00416.87
7.4.60.0070.00716.79
7.4.50.0100.00316.71
7.4.40.0150.00016.55
7.4.30.0080.00816.79
7.4.20.0070.00716.83
7.4.10.0100.00516.69
7.4.00.0110.00016.80

preferences:
41 ms | 1377 KiB | 5 Q