3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<EOD <?xml version="1.0" encoding="UTF-8"?> <rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" version="2.0"> <channel> <title> <![CDATA[ Cermati RSS ]]> </title> <description> <![CDATA[ Artikel Finansial terbaru dari Cermati.com ]]> </description> <link>https://www.cermati.com</link> <image> <url>https://www.cermati.com/favicon-32x32.png</url> <title>Cermati RSS</title> <link>https://www.cermati.com</link> </image> <generator>RSS for Node</generator> <lastBuildDate>Mon, 25 Jan 2016 17:46:25 GMT</lastBuildDate> <atom:link href="https://www.cermati.com/rss" rel="self" type="application/rss+xml"/> <author> <![CDATA[ Cermati Content Team ]]> </author> <language> <![CDATA[ id ]]> </language> <ttl>240</ttl> <item> <title> <![CDATA[ 12 Cara Mudah Menghemat Air di Rumah Anda ]]> </title> <description> <![CDATA[ Tidak cuma listrik, dalam kehidupan di rumah, air juga perlu dihemat. Selain untuk menghemat pengeluaran, hal ini juga berfungsi untuk melindungi lingkungan. ]]> </description> <link> https://www.cermati.com/artikel/12-cara-mudah-menghemat-air-di-rumah-anda </link> <guid isPermaLink="true"> https://www.cermati.com/artikel/12-cara-mudah-menghemat-air-di-rumah-anda </guid> <category> <![CDATA[ Rumah ]]> </category> <category> <![CDATA[ Kebutuhan ]]> </category> <category> <![CDATA[ Hidup Hemat ]]> </category> <category> <![CDATA[ Tips Berhemat ]]> </category> <category> <![CDATA[ Air ]]> </category> <dc:creator> <![CDATA[ Rizki Abadi ]]> </dc:creator> <pubDate>Mon, 25 Jan 2016 05:00:00 GMT</pubDate> <media:content medium="media.medium" href="<img src='http://res.cloudinary.com/cermati/image/upload/c_fill,h_300,w_300/ctjaru9g6c7lowxifxol' height='300' width='300'/>" height="300" width="300"> <media:thumbnail medium="media.thumb.medium" href="<img src='http://res.cloudinary.com/cermati/image/upload/c_thumb,h_120,w_120/ctjaru9g6c7lowxifxol' height='120' width='120'/>" height="120" width="120"/> </media:content> </item> </channel> </rss> EOD; $sxe = new SimpleXMLElement($xml); $sxe->registerXPathNamespace('c', 'http://example.org/chapter-title'); $result = $sxe->xpath('//c:title'); foreach ($result as $title) { echo $title . "\n"; }

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.0090.01218.52
8.3.50.0030.01621.97
8.3.40.0040.01119.17
8.3.30.0110.00419.05
8.3.20.0000.00720.78
8.3.10.0060.00320.88
8.3.00.0080.00022.14
8.2.180.0160.00617.13
8.2.170.0070.00722.96
8.2.160.0100.00319.54
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0050.00321.61
8.2.120.0040.00426.35
8.2.110.0030.00919.57
8.2.100.0120.00017.91
8.2.90.0000.00817.93
8.2.80.0060.00318.19
8.2.70.0000.00917.72
8.2.60.0060.00318.18
8.2.50.0040.00418.18
8.2.40.0040.00420.71
8.2.30.0040.00419.69
8.2.20.0030.00517.86
8.2.10.0000.00918.47
8.2.00.0030.00618.23
8.1.280.0070.00725.92
8.1.270.0090.00622.36
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0110.00022.32
8.1.230.0110.00021.22
8.1.220.0000.00818.01
8.1.210.0030.00519.25
8.1.200.0060.00317.47
8.1.190.0040.00417.35
8.1.180.0030.00618.10
8.1.170.0050.00518.76
8.1.160.0000.00721.05
8.1.150.0000.00819.19
8.1.140.0000.00819.81
8.1.130.0000.00817.89
8.1.120.0040.00417.61
8.1.110.0020.00517.61
8.1.100.0030.00617.59
8.1.90.0030.00517.72
8.1.80.0000.00817.77
8.1.70.0040.00417.68
8.1.60.0080.00417.74
8.1.50.0040.00417.73
8.1.40.0030.00517.70
8.1.30.0030.00617.86
8.1.20.0090.00017.75
8.1.10.0040.00417.86
8.1.00.0000.00817.66
8.0.300.0030.00520.13
8.0.290.0040.00417.00
8.0.280.0040.00418.48
8.0.270.0000.00717.56
8.0.260.0050.00217.40
8.0.250.0040.00417.21
8.0.240.0030.00317.21
8.0.230.0080.00017.13
8.0.220.0040.00417.20
8.0.210.0040.00417.24
8.0.200.0060.00017.27
8.0.190.0040.00417.21
8.0.180.0000.00817.02
8.0.170.0040.00417.09
8.0.160.0040.00417.11
8.0.150.0000.00717.15
8.0.140.0000.00716.93
8.0.130.0000.00713.59
8.0.120.0080.00017.11
8.0.110.0070.00017.20
8.0.100.0050.00217.00
8.0.90.0070.00017.00
8.0.80.0070.00717.04
8.0.70.0030.00617.21
8.0.60.0080.00017.16
8.0.50.0000.00717.19
8.0.30.0080.00917.43
8.0.20.0140.00717.40
8.0.10.0030.00517.25
8.0.00.0090.01116.95
7.4.330.0020.00217.10
7.4.320.0030.00516.68
7.4.300.0060.00016.73
7.4.290.0000.00816.68
7.4.280.0030.00616.87
7.4.270.0030.00316.79
7.4.260.0040.00416.70
7.4.250.0040.00416.83
7.4.240.0000.00816.92
7.4.230.0000.00716.58
7.4.220.0070.01316.81
7.4.210.0110.00516.83
7.4.200.0040.00416.74
7.4.160.0000.01716.69
7.4.150.0120.01217.40
7.4.140.0120.01017.86
7.4.130.0100.00916.79
7.4.120.0120.00616.74
7.4.110.0100.01416.84
7.4.100.0100.01016.70
7.4.90.0110.00616.89
7.4.80.0030.01619.39
7.4.70.0130.00416.71
7.4.60.0110.00716.78
7.4.50.0040.01116.61
7.4.40.0100.01016.55
7.4.30.0060.01216.58
7.4.10.0080.00914.89
7.4.00.0070.01115.02
7.3.330.0030.00313.54
7.3.320.0050.00013.54
7.3.310.0030.00316.59
7.3.300.0000.00716.52
7.3.290.0070.00016.54
7.3.280.0090.00916.52
7.3.270.0100.00717.40
7.3.260.0150.00416.58
7.3.250.0090.00916.77
7.3.240.0100.00716.76
7.3.230.0130.00416.73
7.3.210.0140.00416.75
7.3.200.0110.00716.45
7.3.190.0070.01016.68
7.3.180.0080.00916.53
7.3.170.0210.00016.58
7.3.160.0130.00316.75
7.3.130.0030.01314.63
7.3.120.0060.00914.84
7.3.110.0030.01314.95
7.3.100.0040.00814.88
7.3.90.0090.00015.18
7.3.80.0080.00414.99
7.3.70.0100.00314.74
7.3.60.0060.01014.83
7.3.50.0060.00614.99
7.3.40.0080.00614.99
7.3.30.0060.00614.84
7.3.20.0090.00616.98
7.3.10.0060.00816.54
7.3.00.0070.00716.65
7.2.330.0120.00716.86
7.2.320.0060.01616.56
7.2.310.0150.00916.54
7.2.300.0140.00416.77
7.2.290.0070.01016.80
7.2.260.0060.01214.78
7.2.250.0060.00615.15
7.2.240.0070.01015.08
7.2.230.0030.00915.06
7.2.220.0110.00414.84
7.2.210.0100.00315.05
7.2.200.0070.00715.07
7.2.190.0100.00614.98
7.2.180.0080.00415.13
7.2.170.0060.00815.04
7.2.160.0060.00915.02
7.2.150.0040.01216.84
7.2.140.0030.00716.83
7.2.130.0080.00516.92
7.2.120.0080.00616.78
7.2.110.0090.00216.80
7.2.100.0040.00716.79
7.2.90.0120.00316.85
7.2.80.0060.00916.89
7.2.70.0090.00316.66
7.2.60.0060.01016.93
7.2.50.0040.01016.94
7.2.40.0030.00917.10
7.2.30.0060.00916.91
7.2.20.0040.01016.85
7.2.10.0030.00616.92
7.2.00.0080.00917.53
7.1.330.0000.01415.82
7.1.320.0040.00715.57
7.1.310.0030.01015.99
7.1.300.0060.00915.79
7.1.290.0060.00615.80
7.1.280.0060.00615.71
7.1.270.0070.00715.79
7.1.260.0000.01015.75
7.1.250.0050.00815.75
7.1.240.0060.00315.69
7.1.230.0030.00915.83
7.1.220.0000.01315.64
7.1.210.0130.00015.71
7.1.200.0050.00515.82
7.1.190.0070.01015.67
7.1.180.0080.00815.80
7.1.170.0100.00315.73
7.1.160.0070.00715.73
7.1.150.0000.01315.74
7.1.140.0060.00915.98
7.1.130.0080.00315.79
7.1.120.0030.00916.03
7.1.110.0030.01315.86
7.1.100.0050.00916.91
7.1.90.0070.00715.78
7.1.80.0030.01415.92
7.1.70.0050.00916.60
7.1.60.0050.01417.68
7.1.50.0050.01116.45
7.1.40.0040.01115.96
7.1.30.0130.00315.86
7.1.20.0090.00915.98
7.1.10.0030.01015.62
7.1.00.0080.04019.20
7.0.330.0040.00415.48
7.0.320.0090.00315.63
7.0.310.0120.00015.41
7.0.300.0060.00615.23
7.0.290.0100.00315.52
7.0.280.0030.01015.39
7.0.270.0040.00815.48
7.0.260.0030.00715.30
7.0.250.0070.01015.54
7.0.240.0060.00615.54
7.0.230.0070.00715.54
7.0.220.0000.02015.30
7.0.210.0030.01315.34
7.0.200.0150.00815.08
7.0.190.0080.00815.43
7.0.180.0070.01015.49
7.0.170.0030.00715.45
7.0.160.0120.00615.60
7.0.150.0000.00915.57
7.0.140.0000.01215.48
7.0.130.0070.01015.80
7.0.120.0030.01415.56
7.0.110.0070.00715.63
7.0.100.0090.00615.24
7.0.90.0000.00815.49
7.0.80.0030.01015.21
7.0.70.0070.00715.23
7.0.60.0080.02417.83
7.0.50.0110.04116.82
7.0.40.0120.04016.82
7.0.30.0150.02416.96
7.0.20.0130.04416.91
7.0.10.0020.05016.89
7.0.00.0080.03716.96
5.6.400.0060.00614.67
5.6.390.0070.01014.35
5.6.380.0000.01714.42
5.6.370.0130.00014.56
5.6.360.0030.01414.13
5.6.350.0070.00714.51
5.6.340.0040.00414.89
5.6.330.0060.00614.51
5.6.320.0000.01414.50
5.6.310.0070.01314.52
5.6.300.0030.00614.55
5.6.290.0000.01814.65
5.6.280.0060.01817.76
5.6.270.0090.00314.16
5.6.260.0030.01014.69
5.6.250.0110.00314.21
5.6.240.0060.00614.21
5.6.230.0070.00714.51
5.6.220.0000.01414.36
5.6.210.0100.04117.48
5.6.200.0120.03516.60
5.6.190.0080.04117.53
5.6.180.0250.02917.35
5.6.170.0080.02817.36
5.6.160.0150.04017.59
5.6.150.0060.02116.34
5.6.140.0050.02316.39
5.6.130.0060.02416.24
5.6.120.0140.03717.72
5.6.110.0070.03917.84
5.6.100.0050.02617.75
5.6.90.0020.05217.74
5.6.80.0070.04517.52
5.6.70.0030.01014.18
5.6.60.0060.00314.25
5.6.50.0060.00614.41
5.6.40.0030.00914.18
5.6.30.0120.00314.23
5.6.20.0070.00414.34
5.6.10.0080.00414.18
5.6.00.0030.01014.64
5.5.380.0120.00314.25
5.5.370.0000.01114.11
5.5.360.0090.00314.40
5.5.350.0160.04117.23
5.5.340.0020.02516.26
5.5.330.0040.02217.50
5.5.320.0120.02517.39
5.5.310.0170.02817.43
5.5.300.0080.04216.25
5.5.290.0030.04716.28
5.5.280.0020.03817.57
5.5.270.0060.04517.55
5.5.260.0080.04317.56
5.5.250.0020.04917.53
5.5.240.0090.01917.24
5.5.230.0040.00714.21
5.5.220.0000.00914.34
5.5.210.0030.01213.91
5.5.200.0080.00614.47
5.5.190.0000.00914.33
5.5.180.0030.00614.36
5.5.170.0030.00614.21
5.5.160.0060.00614.13
5.5.150.0040.00714.20
5.5.140.0070.00714.26
5.5.130.0100.00613.82
5.5.120.0030.01414.35
5.5.110.0080.00414.14
5.5.100.0000.01014.08
5.5.90.0040.00814.32
5.5.80.0000.00814.34
5.5.70.0100.00314.29
5.5.60.0060.00914.27
5.5.50.0080.00013.92
5.5.40.0060.00614.04
5.5.30.0040.00814.00
5.5.20.0040.00414.04
5.5.10.0050.00813.96
5.5.00.0030.01313.93

preferences:
65.73 ms | 401 KiB | 5 Q