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"> <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> </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.0140.00718.81
8.3.50.0070.01221.97
8.3.40.0110.00319.29
8.3.30.0040.01119.02
8.3.20.0040.00420.61
8.3.10.0030.00620.83
8.3.00.0040.00422.35
8.2.180.0070.01418.91
8.2.170.0120.00922.96
8.2.160.0080.00622.34
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0080.00021.32
8.2.120.0080.00026.35
8.2.110.0000.00922.50
8.2.100.0060.00618.29
8.2.90.0080.00019.42
8.2.80.0000.00817.97
8.2.70.0000.00917.63
8.2.60.0040.00418.05
8.2.50.0040.00418.29
8.2.40.0000.00820.75
8.2.30.0030.00519.69
8.2.20.0000.00718.09
8.2.10.0020.00518.27
8.2.00.0000.00818.17
8.1.280.0110.00725.92
8.1.270.0040.00422.35
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0050.00523.96
8.1.230.0110.00018.14
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0120.00017.48
8.1.190.0040.00417.48
8.1.180.0050.00318.10
8.1.170.0030.00818.97
8.1.160.0070.00021.02
8.1.150.0040.00419.04
8.1.140.0030.00519.74
8.1.130.0060.00317.72
8.1.120.0000.00717.70
8.1.110.0000.00717.56
8.1.100.0000.00817.61
8.1.90.0040.00417.59
8.1.80.0080.00017.63
8.1.70.0040.00417.76
8.1.60.0030.00717.82
8.1.50.0080.00017.70
8.1.40.0030.00517.70
8.1.30.0080.00017.99
8.1.20.0040.00417.77
8.1.10.0000.00817.66
8.1.00.0040.00417.77
8.0.300.0040.00418.77
8.0.290.0040.00417.00
8.0.280.0000.00718.48
8.0.270.0070.00017.38
8.0.260.0000.00816.99
8.0.250.0030.00317.23
8.0.240.0040.00417.14
8.0.230.0040.00417.10
8.0.220.0030.00517.21
8.0.210.0030.00317.20
8.0.200.0030.00317.16
8.0.190.0000.00817.08
8.0.180.0080.00017.22
8.0.170.0070.00017.23
8.0.160.0000.00717.22
8.0.150.0030.00517.07
8.0.140.0040.00417.04
8.0.130.0070.00013.79
8.0.120.0000.00917.04
8.0.110.0040.00417.11
8.0.100.0040.00417.15
8.0.90.0000.00817.00
8.0.80.0070.00717.04
8.0.70.0040.00417.17
8.0.60.0000.00816.93
8.0.50.0000.00717.00
8.0.30.0100.00517.18
8.0.20.0090.01317.40
8.0.10.0000.00717.30
8.0.00.0080.01116.80
7.4.330.0050.00017.26
7.4.320.0070.00016.86
7.4.300.0030.00316.68
7.4.290.0000.00716.93
7.4.280.0040.00416.75
7.4.270.0030.00316.87
7.4.260.0040.00816.89
7.4.250.0040.00416.69
7.4.240.0040.00416.91
7.4.230.0030.00316.63
7.4.220.0090.00616.79
7.4.210.0080.00916.81
7.4.200.0000.00716.99
7.4.160.0100.00716.65
7.4.150.0090.00917.40
7.4.140.0110.01217.86
7.4.130.0150.00516.71
7.4.120.0110.00816.66
7.4.110.0110.00716.73
7.4.100.0060.01316.76
7.4.90.0060.01216.98
7.4.80.0090.00919.39
7.4.70.0100.00716.83
7.4.60.0130.00916.81
7.4.50.0110.00416.67
7.4.40.0040.02016.71
7.4.30.0120.00416.86
7.4.00.0070.00715.12
7.3.330.0060.00013.35
7.3.320.0000.00513.54
7.3.310.0000.00716.59
7.3.300.0030.00316.54
7.3.290.0070.00016.48
7.3.280.0080.01116.54
7.3.270.0120.00617.40
7.3.260.0100.01016.71
7.3.250.0110.00916.60
7.3.240.0090.01416.67
7.3.230.0140.00316.68
7.3.210.0030.02116.53
7.3.200.0060.01216.69
7.3.190.0060.01016.52
7.3.180.0110.01116.72
7.3.170.0120.00816.76
7.3.160.0070.01516.49
7.2.330.0130.01016.58
7.2.320.0170.00716.52
7.2.310.0160.00716.65
7.2.300.0140.00316.80
7.2.290.0060.00916.50
7.2.60.0090.00316.79
7.2.00.0050.01019.07
7.1.200.0000.01515.82
7.1.100.0030.01017.76
7.1.70.0000.00817.04
7.1.60.0100.01619.27
7.1.50.0070.01617.04
7.1.00.0030.07722.61
7.0.200.0180.00014.88
7.0.60.0400.05320.11
7.0.50.0100.07717.88
7.0.40.0070.04719.98
7.0.30.0100.05720.32
7.0.20.0230.05020.26
7.0.10.0130.08020.32
7.0.00.0100.08320.37
5.6.280.0070.03021.05
5.6.210.0100.05020.86
5.6.200.0070.04718.28
5.6.190.0100.06320.80
5.6.180.0270.03320.85
5.6.170.0130.04320.65
5.6.160.0030.07720.58
5.6.150.0070.04018.35
5.6.140.0030.04018.32
5.6.130.0000.04318.21
5.6.120.0100.08021.01
5.6.110.0070.07021.09
5.6.100.0030.08321.17
5.6.90.0130.05721.18
5.6.80.0030.06020.60
5.5.350.0230.04020.34
5.5.340.0000.04018.13
5.5.330.0100.03320.56
5.5.320.0270.08020.39
5.5.310.0270.05720.33
5.5.300.0070.04318.02
5.5.290.0100.04718.10
5.5.280.0030.04721.06
5.5.270.0130.07021.05
5.5.260.0130.07720.91
5.5.250.0070.07020.54
5.5.240.0000.03320.27

preferences:
44.66 ms | 401 KiB | 5 Q