3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<EOD <rss xmlns:media="http://search.yahoo.com/mrss/" version="2.0"> <media:content medium="media.medium" href="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.0150.00618.81
8.3.50.0060.01018.18
8.3.40.0090.00919.21
8.3.30.0070.00719.07
8.3.20.0050.00320.71
8.3.10.0090.00020.98
8.3.00.0040.00424.04
8.2.180.0120.00617.25
8.2.170.0040.01122.96
8.2.160.0100.00322.37
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0050.00321.21
8.2.120.0000.00826.35
8.2.110.0090.00022.52
8.2.100.0060.00618.09
8.2.90.0040.00418.00
8.2.80.0080.00019.16
8.2.70.0030.00617.88
8.2.60.0040.00417.88
8.2.50.0040.00418.28
8.2.40.0070.00019.72
8.2.30.0070.00019.66
8.2.20.0040.00418.07
8.2.10.0050.00318.37
8.2.00.0040.00418.37
8.1.280.0110.00425.92
8.1.270.0040.00422.44
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00319.34
8.1.230.0090.00321.13
8.1.220.0030.00618.82
8.1.210.0000.00818.77
8.1.200.0090.00017.60
8.1.190.0060.00317.48
8.1.180.0030.00618.10
8.1.170.0070.00017.70
8.1.160.0050.00320.81
8.1.150.0040.00719.03
8.1.140.0040.00419.76
8.1.130.0030.00317.73
8.1.120.0000.00717.55
8.1.110.0000.00717.65
8.1.100.0040.00417.66
8.1.90.0040.00417.61
8.1.80.0040.00417.59
8.1.70.0000.00717.49
8.1.60.0080.00317.62
8.1.50.0030.00617.72
8.1.40.0060.00317.79
8.1.30.0050.00317.92
8.1.20.0030.00517.83
8.1.10.0030.00617.83
8.1.00.0000.00817.73
8.0.300.0000.00818.77
8.0.290.0040.00417.29
8.0.280.0000.00718.71
8.0.270.0000.00817.43
8.0.260.0070.00017.39
8.0.250.0070.00017.04
8.0.240.0000.00817.11
8.0.230.0000.00717.22
8.0.220.0070.00017.08
8.0.210.0070.00017.17
8.0.200.0030.00317.20
8.0.190.0030.00617.20
8.0.180.0060.00317.13
8.0.170.0080.00017.22
8.0.160.0000.00817.23
8.0.150.0080.00017.03
8.0.140.0030.00717.15
8.0.130.0060.00013.79
8.0.120.0040.00417.16
8.0.110.0000.00817.04
8.0.100.0040.00417.03
8.0.90.0000.00817.01
8.0.80.0090.00617.08
8.0.70.0050.00317.01
8.0.60.0030.00517.04
8.0.50.0000.00717.06
8.0.30.0130.00517.49
8.0.20.0120.00817.40
8.0.10.0040.00417.29
8.0.00.0080.01116.94
7.4.330.0000.00517.15
7.4.320.0000.00716.69
7.4.300.0030.00316.86
7.4.290.0030.00316.76
7.4.280.0000.00716.86
7.4.270.0070.00016.76
7.4.260.0040.00416.75
7.4.250.0000.00716.69
7.4.240.0000.00816.79
7.4.230.0040.00416.79
7.4.220.0140.00316.85
7.4.210.0090.00716.85
7.4.200.0000.00716.95
7.4.160.0060.01016.68
7.4.150.0090.00917.40
7.4.140.0130.00617.86
7.4.130.0100.00816.86
7.4.120.0130.00816.77
7.4.110.0130.00316.77
7.4.100.0060.01116.88
7.4.90.0150.00416.95
7.4.80.0140.00419.39
7.4.70.0100.00616.70
7.4.60.0140.00316.75
7.4.50.0090.00916.76
7.4.40.0050.01116.87
7.4.30.0110.00716.88
7.4.00.0120.00015.13
7.3.330.0000.00513.52
7.3.320.0000.00513.54
7.3.310.0000.00816.58
7.3.300.0030.00316.50
7.3.290.0070.00016.50
7.3.280.0130.00416.50
7.3.270.0100.01017.40
7.3.260.0090.01316.54
7.3.250.0080.00916.65
7.3.240.0100.00616.54
7.3.230.0120.00616.73
7.3.210.0140.00316.66
7.3.200.0150.00316.66
7.3.190.0090.00916.74
7.3.180.0060.00916.57
7.3.170.0090.01516.63
7.3.160.0060.00916.56
7.2.330.0110.00716.54
7.2.320.0100.01416.90
7.2.310.0060.01316.86
7.2.300.0040.01316.48
7.2.290.0140.01016.79
7.2.60.0070.00716.78
7.2.00.0170.00719.62
7.1.200.0030.01215.78
7.1.100.0000.01117.88
7.1.70.0060.00317.01
7.1.60.0070.01819.27
7.1.50.0070.01516.96
7.1.00.0030.08722.55
7.0.200.0000.00816.81
7.0.60.0270.05020.13
7.0.50.0030.08317.96
7.0.40.0070.04020.20
7.0.30.0330.06320.27
7.0.20.0200.06020.25
7.0.10.0100.08020.29
7.0.00.0030.08720.26
5.6.280.0030.03321.12
5.6.210.0030.08020.58
5.6.200.0030.09018.27
5.6.190.0070.08320.55
5.6.180.0300.07020.59
5.6.170.0370.07020.55
5.6.160.0030.08320.66
5.6.150.0030.04018.26
5.6.140.0100.05718.38
5.6.130.0070.07718.31
5.6.120.0100.07721.20
5.6.110.0130.08321.18
5.6.100.0030.05321.12
5.6.90.0200.07721.21
5.6.80.0100.07720.57
5.5.350.0230.04720.57
5.5.340.0100.07018.05
5.5.330.0170.07320.37
5.5.320.0270.03320.45
5.5.310.0300.04720.39
5.5.300.0030.04318.07
5.5.290.0070.03718.11
5.5.280.0000.04720.72
5.5.270.0100.08320.91
5.5.260.0170.06320.90
5.5.250.0100.07320.87
5.5.240.0030.04720.18

preferences:
51.26 ms | 400 KiB | 5 Q