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> <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.70.0090.00916.75
8.3.60.0070.01618.68
8.3.50.0100.01022.11
8.3.40.0090.00619.08
8.3.30.0120.00319.14
8.3.20.0000.00720.54
8.3.10.0080.00021.07
8.3.00.0000.00822.06
8.2.180.0040.01116.75
8.2.170.0110.00422.96
8.2.160.0070.00722.39
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00421.36
8.2.120.0080.00026.35
8.2.110.0090.00021.36
8.2.100.0090.00318.05
8.2.90.0030.00519.34
8.2.80.0080.00018.00
8.2.70.0030.00618.00
8.2.60.0040.00418.05
8.2.50.0080.00018.09
8.2.40.0030.00620.84
8.2.30.0040.00419.68
8.2.20.0040.00417.89
8.2.10.0040.00418.21
8.2.00.0040.00418.32
8.1.280.0120.00625.92
8.1.270.0060.00922.27
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0040.00722.67
8.1.230.0100.00018.14
8.1.220.0040.00417.79
8.1.210.0050.00318.77
8.1.200.0060.00617.35
8.1.190.0000.00817.36
8.1.180.0060.00318.10
8.1.170.0030.00718.63
8.1.160.0070.00020.90
8.1.150.0000.00719.09
8.1.140.0080.00019.80
8.1.130.0070.00017.86
8.1.120.0040.00417.63
8.1.110.0000.00717.70
8.1.100.0040.00417.75
8.1.90.0040.00417.61
8.1.80.0000.00817.62
8.1.70.0000.00717.59
8.1.60.0030.00917.77
8.1.50.0030.00617.61
8.1.40.0040.00417.66
8.1.30.0000.00817.93
8.1.20.0050.00217.89
8.1.10.0040.00417.66
8.1.00.0000.00917.86
8.0.300.0040.00418.77
8.0.290.0000.00717.00
8.0.280.0000.00718.79
8.0.270.0000.00717.39
8.0.260.0030.00317.44
8.0.250.0080.00017.19
8.0.240.0000.00717.15
8.0.230.0040.00417.18
8.0.220.0040.00417.04
8.0.210.0000.00817.02
8.0.200.0060.00017.21
8.0.190.0040.00417.17
8.0.180.0040.00417.23
8.0.170.0030.00617.08
8.0.160.0040.00417.04
8.0.150.0040.00417.00
8.0.140.0000.00817.13
8.0.130.0030.00313.59
8.0.120.0030.00517.05
8.0.110.0040.00417.21
8.0.100.0000.00817.12
8.0.90.0040.00416.93
8.0.80.0110.00617.19
8.0.70.0080.00016.97
8.0.60.0000.00817.06
8.0.50.0080.00016.92
8.0.30.0100.00717.25
8.0.20.0160.00317.41
8.0.10.0080.00017.34
8.0.00.0120.00716.95
7.4.330.0060.00017.31
7.4.320.0000.00616.73
7.4.300.0000.00716.86
7.4.290.0000.00716.90
7.4.280.0040.00416.83
7.4.270.0070.00016.78
7.4.260.0000.01016.65
7.4.250.0000.00816.69
7.4.240.0070.00016.86
7.4.230.0070.00017.00
7.4.220.0030.01216.83
7.4.210.0050.00916.85
7.4.200.0030.00516.79
7.4.160.0120.00416.76
7.4.150.0150.00417.40
7.4.140.0130.01317.86
7.4.130.0110.01016.77
7.4.120.0130.00616.84
7.4.110.0100.00716.80
7.4.100.0200.00616.76
7.4.90.0060.01316.71
7.4.80.0100.01019.39
7.4.70.0000.02016.75
7.4.60.0130.00816.85
7.4.50.0030.01316.59
7.4.40.0130.00816.89
7.4.30.0070.01016.88
7.4.00.0090.00615.02
7.3.330.0000.00613.36
7.3.320.0050.00013.45
7.3.310.0050.00216.38
7.3.300.0070.00016.47
7.3.290.0040.00316.53
7.3.280.0100.00616.51
7.3.270.0060.01117.40
7.3.260.0060.01316.56
7.3.250.0090.00916.62
7.3.240.0070.01416.61
7.3.230.0090.00816.69
7.3.210.0090.01516.70
7.3.200.0080.00816.58
7.3.190.0080.01616.58
7.3.180.0140.00716.64
7.3.170.0130.00516.64
7.3.160.0080.00816.50
7.3.120.0090.00914.87
7.3.110.0070.01014.95
7.3.100.0130.00315.10
7.3.90.0000.01314.84
7.3.80.0140.00314.76
7.3.70.0090.00614.70
7.3.60.0060.00914.91
7.3.50.0090.00614.85
7.3.40.0090.00614.74
7.3.30.0060.01314.77
7.3.20.0030.01516.70
7.3.10.0000.01516.68
7.3.00.0060.00916.64
7.2.330.0110.00716.86
7.2.320.0070.01716.54
7.2.310.0150.00616.75
7.2.300.0090.00916.94
7.2.290.0100.00716.57
7.2.250.0080.00814.75
7.2.240.0030.01415.07
7.2.230.0160.00015.15
7.2.220.0000.01314.95
7.2.210.0100.00615.07
7.2.200.0060.00615.02
7.2.190.0060.01015.25
7.2.180.0040.01115.09
7.2.170.0070.00715.01
7.2.160.0100.00614.77
7.2.150.0040.01217.00
7.2.140.0090.00316.89
7.2.130.0070.00717.17
7.2.120.0080.00416.86
7.2.110.0060.01116.99
7.2.100.0060.00916.98
7.2.90.0030.01016.82
7.2.80.0000.01316.66
7.2.70.0080.00316.91
7.2.60.0110.00516.90
7.2.50.0090.00316.98
7.2.40.0060.00616.86
7.2.30.0070.00716.95
7.2.20.0000.01216.98
7.2.10.0030.00817.03
7.2.00.0120.00618.02
7.1.330.0120.00315.56
7.1.320.0000.01315.48
7.1.310.0040.01115.93
7.1.300.0070.00615.89
7.1.290.0040.00815.70
7.1.280.0070.00715.84
7.1.270.0070.00715.71
7.1.260.0070.00316.05
7.1.250.0030.00915.64
7.1.240.0030.01515.96
7.1.230.0070.01015.66
7.1.220.0120.00315.64
7.1.210.0060.00615.69
7.1.200.0040.00815.90
7.1.190.0090.00615.82
7.1.180.0030.00615.81
7.1.170.0040.01115.64
7.1.160.0090.00615.79
7.1.150.0060.01015.82
7.1.140.0110.00015.81
7.1.130.0000.01015.73
7.1.120.0070.00315.71
7.1.110.0100.00315.73
7.1.100.0060.00816.97
7.1.90.0160.00315.75
7.1.80.0000.00916.05
7.1.70.0050.00916.61
7.1.60.0050.01517.46
7.1.50.0050.01316.17
7.1.40.0030.01216.00
7.1.30.0030.00615.68
7.1.20.0120.00315.71
7.1.10.0030.01315.63
7.1.00.0070.03919.03
7.0.330.0040.01415.38
7.0.320.0070.00715.61
7.0.310.0030.00915.39
7.0.300.0110.00415.38
7.0.290.0090.00615.39
7.0.280.0030.00615.19
7.0.270.0090.00015.46
7.0.260.0110.00615.27
7.0.250.0110.00415.34
7.0.240.0070.00315.35
7.0.230.0050.00515.57
7.0.220.0070.00715.43
7.0.210.0000.00815.49
7.0.200.0160.00815.12
7.0.190.0040.00815.45
7.0.180.0060.00315.45
7.0.170.0040.00815.44
7.0.160.0040.01115.41
7.0.150.0080.00415.75
7.0.140.0000.01615.38
7.0.130.0000.01715.40
7.0.120.0070.01115.52
7.0.110.0040.01515.34
7.0.100.0110.00715.37
7.0.90.0120.00315.33
7.0.80.0070.01015.39
7.0.70.0000.01515.54
7.0.60.0200.03717.73
7.0.50.0030.04216.73
7.0.40.0050.04316.89
7.0.30.0120.02516.94
7.0.20.0160.04416.81
7.0.10.0090.03016.99
7.0.00.0060.04416.79
5.6.400.0030.01014.07
5.6.390.0070.01014.67
5.6.380.0100.00314.41
5.6.370.0030.00914.25
5.6.360.0040.00814.59
5.6.350.0000.01614.41
5.6.340.0100.00314.79
5.6.330.0040.01214.18
5.6.320.0070.01014.18
5.6.310.0060.00614.43
5.6.300.0070.00714.38
5.6.290.0040.00814.36
5.6.280.0020.02317.60
5.6.270.0100.00314.45
5.6.260.0130.00314.33
5.6.250.0030.01014.54
5.6.240.0030.01214.68
5.6.230.0110.00414.05
5.6.220.0090.00614.19
5.6.210.0100.03517.60
5.6.200.0050.03016.34
5.6.190.0070.03617.48
5.6.180.0080.02517.39
5.6.170.0100.02817.50
5.6.160.0050.04217.47
5.6.150.0020.02716.41
5.6.140.0110.01816.22
5.6.130.0030.02716.22
5.6.120.0130.04017.88
5.6.110.0070.04217.74
5.6.100.0050.04517.75
5.6.90.0060.02517.63
5.6.80.0110.03117.33
5.6.70.0000.01214.48
5.6.60.0000.01314.32
5.6.50.0100.00314.31
5.6.40.0060.00614.14
5.6.30.0030.01114.22
5.6.20.0000.01414.18
5.6.10.0050.00414.12
5.6.00.0030.00614.29
5.5.380.0100.00314.37
5.5.370.0030.01014.21
5.5.360.0000.01414.37
5.5.350.0200.04017.16
5.5.340.0070.02116.38
5.5.330.0050.02517.24
5.5.320.0080.03217.42
5.5.310.0130.03717.22
5.5.300.0100.04116.21
5.5.290.0070.03016.19
5.5.280.0080.04417.67
5.5.270.0030.03017.52
5.5.260.0120.02817.44
5.5.250.0080.04217.28
5.5.240.0080.02817.13
5.5.230.0030.00914.06
5.5.220.0130.00014.30
5.5.210.0070.00314.00
5.5.200.0030.01214.35
5.5.190.0090.00613.90
5.5.180.0000.00914.01
5.5.170.0090.00014.20
5.5.160.0070.00714.38
5.5.150.0030.01014.32
5.5.140.0000.00914.34
5.5.130.0030.00614.14
5.5.120.0100.00314.23
5.5.110.0080.00814.30
5.5.100.0040.01114.37
5.5.90.0000.00914.14
5.5.80.0090.00614.34
5.5.70.0060.00614.38
5.5.60.0040.01114.18
5.5.50.0070.00314.02
5.5.40.0000.01013.85
5.5.30.0060.00914.31
5.5.20.0060.00614.30
5.5.10.0120.00314.01
5.5.00.0090.00314.23

preferences:
54.12 ms | 401 KiB | 5 Q