3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"> <channel> <title>mMin title</title> <description>Some description</description> <managingEditor>john.doe@example.com</managingEditor> <category>Some category</category> <item> <guid isPermaLink="false">1</guid> <link>https://example.com/1</link> <title>Some title 1</title> <a10:updated>2017-05-30T13:20:22+02:00</a10:updated> <a10:content type="text/xml"> <Location>San diego</Location> <PublishedOn>2016-10-21T11:21:07</PublishedOn> <Body>Lorem ipsum dolar</Body> <JobCountry>USA</JobCountry> </a10:content> </item> <item> <guid isPermaLink="false">1</guid> <link>https://example.com/2</link> <title>Some title 2</title> <a10:updated>2017-05-30T13:20:22+02:00</a10:updated> <a10:content type="text/xml"> <Location>Detroit</Location> <PublishedOn>2016-10-21T11:21:07</PublishedOn> <Body>Lorem ipsum dolar</Body> <JobCountry>USA</JobCountry> </a10:content> </item> <item> <guid isPermaLink="false">1</guid> <link>https://example.com/3</link> <title>Some title 3</title> <a10:updated>2017-05-30T13:20:22+02:00</a10:updated> <a10:content type="text/xml"> <Location>Los Angeles</Location> <PublishedOn>2016-10-21T11:21:07</PublishedOn> <Body>Lorem ipsum dolar</Body> <JobCountry>USA</JobCountry> </a10:content> </item> </channel> </rss>'; $dom = new DOMDocument(); $dom->loadXML($xml); $items = $dom->getElementsByTagName('item'); $array = array(); foreach($items as $item) { $title = $item->getElementsByTagName('title')->item(0)->nodeValue; $link = $item->getElementsByTagName('link')->item(0)->nodeValue; $updated = $item->getElementsByTagName('updated')->item(0)->nodeValue; $location = $item->getElementsByTagName('Location')->item(0)->nodeValue; $pub = $item->getElementsByTagName('PublishedOn')->item(0)->nodeValue; $body = $item->getElementsByTagName('Body')->item(0)->nodeValue; $job = $item->getElementsByTagName('JobCountry')->item(0)->nodeValue; $array[] = [ 'title' => $title, 'link' => $link, 'updated' => $updated, 'Location' => $location, 'PublishedOn' => $pub, 'Body' => $body, 'JobCountry' => $job, ]; } var_dump($array);

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.5.30.0120.00719.77
8.5.20.0070.01020.35
8.5.10.0100.00816.92
8.5.00.0130.00920.23
8.4.180.0170.00625.96
8.4.170.0100.01224.15
8.4.160.0120.01019.92
8.4.150.0080.00517.06
8.4.140.0130.00817.82
8.4.130.0120.00917.82
8.4.120.0110.01020.79
8.4.110.0080.00419.27
8.4.100.0120.00818.00
8.4.90.0120.00820.86
8.4.80.0110.00919.15
8.4.70.0110.00919.02
8.4.60.0140.00918.92
8.4.50.0110.00621.03
8.4.40.0030.00618.03
8.4.30.0060.00319.59
8.4.20.0170.00417.96
8.4.10.0030.00617.80
8.3.300.0110.01023.06
8.3.290.0070.00418.79
8.3.280.0080.00416.38
8.3.270.0130.00816.82
8.3.260.0120.00817.03
8.3.250.0040.00520.89
8.3.240.0120.00518.59
8.3.230.0100.01017.06
8.3.220.0060.00319.29
8.3.210.0070.00118.62
8.3.200.0060.00316.86
8.3.190.0150.00517.41
8.3.180.0090.01119.06
8.3.170.0120.00616.82
8.3.160.0110.00717.57
8.3.150.0080.01219.18
8.3.140.0080.00816.92
8.3.130.0080.00818.54
8.3.120.0080.00019.36
8.3.110.0060.00320.94
8.3.100.0040.00424.06
8.3.90.0000.00826.77
8.3.80.0060.00619.36
8.3.70.0110.01116.88
8.3.60.0070.01616.88
8.3.50.0120.00517.59
8.3.40.0040.01119.04
8.3.30.0160.00619.10
8.3.20.0080.00022.06
8.3.10.0040.00423.70
8.3.00.0030.00619.50
8.2.300.0120.00918.23
8.2.290.0100.00918.73
8.2.280.0130.00918.86
8.2.270.0130.00719.03
8.2.260.0080.00016.99
8.2.250.0130.00619.05
8.2.240.0050.00319.21
8.2.230.0040.00422.58
8.2.220.0040.00437.54
8.2.210.0050.00326.77
8.2.200.0000.00918.88
8.2.190.0120.00618.91
8.2.180.0000.01516.75
8.2.170.0120.00422.96
8.2.160.0080.00819.54
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0080.00022.63
8.2.120.0040.00426.35
8.2.110.0030.00721.25
8.2.100.0060.00618.09
8.2.90.0040.00418.16
8.2.80.0040.00418.05
8.2.70.0030.00618.18
8.2.60.0030.00618.50
8.2.50.0030.00518.10
8.2.40.0000.00820.79
8.2.30.0030.00619.60
8.2.20.0050.00218.34
8.2.10.0000.00818.34
8.2.00.0040.00418.36
8.1.340.0140.00718.01
8.1.330.0070.01116.33
8.1.320.0100.00916.21
8.1.310.0100.00616.96
8.1.300.0000.00820.49
8.1.290.0090.00030.84
8.1.280.0090.00625.92
8.1.270.0080.00020.83
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00722.72
8.1.230.0080.00423.00
8.1.220.0080.00018.03
8.1.210.0000.00919.09
8.1.200.0000.00917.60
8.1.190.0040.00417.47
8.1.180.0030.00618.10
8.1.170.0030.00619.15
8.1.160.0000.00819.15
8.1.150.0000.00819.09
8.1.140.0070.00019.78
8.1.130.0000.00717.60
8.1.120.0000.00817.65
8.1.110.0030.00517.63
8.1.100.0080.00017.72
8.1.90.0040.00417.60
8.1.80.0040.00417.76
8.1.70.0000.00917.64
8.1.60.0030.00617.75
8.1.50.0080.00017.66
8.1.40.0050.00317.70
8.1.30.0040.00418.00
8.1.20.0040.00417.84
8.1.10.0030.00617.84
8.1.00.0000.00817.82
8.0.300.0070.00020.04
8.0.290.0040.00417.13
8.0.280.0040.00418.60
8.0.270.0050.00317.43
8.0.260.0070.00017.07
8.0.250.0030.00317.09
8.0.240.0030.00617.17
8.0.230.0000.00717.14
8.0.220.0050.00217.02
8.0.210.0050.00217.05
8.0.200.0040.00417.16
8.0.190.0000.00817.16
8.0.180.0000.00717.18
8.0.170.0030.00717.05
8.0.160.0040.00417.19
8.0.150.0070.00017.25
8.0.140.0040.00417.02
8.0.130.0060.00313.52
8.0.120.0040.00417.04
8.0.110.0040.00417.23
8.0.100.0000.00716.95
8.0.90.0000.00817.19
8.0.80.0080.00817.04
8.0.70.0080.00017.02
8.0.60.0080.00016.96
8.0.50.0000.00716.96
8.0.30.0120.01017.15
8.0.20.0120.01117.36
8.0.10.0200.00817.08
8.0.00.0140.01117.06
7.4.330.0000.00515.55
7.4.320.0060.00016.95
7.4.300.0040.00416.65
7.4.290.0090.00016.89
7.4.280.0040.00416.86
7.4.270.0030.00516.78
7.4.260.0040.00416.84
7.4.250.0030.00616.68
7.4.240.0050.00216.75
7.4.230.0040.00416.96
7.4.220.0090.00916.75
7.4.210.0070.00816.79
7.4.200.0070.00016.61
7.4.160.0140.01016.78
7.4.150.0180.01017.09
7.4.140.0090.01217.61
7.4.130.0120.01116.68
7.4.120.0170.00916.84
7.4.110.0150.00916.68
7.4.100.0130.01016.77
7.4.90.0150.01016.69
7.4.80.0160.00918.09
7.4.70.0120.01116.78
7.4.60.0120.00816.77
7.4.50.0100.01016.71
7.4.40.0140.00716.66
7.4.30.0130.00816.73
7.4.20.0210.00516.73
7.4.10.0150.01216.75
7.4.00.0120.00416.02
7.3.330.0000.00513.40
7.3.320.0030.00313.23
7.3.310.0070.00016.55
7.3.300.0030.00316.44
7.3.290.0030.00316.54
7.3.280.0110.00816.54
7.3.270.0190.00916.96
7.3.260.0150.00716.59
7.3.250.0120.01116.71
7.3.240.0190.00716.77
7.3.230.0130.01016.64
7.3.220.0240.00916.48
7.3.210.0140.01316.61
7.3.200.0150.00716.71
7.3.190.0190.00616.54
7.3.180.0160.00616.69
7.3.170.0180.00416.64
7.3.160.0120.00916.64
7.3.150.0170.01216.59
7.3.140.0210.00716.52
7.3.130.0120.01616.58
7.3.120.0150.01816.45
7.3.110.0160.01116.47
7.3.100.0070.01816.51
7.3.90.0100.02016.79
7.3.80.0230.00816.52
7.3.70.0240.00616.59
7.3.60.0230.00516.68
7.3.50.0120.02016.69
7.3.40.0180.01516.72
7.3.30.0130.01616.75
7.3.20.0260.01116.66
7.3.10.0170.01416.62
7.3.00.0250.00716.57
7.2.340.0200.00616.63
7.2.330.0170.00816.89
7.2.320.0170.00816.70
7.2.310.0150.00716.86
7.2.300.0170.01216.80
7.2.290.0180.00916.69
7.2.280.0190.01116.64
7.2.270.0110.01516.72
7.2.260.0160.01316.68
7.2.250.0190.00816.65
7.2.240.0180.00916.64
7.2.230.0160.00916.64
7.2.220.0140.02116.70
7.2.210.0270.00516.73
7.2.200.0280.00816.84
7.2.190.0180.01416.72
7.2.180.0180.01216.81
7.2.170.0230.00916.89
7.2.160.0260.00516.80
7.2.150.0250.00416.84
7.2.140.0270.00317.00
7.2.130.0240.00617.12
7.2.120.0200.00416.98
7.2.110.0210.00616.98
7.2.100.0220.00716.96
7.2.90.0230.00816.80
7.2.80.0140.01116.73
7.2.70.0220.00616.80
7.2.60.0180.00616.93
7.2.50.0140.01716.90
7.2.40.0260.00316.92
7.2.30.0170.00916.98
7.2.20.0140.01117.00
7.2.10.0160.01017.00
7.2.00.0180.00916.93
7.1.330.0100.01315.88
7.1.320.0220.00515.85
7.1.310.0180.00615.87
7.1.300.0220.00915.84
7.1.290.0190.01215.73
7.1.280.0130.01015.77
7.1.270.0120.01615.80
7.1.260.0140.01015.76
7.1.250.0160.00815.68
7.1.240.0260.00615.67
7.1.230.0180.00615.83
7.1.220.0130.01415.71
7.1.210.0260.00015.61
7.1.200.0120.00815.88
7.1.190.0150.01215.67
7.1.180.0170.01015.70
7.1.170.0110.01215.73
7.1.160.0370.00915.58
7.1.150.0120.01215.77
7.1.140.0240.00615.65
7.1.130.0170.00915.64
7.1.120.0120.01315.66
7.1.110.0150.01115.79
7.1.100.0230.00515.77
7.1.90.0200.00415.75
7.1.80.0160.00815.77
7.1.70.0320.00716.48
7.1.60.0110.00716.60
7.1.50.0640.01024.37
7.1.40.0560.01524.25
7.1.30.0600.00824.27
7.1.20.0570.02224.22
7.1.10.0510.01215.31
7.1.00.0600.00915.24
7.0.330.0410.00715.46
7.0.320.0130.01015.44
7.0.310.0200.00715.51
7.0.300.0090.01315.46
7.0.290.0240.01015.34
7.0.280.0180.00615.52
7.0.270.0180.00715.42
7.0.260.0160.00615.46
7.0.250.0130.01315.57
7.0.240.0250.00415.68
7.0.230.0140.00715.64
7.0.220.0190.00615.56
7.0.210.0070.01515.58
7.0.200.0110.00716.13
7.0.190.0390.01015.27
7.0.180.0110.00915.06
7.0.170.0450.01015.20
7.0.160.0130.01215.02
7.0.150.0450.00714.98
7.0.140.0120.01415.06
7.0.130.0190.01315.18
7.0.120.0180.00515.20
7.0.110.0470.01415.07
7.0.100.0110.01315.05
7.0.90.0550.01515.05
7.0.80.0520.01515.01
7.0.70.0090.01215.09
7.0.60.0100.01314.99
7.0.50.0130.01114.99
7.0.40.0170.00315.16
7.0.30.0150.01415.09
7.0.20.0100.01115.02
7.0.10.0140.00915.08
7.0.00.0760.01115.13
5.6.400.0140.01016.16
5.6.390.0030.02016.09
5.6.380.0120.01216.12
5.6.370.0170.00916.05
5.6.360.0170.00716.16
5.6.350.0160.00816.18
5.6.340.0150.00716.14
5.6.330.0120.01216.11
5.6.320.0110.01116.10
5.6.310.0080.01516.17
5.6.300.0170.00716.00
5.6.290.0130.01316.14
5.6.280.0320.01016.22
5.6.270.0210.00616.16
5.6.260.0210.00816.13
5.6.250.0120.01615.93
5.6.240.0120.01616.15
5.6.230.0150.01516.34
5.6.220.0120.01816.21
5.6.210.0250.00416.29
5.6.200.0180.00716.24
5.6.190.0160.01016.30
5.6.180.0140.01416.24
5.6.170.0120.01216.42
5.6.160.0230.00816.46
5.6.150.0200.00416.32
5.6.140.0190.01116.40
5.6.130.0260.00516.29
5.6.120.0170.01016.28
5.6.110.0110.01416.17
5.6.100.0140.01116.21
5.6.90.0080.01616.18
5.6.80.0160.01216.10
5.6.70.0130.00916.20
5.6.60.0150.00916.19
5.6.50.0110.01316.09
5.6.40.0180.00316.15
5.6.30.0110.01116.14
5.6.20.0230.00716.11
5.6.10.0120.01216.07
5.6.00.0150.00716.06
5.5.380.0140.01416.21
5.5.370.0110.01516.31
5.5.360.0170.00815.97
5.5.350.0200.00615.95
5.5.340.0240.00615.91
5.5.330.0200.00416.23
5.5.320.0210.00616.10
5.5.310.0140.01115.94
5.5.300.0210.01215.98
5.5.290.0280.00316.14
5.5.280.0140.01216.03
5.5.270.0160.00616.14
5.5.260.0180.00415.93
5.5.250.0210.00316.16
5.5.240.0110.01116.20
5.5.230.0160.00816.29
5.5.220.0140.01116.13
5.5.210.0200.00716.25
5.5.200.0190.00715.93
5.5.190.0130.01316.05
5.5.180.0110.01116.01
5.5.170.0130.01015.89
5.5.160.0110.01116.00
5.5.150.0120.01816.09
5.5.140.0200.00915.80
5.5.130.0090.01316.03
5.5.120.0190.00315.88
5.5.110.0110.01115.90
5.5.100.0130.00916.18
5.5.90.0110.01116.17
5.5.80.0130.01016.15
5.5.70.0210.00916.11
5.5.60.0110.01116.23
5.5.50.0210.01116.00
5.5.40.0110.01415.98
5.5.30.0170.00716.34
5.5.20.0170.00916.15
5.5.10.0130.01016.09
5.5.00.0280.00015.93
5.4.450.0140.00612.94
5.4.440.0130.00512.90
5.4.430.0120.00613.01
5.4.420.0070.01013.01
5.4.410.0140.00312.93
5.4.400.0180.00012.80
5.4.390.0170.00512.82
5.4.380.0120.00612.83
5.4.370.0170.00312.82
5.4.360.0130.00812.95
5.4.350.0150.00612.84
5.4.340.0150.00412.83
5.4.330.0070.01012.86
5.4.320.0140.00512.96
5.4.310.0120.00812.86
5.4.300.0090.01312.94
5.4.290.0100.00612.91
5.4.280.0090.00912.90
5.4.270.0180.00712.94
5.4.260.0170.00012.82
5.4.250.0120.00812.88
5.4.240.0120.00612.83
5.4.230.0140.00312.64
5.4.220.0180.00612.69
5.4.210.0130.01012.64
5.4.200.0080.01112.77
5.4.190.0080.01312.71
5.4.180.0100.01012.64
5.4.170.0140.00812.76
5.4.160.0220.00012.71
5.4.150.0140.01012.66
5.4.140.0210.00012.95
5.4.130.0040.01312.83
5.4.120.0140.00312.87
5.4.110.0100.00712.95
5.4.100.0170.00712.94
5.4.90.0070.01112.98
5.4.80.0110.01113.00
5.4.70.0110.00513.00
5.4.60.0100.00613.03
5.4.50.0100.00712.85
5.4.40.0140.00312.81
5.4.30.0170.00912.93
5.4.20.0130.00312.93
5.4.10.0080.00812.88
5.4.00.0140.00312.68
5.3.290.0160.00312.70
5.3.280.0110.00712.63
5.3.270.0120.00612.66
5.3.260.0130.01012.83
5.3.250.0150.00912.61
5.3.240.0140.00712.52
5.3.230.0120.00812.67
5.3.220.0120.00612.55
5.3.210.0090.01212.63
5.3.200.0150.00912.79
5.3.190.0130.00312.78
5.3.180.0090.00912.82
5.3.170.0110.00612.98
5.3.160.0100.00812.82
5.3.150.0120.00612.80
5.3.140.0120.00812.86
5.3.130.0090.00912.75
5.3.120.0150.00312.67
5.3.110.0140.00412.84
5.3.100.0140.00212.89
5.3.90.0090.00912.91
5.3.80.0150.01112.72
5.3.70.0130.00412.64
5.3.60.0100.00712.75
5.3.50.0150.00412.64
5.3.40.0070.01012.82
5.3.30.0070.01012.74
5.3.20.0150.00212.80
5.3.10.0110.00612.49
5.3.00.0070.00912.40
5.2.170.0030.01011.86
5.2.160.0090.00611.77
5.2.150.0080.00811.86
5.2.140.0050.01011.68
5.2.130.0080.00811.72
5.2.120.0050.01011.94
5.2.110.0100.00711.71
5.2.100.0110.00411.81
5.2.90.0090.00611.80
5.2.80.0070.01111.73
5.2.70.0150.00511.62
5.2.60.0140.00311.63
5.2.50.0090.00611.66
5.2.40.0100.00511.77
5.2.30.0040.01211.75
5.2.20.0040.01111.49
5.2.10.0110.00411.61
5.2.00.0110.00711.50
5.1.60.0090.00611.23
5.1.50.0040.01211.23
5.1.40.0150.00511.23
5.1.30.0040.00911.23
5.1.20.0060.00611.23
5.1.10.0070.00711.23
5.1.00.0090.00511.23
5.0.50.0070.00411.23
5.0.40.0040.00811.23
5.0.30.0090.00311.23
5.0.20.0080.00411.23
5.0.10.0040.00711.23
5.0.00.0000.01111.23
4.4.90.0100.00011.23
4.4.80.0040.00411.23
4.4.70.0050.00211.23
4.4.60.0070.00011.23
4.4.50.0080.00011.23
4.4.40.0090.00011.23
4.4.30.0070.00011.23
4.4.20.0080.00011.23
4.4.10.0070.00211.23
4.4.00.0040.00411.23
4.3.110.0040.00411.23
4.3.100.0040.00411.23
4.3.90.0000.00811.23
4.3.80.0040.00211.23
4.3.70.0070.00011.23
4.3.60.0050.00311.23
4.3.50.0040.00411.23
4.3.40.0060.00211.23
4.3.30.0000.00611.23
4.3.20.0040.00411.23
4.3.10.0000.00611.23
4.3.00.0030.00311.23

preferences:
69.91 ms | 3220 KiB | 5 Q