3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" version="2.0"> <channel> <title>Breaking News - Racer X Online</title> <link>http://racerxonline.com/</link> <description> Racer X Online is the world\'s top source for breaking motocross and supercross news. </description> <lastBuildDate>Thu, 09 Apr 2015 02:07:26 -0400</lastBuildDate> <ttl>10</ttl> <language>En</language> <atom:link href="http://racerxonline.com/feeds/rss/category/breaking-news" rel="self" type="application/rss+xml"/> <copyright>Copyright 2015 - Racer X Online</copyright> <image> <link>http://racerxonline.com/</link> <title>Breaking News - Racer X Online</title> <url>http://rx.iscdn.net/i/logos/racer-x-thumb.png</url> </image> <item> <title>Houston Animated Track Map</title> <link> http://racerxonline.com/2015/04/08/houston-animated-track-map?utm_medium=RSS&utm_source=Feed&utm_campaign=Breaking+News+-+Racer+X+Online </link> <guid> http://racerxonline.com/2015/04/08/houston-animated-track-map </guid> <pubDate>Wed, 08 Apr 2015 13:00:00 -0400</pubDate> <description> <![CDATA[ Take a lap with the green arrow. ]]> </description> <media:content url="//rx.iscdn.net/2015/04/96341_rd14_houston01thumb.jpg" type="image/jpeg" medium="image"/> </item> </channel> </rss>'; $xml = simplexml_load_string($xml); foreach( $rss->channel->item as $child) { echo $child . "\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.0070.00717.25
8.3.50.0120.00422.16
8.3.40.0170.00019.01
8.3.30.0060.00919.18
8.3.20.0030.00620.63
8.3.10.0000.00722.14
8.3.00.0080.00019.41
8.2.180.0110.00716.63
8.2.170.0170.00319.16
8.2.160.0080.00622.96
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0080.00019.88
8.2.110.0040.00422.45
8.2.100.0060.00618.22
8.2.90.0030.00619.65
8.2.80.0040.00417.97
8.2.70.0050.00317.88
8.2.60.0050.00318.18
8.2.50.0000.01018.07
8.2.40.0000.00818.33
8.2.30.0000.00819.77
8.2.20.0040.00417.99
8.2.10.0040.00418.41
8.2.00.0000.00718.09
8.1.280.0140.00325.92
8.1.270.0050.00319.13
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00822.23
8.1.230.0080.00421.19
8.1.220.0030.00617.91
8.1.210.0090.00018.77
8.1.200.0120.00017.47
8.1.190.0040.00417.60
8.1.180.0000.00918.10
8.1.170.0030.00518.94
8.1.160.0000.00722.24
8.1.150.0040.00419.20
8.1.140.0040.00417.73
8.1.130.0040.00418.01
8.1.120.0040.00417.53
8.1.110.0000.00717.57
8.1.100.0000.00817.71
8.1.90.0070.00017.61
8.1.80.0030.00517.71
8.1.70.0000.00717.69
8.1.60.0100.00017.84
8.1.50.0000.00817.68
8.1.40.0030.00617.79
8.1.30.0040.00417.82
8.1.20.0040.00417.81
8.1.10.0040.00417.81
8.1.00.0070.00417.67
8.0.300.0050.00318.77
8.0.290.0040.00417.13
8.0.280.0070.00018.57
8.0.270.0030.00317.38
8.0.260.0040.00417.43
8.0.250.0070.00017.16
8.0.240.0030.00317.14
8.0.230.0000.00717.14
8.0.220.0040.00417.05
8.0.210.0030.00317.24
8.0.200.0000.00617.32
8.0.190.0060.00317.26
8.0.180.0030.00517.10
8.0.170.0030.00517.16
8.0.160.0000.00717.29
8.0.150.0050.00317.12
8.0.140.0040.00417.20
8.0.130.0000.00513.58
8.0.120.0080.00017.08
8.0.110.0000.01017.09
8.0.100.0050.00217.07
8.0.90.0040.00417.14
8.0.80.0030.01317.23
8.0.70.0070.00017.27
8.0.60.0070.00017.21
8.0.50.0040.00417.23
8.0.30.0120.01117.41
8.0.20.0120.00717.40
8.0.10.0040.00417.13
8.0.00.0030.01416.99
7.4.330.0020.00215.44
7.4.320.0040.00416.84
7.4.300.0000.00716.70
7.4.290.0000.00716.93
7.4.280.0040.00416.67
7.4.270.0040.00416.68
7.4.260.0000.00816.78
7.4.250.0070.00016.87
7.4.240.0050.00216.80
7.4.230.0000.00716.81
7.4.220.0070.01116.82
7.4.210.0050.01016.77
7.4.200.0000.00716.75
7.4.160.0040.01316.72
7.4.150.0080.01117.40
7.4.140.0060.01017.86
7.4.130.0070.01016.65
7.4.120.0060.01416.76
7.4.110.0150.00316.76
7.4.100.0100.00716.88
7.4.90.0150.00316.72
7.4.80.0140.01219.39
7.4.70.0130.00916.88
7.4.60.0110.00616.61
7.4.50.0050.00216.79
7.4.40.0150.01116.77
7.4.30.0110.00616.76
7.4.00.0060.00615.01
7.3.330.0030.00313.14
7.3.320.0000.00813.43
7.3.310.0000.00716.58
7.3.300.0030.00316.53
7.3.290.0030.00316.41
7.3.280.0050.01016.45
7.3.270.0120.00617.40
7.3.260.0110.00716.73
7.3.250.0160.00316.47
7.3.240.0150.00416.50
7.3.230.0190.00316.60
7.3.210.0040.01316.71
7.3.200.0080.01119.39
7.3.190.0090.00816.51
7.3.180.0080.00916.65
7.3.170.0050.01416.62
7.3.160.0200.00316.58
7.2.330.0060.01116.82
7.2.320.0100.01317.01
7.2.310.0090.00916.63
7.2.300.0090.01216.69
7.2.290.0030.01516.86
7.2.00.0040.01619.55
7.1.100.0030.01318.22
7.1.70.0030.00617.31
7.1.60.0070.00317.29
7.1.50.0060.01516.75
7.1.00.0130.06722.59
7.0.200.0030.01316.71
7.0.140.0000.07022.13
7.0.60.0100.03320.09
7.0.50.0170.04718.00
7.0.40.0030.05320.13
7.0.30.0330.07320.26
7.0.20.0300.05720.28
7.0.10.0070.09020.17
7.0.00.0100.07020.28
5.6.280.0030.07020.95
5.6.210.0100.04020.81
5.6.200.0100.08018.23
5.6.190.0070.04020.83
5.6.180.0170.04320.85
5.6.170.0070.05020.80
5.6.160.0070.08020.59
5.6.150.0000.04318.23
5.6.140.0070.05018.29
5.6.130.0130.04318.41
5.6.120.0100.07321.02
5.6.110.0100.06721.09
5.6.100.0000.07721.00
5.6.90.0100.04021.11
5.6.80.0100.07020.59
5.5.350.0330.05720.39
5.5.340.0130.08018.02
5.5.330.0100.08320.38
5.5.320.0070.08320.45
5.5.310.0330.03720.41
5.5.300.0100.04718.02
5.5.290.0130.04318.07
5.5.280.0200.06321.09
5.5.270.0130.07320.90
5.5.260.0000.04320.80
5.5.250.0100.08020.80
5.5.240.0070.05020.41
5.4.450.0430.06019.41
5.4.440.0770.05719.65
5.4.430.1070.06719.68
5.4.420.0630.04719.54
5.4.410.0170.04719.50
5.4.400.0870.06019.36
5.4.390.0970.05318.85
5.4.380.1100.07018.75
5.4.370.0970.04018.77
5.4.360.0730.06018.80
5.4.350.0900.04318.79
5.4.340.0800.05018.75
5.4.320.0870.06318.78
5.4.310.0730.05318.86
5.4.300.0770.05718.75
5.4.290.0930.07318.74
5.4.280.0800.05318.80
5.4.270.0800.06018.76
5.4.260.0800.04718.80
5.4.250.0870.05018.60
5.4.240.0870.05018.74
5.4.230.0900.06018.53
5.4.220.0970.05718.75
5.4.210.1030.04718.75
5.4.200.0900.05716.86
5.4.190.0930.05318.73
5.4.180.0900.06018.75
5.4.170.1000.04718.73
5.4.160.1070.06318.59
5.4.150.1030.04318.77
5.4.140.0770.05316.49
5.4.130.1130.05016.19
5.4.120.0930.05316.43
5.4.110.0930.04716.46
5.4.100.0800.05016.40
5.4.90.0800.05716.26
5.4.80.1070.04016.48
5.4.70.1000.06016.45
5.4.60.0930.05316.19
5.4.50.0970.05016.45
5.4.40.1000.04716.18
5.4.30.1100.03316.43
5.4.20.0900.05716.36
5.4.10.0970.04716.18
5.4.00.0970.05315.97
5.3.290.1070.06014.81
5.3.280.1000.04314.77
5.3.270.0970.05314.67
5.3.260.0730.06314.79
5.3.250.0900.04314.67
5.3.240.0830.05014.78
5.3.230.0770.05314.77
5.3.220.0930.07314.85
5.3.210.0970.04714.75
5.3.200.0870.05714.73
5.3.190.0870.06314.68
5.3.180.0900.06314.77
5.3.170.1000.05014.77
5.3.160.0900.05314.84
5.3.150.0970.04714.63
5.3.140.0870.04014.75
5.3.130.0730.05714.73
5.3.120.0870.04714.85
5.3.110.0870.04714.77
5.3.100.1000.05714.24
5.3.90.0900.05314.20
5.3.80.0930.05314.20
5.3.70.1000.05314.18
5.3.60.0800.05314.13
5.3.50.0830.05014.09
5.3.40.0730.06314.09
5.3.30.0600.06314.01
5.3.20.0670.06013.88
5.3.10.0670.05713.86
5.3.00.0900.05313.82
5.2.170.0730.04011.29
5.2.160.0730.04711.45
5.2.150.0730.04311.29
5.2.140.0730.04711.36
5.2.130.0730.04011.30
5.2.120.0870.02711.20
5.2.110.0700.04711.22
5.2.100.0670.04011.23
5.2.90.0670.04311.29
5.2.80.0830.04311.27
5.2.70.0630.04011.19
5.2.60.0670.03711.21
5.2.50.0630.04311.30
5.2.40.0570.04311.11
5.2.30.0630.04311.14
5.2.20.0670.03711.01
5.2.10.0600.03711.06
5.2.00.0630.05010.92
5.1.60.0600.05010.14
5.1.50.0330.04010.10
5.1.40.0070.03710.18
5.1.30.0070.03710.46
5.1.20.0030.04310.52
5.1.10.0070.05010.16
5.1.00.0070.04310.18
5.0.50.0170.0308.72
5.0.40.0300.0278.59
5.0.30.0230.0478.39
5.0.20.0270.0238.26
5.0.10.0230.0308.43
5.0.00.0370.0378.22
4.4.90.0400.0175.91
4.4.80.0230.0275.85
4.4.70.0200.0275.91
4.4.60.0330.0205.89
4.4.50.0370.0175.97
4.4.40.0330.0335.86
4.4.30.0300.0235.92
4.4.20.0330.0205.98
4.4.10.0230.0275.93
4.4.00.0200.0405.84
4.3.110.0270.0205.85
4.3.100.0330.0175.79
4.3.90.0300.0205.77
4.3.80.0330.0335.77
4.3.70.0330.0175.86
4.3.60.0270.0275.81
4.3.50.0230.0235.82
4.3.40.0300.0405.78
4.3.30.0100.0274.59
4.3.20.0100.0234.55
4.3.10.0130.0204.57
4.3.00.0100.0209.39

preferences:
50.69 ms | 401 KiB | 5 Q