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> <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.0170.00318.68
8.3.50.0100.01018.22
8.3.40.0110.00419.26
8.3.30.0080.00819.16
8.3.20.0080.00020.59
8.3.10.0030.00620.98
8.3.00.0050.00322.19
8.2.180.0000.01616.75
8.2.170.0090.00622.96
8.2.160.0030.01022.42
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00021.16
8.2.120.0040.00426.35
8.2.110.0030.00719.55
8.2.100.0000.01218.28
8.2.90.0040.00419.34
8.2.80.0060.00317.97
8.2.70.0030.00717.63
8.2.60.0090.00018.16
8.2.50.0080.00018.09
8.2.40.0030.00520.80
8.2.30.0060.00319.62
8.2.20.0000.00718.01
8.2.10.0000.00718.38
8.2.00.0000.00818.40
8.1.270.0130.00622.44
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0030.00619.46
8.1.230.0040.00718.08
8.1.220.0000.00818.03
8.1.210.0030.00618.77
8.1.200.0060.00717.50
8.1.190.0000.00817.72
8.1.180.0050.00518.10
8.1.170.0000.01018.84
8.1.160.0080.00020.96
8.1.150.0040.00419.18
8.1.140.0040.00419.91
8.1.130.0000.00717.87
8.1.120.0040.00417.76
8.1.110.0050.00217.68
8.1.100.0000.00817.57
8.1.90.0040.00417.72
8.1.80.0060.00317.66
8.1.70.0050.00317.73
8.1.60.0030.00717.79
8.1.50.0040.00417.81
8.1.40.0040.00417.76
8.1.30.0000.00817.97
8.1.20.0000.00917.80
8.1.10.0060.00317.87
8.1.00.0000.00817.83
8.0.300.0000.00918.77
8.0.290.0070.00017.00
8.0.280.0030.00318.68
8.0.270.0000.00817.57
8.0.260.0030.00317.44
8.0.250.0030.00317.08
8.0.240.0070.00017.14
8.0.230.0000.00717.28
8.0.220.0000.00917.17
8.0.210.0000.00717.25
8.0.200.0000.00717.29
8.0.190.0030.00517.16
8.0.180.0060.00317.11
8.0.170.0030.00517.24
8.0.160.0050.00317.04
8.0.150.0040.00417.02
8.0.140.0040.00417.06
8.0.130.0030.00313.56
8.0.120.0040.00417.04
8.0.110.0080.00017.05
8.0.100.0030.00517.18
8.0.90.0070.00017.04
8.0.80.0070.00717.18
8.0.70.0030.00517.14
8.0.60.0040.00417.20
8.0.50.0040.00417.10
8.0.30.0070.01117.35
8.0.20.0110.01117.45
8.0.10.0040.00417.15
8.0.00.0040.01516.79
7.4.330.0000.00617.14
7.4.320.0060.00016.86
7.4.300.0060.00016.82
7.4.290.0030.00316.72
7.4.280.0000.00816.89
7.4.270.0000.00716.72
7.4.260.0040.00416.81
7.4.250.0000.00816.86
7.4.240.0030.00516.77
7.4.230.0040.00416.79
7.4.220.0100.00616.82
7.4.210.0100.00616.85
7.4.200.0050.00216.74
7.4.160.0110.00616.81
7.4.150.0100.00717.40
7.4.140.0130.01117.86
7.4.130.0090.00916.88
7.4.120.0100.00817.04
7.4.110.0000.01716.85
7.4.100.0090.01216.66
7.4.90.0060.01216.63
7.4.80.0140.00319.39
7.4.70.0090.00916.93
7.4.60.0100.01016.63
7.4.50.0060.01216.84
7.4.40.0100.01316.94
7.4.30.0030.01416.92
7.4.00.0090.00915.03
7.3.330.0030.00313.38
7.3.320.0050.00013.25
7.3.310.0030.00316.55
7.3.300.0000.00716.41
7.3.290.0000.00716.53
7.3.280.0090.01016.52
7.3.270.0000.01717.40
7.3.260.0100.01016.79
7.3.250.0100.00916.59
7.3.240.0030.01416.58
7.3.230.0170.00616.65
7.3.210.0070.01016.61
7.3.200.0140.00316.54
7.3.190.0090.00916.82
7.3.180.0130.00416.75
7.3.170.0230.00416.67
7.3.160.0000.01616.43
7.2.330.0090.01816.56
7.2.320.0100.01616.65
7.2.310.0230.00016.46
7.2.300.0100.01016.75
7.2.290.0060.01116.58
7.2.60.0060.00916.86
7.2.00.0100.00318.96
7.1.200.0080.00615.57
7.1.100.0070.00717.93
7.1.70.0030.01217.05
7.1.60.0060.01919.27
7.1.50.0090.00916.97
7.1.00.0100.07022.48
7.0.200.0070.00314.66
7.0.60.0300.03320.15
7.0.50.0030.06717.99
7.0.40.0100.08320.20
7.0.30.0200.03720.21
7.0.20.0300.03320.21
7.0.10.0100.08720.27
7.0.00.0070.08320.28
5.6.280.0000.06321.07
5.6.210.0070.08020.71
5.6.200.0030.08718.32
5.6.190.0070.08720.87
5.6.180.0130.04320.58
5.6.170.0270.03320.79
5.6.160.0070.09020.56
5.6.150.0000.04318.27
5.6.140.0100.03318.31
5.6.130.0070.03718.39
5.6.120.0130.07721.20
5.6.110.0130.08021.13
5.6.100.0100.08021.04
5.6.90.0130.07321.00
5.6.80.0070.06320.39
5.5.350.0300.06720.45
5.5.340.0030.03718.22
5.5.330.0000.04320.35
5.5.320.0270.03720.46
5.5.310.0230.08320.50
5.5.300.0030.04718.11
5.5.290.0170.07718.13
5.5.280.0070.04321.07
5.5.270.0000.05721.01
5.5.260.0130.08321.06
5.5.250.0170.07720.58
5.5.240.0000.04320.29

preferences:
77.13 ms | 400 KiB | 5 Q