3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<EOD <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.0120.00918.81
8.3.50.0130.00318.43
8.3.40.0120.00319.31
8.3.30.0040.01119.11
8.3.20.0000.00720.58
8.3.10.0040.00420.95
8.3.00.0080.00022.20
8.2.180.0060.01217.25
8.2.170.0000.01422.96
8.2.160.0050.00922.43
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0050.00321.30
8.2.120.0080.00026.35
8.2.110.0100.00019.54
8.2.100.0080.00318.16
8.2.90.0000.00817.90
8.2.80.0040.00418.28
8.2.70.0050.00517.63
8.2.60.0040.00418.05
8.2.50.0030.00518.18
8.2.40.0040.00420.98
8.2.30.0070.00319.69
8.2.20.0000.00717.89
8.2.10.0030.00618.30
8.2.00.0080.00018.25
8.1.280.0070.01325.92
8.1.270.0160.00022.40
8.1.260.0050.00328.09
8.1.250.0040.00428.09
8.1.240.0110.00022.15
8.1.230.0070.00321.10
8.1.220.0050.00317.88
8.1.210.0040.00419.17
8.1.200.0050.00517.60
8.1.190.0050.00317.38
8.1.180.0080.00018.10
8.1.170.0110.00018.91
8.1.160.0040.00420.89
8.1.150.0030.00619.14
8.1.140.0060.00319.82
8.1.130.0070.00017.94
8.1.120.0040.00417.63
8.1.110.0040.00417.57
8.1.100.0070.00017.61
8.1.90.0000.00917.61
8.1.80.0040.00417.70
8.1.70.0000.00717.71
8.1.60.0000.01217.63
8.1.50.0030.00617.61
8.1.40.0030.00517.81
8.1.30.0030.00617.96
8.1.20.0030.00617.77
8.1.10.0000.00817.94
8.1.00.0000.00817.81
8.0.300.0040.00420.10
8.0.290.0070.00017.00
8.0.280.0030.00518.57
8.0.270.0050.00217.56
8.0.260.0060.00017.52
8.0.250.0070.00017.17
8.0.240.0040.00417.31
8.0.230.0000.00717.15
8.0.220.0050.00317.15
8.0.210.0000.00717.18
8.0.200.0050.00217.10
8.0.190.0030.00617.30
8.0.180.0000.00717.12
8.0.170.0000.00817.28
8.0.160.0040.00417.07
8.0.150.0000.00716.98
8.0.140.0040.00416.95
8.0.130.0000.00613.58
8.0.120.0030.00617.15
8.0.110.0040.00417.14
8.0.100.0000.00717.00
8.0.90.0000.00817.23
8.0.80.0060.00917.20
8.0.70.0000.00717.14
8.0.60.0040.00417.11
8.0.50.0000.00717.12
8.0.30.0100.00917.26
8.0.20.0060.01417.49
8.0.10.0040.00417.28
8.0.00.0080.00916.93
7.4.330.0050.00017.18
7.4.320.0060.00016.84
7.4.300.0040.00416.73
7.4.290.0000.00816.76
7.4.280.0070.00016.80
7.4.270.0050.00316.82
7.4.260.0070.00316.68
7.4.250.0060.00316.78
7.4.240.0040.00416.89
7.4.230.0040.00416.69
7.4.220.0030.01616.98
7.4.210.0080.00916.86
7.4.200.0070.00016.70
7.4.160.0080.00816.78
7.4.150.0100.00717.40
7.4.140.0120.01317.86
7.4.130.0090.01116.84
7.4.120.0090.00916.78
7.4.110.0130.00416.68
7.4.100.0130.01116.71
7.4.90.0090.00916.93
7.4.80.0140.01219.39
7.4.70.0120.00616.64
7.4.60.0070.01016.92
7.4.50.0060.01116.58
7.4.40.0130.01116.77
7.4.30.0140.00316.89
7.4.00.0120.00315.13
7.3.330.0000.00613.55
7.3.320.0030.00313.34
7.3.310.0070.00016.34
7.3.300.0030.00316.50
7.3.290.0050.00216.45
7.3.280.0090.00716.49
7.3.270.0100.01017.40
7.3.260.0170.00416.59
7.3.250.0100.00816.63
7.3.240.0110.00716.67
7.3.230.0070.01016.55
7.3.210.0090.00916.76
7.3.200.0080.00816.77
7.3.190.0040.01316.57
7.3.180.0080.00816.71
7.3.170.0100.00816.66
7.3.160.0090.01216.50
7.2.330.0170.00316.73
7.2.320.0230.00316.54
7.2.310.0170.00716.78
7.2.300.0070.01016.69
7.2.290.0070.01016.75
7.2.60.0140.00316.94
7.2.00.0070.00719.32
7.1.200.0200.00615.50
7.1.100.0070.00318.06
7.1.70.0000.00917.29
7.1.60.0180.00719.27
7.1.50.0070.00417.04
7.1.00.0100.07022.42
7.0.200.0150.00414.75
7.0.60.0330.06720.11
7.0.50.0070.06017.92
7.0.40.0230.06720.16
7.0.30.0130.05720.38
7.0.20.0270.06020.24
7.0.10.0130.05320.29
7.0.00.0100.08020.16
5.6.280.0070.02721.00
5.6.210.0030.07720.87
5.6.200.0170.06018.43
5.6.190.0070.08720.55
5.6.180.0270.03320.77
5.6.170.0200.04320.64
5.6.160.0100.08020.78
5.6.150.0070.03718.31
5.6.140.0100.03318.35
5.6.130.0000.04318.22
5.6.120.0200.06321.02
5.6.110.0130.08321.03
5.6.100.0100.04021.00
5.6.90.0200.07021.17
5.6.80.0130.07720.40
5.5.350.0200.07720.53
5.5.340.0030.03718.04
5.5.330.0030.04020.37
5.5.320.0170.06020.34
5.5.310.0230.04020.36
5.5.300.0000.07018.10
5.5.290.0030.05717.99
5.5.280.0030.08320.84
5.5.270.0030.06021.08
5.5.260.0070.08020.91
5.5.250.0070.04720.83
5.5.240.0030.03020.12

preferences:
67.7 ms | 401 KiB | 5 Q