3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:cb="http://www.cbwiki.net/wiki/index.php/Specification_1.1" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/1999/02/22-rdf-syntax-ns# rdf.xsd"> <script id="tinyhippos-injected"/> <channel rdf:about="http://www.federalreserve.gov/releases/H15">...</channel> <item rdf:about="http://www.federalreserve.gov/releases/H15#1"> <title> US: H15 0.41 2014-10-22 FRB Market yield on U.S. Treasury securities at 2-year constant maturity, quoted on investment basis </title> <link>http://www.federalreserve.gov/releases/H15#1</link> <description>...</description> <dc:date>2014-10-22T12:00:00-05:00</dc:date> <dc:language>en</dc:language> <dc:creator>FRB</dc:creator> <cb:statistics> <cb:country>US</cb:country> <cb:institutionAbbrev>FRB</cb:institutionAbbrev> <cb:otherStatistic> <cb:value decimals="2" unit_mult="1" units="Percent:_Per_Year">0.41</cb:value> <cb:topic>H15</cb:topic> <cb:coverage> Market yield on U.S. Treasury securities at 2-year constant maturity, quoted on investment basis </cb:coverage> <cb:observationPeriod frequency="business">2014-10-22</cb:observationPeriod> <cb:dataType/> </cb:otherStatistic> </cb:statistics> </item> </rdf:RDF>'; $xml = simplexml_load_string( $xml); foreach( $xml->xpath( './/child') as $child) { echo $child->attributes()['name'] . "\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.0090.00618.81
8.3.50.0150.00622.30
8.3.40.0140.00419.00
8.3.30.0100.00319.43
8.3.20.0000.00820.74
8.3.10.0060.00324.03
8.3.00.0040.00419.51
8.2.180.0110.00717.13
8.2.170.0100.00722.96
8.2.160.0100.00320.84
8.2.150.0030.00624.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0030.00622.75
8.2.110.0060.00321.56
8.2.100.0120.00617.88
8.2.90.0060.00318.34
8.2.80.0040.00419.77
8.2.70.0030.00617.88
8.2.60.0050.00318.30
8.2.50.0030.00518.10
8.2.40.0040.00420.39
8.2.30.0070.00018.60
8.2.20.0050.00318.09
8.2.10.0000.00818.49
8.2.00.0030.00618.10
8.1.280.0060.01225.92
8.1.270.0050.00324.29
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0030.00622.84
8.1.230.0120.00021.34
8.1.220.0030.00618.14
8.1.210.0030.00619.47
8.1.200.0130.00317.72
8.1.190.0050.00317.73
8.1.180.0000.00918.10
8.1.170.0060.00319.11
8.1.160.0040.00422.41
8.1.150.0070.00019.28
8.1.140.0040.00417.83
8.1.130.0040.00419.63
8.1.120.0000.00717.99
8.1.110.0040.00417.89
8.1.100.0070.00017.86
8.1.90.0000.00717.74
8.1.80.0030.00517.87
8.1.70.0000.00717.71
8.1.60.0090.00017.91
8.1.50.0000.00718.03
8.1.40.0040.00417.80
8.1.30.0040.00418.14
8.1.20.0000.00817.96
8.1.10.0070.00017.75
8.1.00.0050.00317.85
8.0.300.0080.00020.53
8.0.290.0000.00717.25
8.0.280.0040.00418.83
8.0.270.0030.00317.64
8.0.260.0070.00017.15
8.0.250.0070.00017.19
8.0.240.0080.00017.30
8.0.230.0000.00717.36
8.0.220.0040.00417.28
8.0.210.0050.00317.42
8.0.200.0030.00317.45
8.0.190.0040.00417.25
8.0.180.0050.00317.40
8.0.170.0080.00017.39
8.0.160.0100.00017.45
8.0.150.0050.00317.19
8.0.140.0040.00417.22
8.0.130.0000.00613.77
8.0.120.0040.00417.15
8.0.110.0000.00817.20
8.0.100.0050.00217.32
8.0.90.0050.00317.31
8.0.80.0060.01017.36
8.0.70.0050.00317.34
8.0.60.0040.00417.30
8.0.50.0030.00517.41
8.0.30.0080.01117.39
8.0.20.0050.01417.48
8.0.10.0040.00417.34
8.0.00.0030.01417.32
7.4.330.0020.00215.39
7.4.320.0030.00317.02
7.4.300.0000.00617.00
7.4.290.0000.00717.01
7.4.280.0040.00417.02
7.4.270.0040.00417.08
7.4.260.0000.00717.04
7.4.250.0000.00716.94
7.4.240.0070.00016.87
7.4.230.0040.00417.04
7.4.220.0150.00316.97
7.4.210.0070.00716.93
7.4.200.0000.00716.92
7.4.160.0130.01016.75
7.4.150.0060.01117.40
7.4.140.0110.01117.86
7.4.130.0150.00216.88
7.4.120.0080.00816.91
7.4.110.0150.00916.79
7.4.100.0140.00316.91
7.4.90.0070.01016.80
7.4.80.0110.00719.39
7.4.70.0140.00316.84
7.4.60.0060.01116.81
7.4.50.0020.00216.86
7.4.40.0100.00716.65
7.4.30.0100.00716.80
7.4.00.0070.00714.91
7.3.330.0000.00613.26
7.3.320.0030.00313.28
7.3.310.0000.00716.49
7.3.300.0000.00716.71
7.3.290.0060.00916.53
7.3.280.0100.00616.60
7.3.270.0130.00417.40
7.3.260.0150.00616.36
7.3.250.0090.00816.75
7.3.240.0040.01416.65
7.3.230.0100.00716.86
7.3.210.0000.01616.99
7.3.200.0110.00619.39
7.3.190.0100.00716.70
7.3.180.0120.00416.49
7.3.170.0040.01416.72
7.3.160.0100.00716.57
7.2.330.0100.00716.99
7.2.320.0170.00717.23
7.2.310.0060.01216.90
7.2.300.0030.01316.95
7.2.290.0130.00917.09
7.2.60.0040.00417.13
7.1.200.0090.00615.79
7.1.70.0000.01316.91
7.1.60.0030.02119.32
7.1.50.0040.00716.84
7.1.00.0030.07722.57
7.0.200.0080.00817.02
7.0.140.0000.07722.40
7.0.60.0100.07720.25
7.0.50.0070.08318.01
7.0.40.0070.07720.48
7.0.30.0430.05020.36
7.0.20.0230.05320.48
7.0.10.0030.09020.21
7.0.00.0030.09720.38
5.6.280.0000.07721.33
5.6.210.0070.08020.93
5.6.200.0100.05318.35
5.6.190.0100.05020.92
5.6.180.0300.05720.88
5.6.170.0270.04720.77
5.6.160.0030.07720.77
5.6.150.0130.07018.38
5.6.140.0100.04718.38
5.6.130.0070.07318.39
5.6.120.0100.05321.20
5.6.110.0170.08321.30
5.6.100.0070.07321.21
5.6.90.0100.04321.22
5.6.80.0130.05320.64
5.5.350.0100.03320.51
5.5.340.0100.06318.20
5.5.330.0130.06020.68
5.5.320.0300.07720.40
5.5.310.0200.07320.47
5.5.300.0170.06318.07
5.5.290.0030.04718.12
5.5.280.0130.05320.93
5.5.270.0100.08720.89
5.5.260.0070.08721.08
5.5.250.0070.07020.78
5.5.240.0230.07320.50
5.4.450.0700.05019.72
5.4.440.1100.06319.53
5.4.430.0700.05319.57
5.4.420.0630.00019.74
5.4.410.0670.00019.32
5.4.400.0630.00019.24
5.4.390.0700.00019.23
5.4.380.0630.00019.25
5.4.370.0630.00019.37
5.4.360.0630.00019.38
5.4.350.0630.00019.32
5.4.340.0040.03912.25
5.4.320.0080.04212.73
5.4.310.0030.04312.72
5.4.300.0070.03612.73
5.4.290.0130.03712.73
5.4.280.0070.03412.62
5.4.270.0080.04112.62
5.4.260.0080.03812.63
5.4.250.0100.04712.63
5.4.240.0050.04112.62
5.4.230.0080.03612.61
5.4.220.0050.04212.62
5.4.210.0070.03412.61
5.4.200.0050.03912.62
5.4.190.0060.03712.61
5.4.180.0040.03712.61
5.4.170.0070.03612.63
5.4.160.0080.03312.62
5.4.150.0070.03412.61
5.4.140.0050.03812.30
5.4.130.0070.03412.29
5.4.120.0050.03512.25
5.4.110.0050.03812.24
5.4.100.0050.03612.24
5.4.90.0050.04012.24
5.4.80.0020.04012.24
5.4.70.0050.04212.24
5.4.60.0060.03812.23
5.4.50.0080.04012.23
5.4.40.0100.03412.22
5.4.30.0080.03812.22
5.4.20.0050.03612.22
5.4.10.0060.03612.22
5.4.00.0100.04711.71
5.3.290.0050.04412.80
5.3.280.0110.03412.71
5.3.270.0080.03612.72
5.3.260.0050.03812.71
5.3.250.0070.03412.72
5.3.240.0090.03412.72
5.3.230.0060.03812.71
5.3.220.0040.03912.68
5.3.210.0080.03612.68
5.3.200.0040.03812.68
5.3.190.0080.04112.68
5.3.180.0090.03912.67
5.3.170.0070.03512.66
5.3.160.0090.03512.68
5.3.150.0050.03912.67
5.3.140.0090.03612.66
5.3.130.0050.04212.65
5.3.120.0110.04612.66
5.3.110.0050.04112.66
5.3.100.0090.03512.12
5.3.90.0070.03412.08
5.3.80.0050.03712.08
5.3.70.0110.03112.07
5.3.60.0080.03312.07
5.3.50.0060.03912.00
5.3.40.0060.03512.00
5.3.30.0090.03511.95
5.3.20.0060.04111.73
5.3.10.0040.03611.71
5.3.00.0030.03911.68
5.2.170.0040.0339.20
5.2.160.0040.0309.19
5.2.150.0040.0309.19
5.2.140.0050.0309.19
5.2.130.0050.0299.15
5.2.120.0080.0319.15
5.2.110.0080.0269.15
5.2.100.0040.0349.14
5.2.90.0080.0339.14
5.2.80.0070.0399.14
5.2.70.0060.0359.14
5.2.60.0080.0359.10
5.2.50.0050.0319.06
5.2.40.0070.0359.04
5.2.30.0050.0419.02
5.2.20.0070.0399.01
5.2.10.0070.0398.92
5.2.00.0070.0398.78
5.1.60.0060.0328.08
5.1.50.0090.0388.07
5.1.40.0050.0358.05
5.1.30.0080.0338.40
5.1.20.0040.0278.43
5.1.10.0100.0318.15
5.1.00.0080.0288.16
5.0.50.0030.0266.62
5.0.40.0060.0236.49
5.0.30.0040.0316.30
5.0.20.0040.0206.26
5.0.10.0030.0206.25
5.0.00.0030.0306.24
4.4.90.0030.0154.77
4.4.80.0050.0184.76
4.4.70.0050.0154.75
4.4.60.0020.0174.75
4.4.50.0040.0184.77
4.4.40.0040.0274.71
4.4.30.0050.0194.75
4.4.20.0010.0214.84
4.4.10.0020.0184.85
4.4.00.0030.0244.76
4.3.110.0040.0154.67
4.3.100.0010.0164.66
4.3.90.0020.0154.63
4.3.80.0050.0224.58
4.3.70.0010.0164.63
4.3.60.0020.0154.63
4.3.50.0020.0164.63
4.3.40.0050.0224.54
4.3.30.0030.0193.29
4.3.20.0030.0193.27
4.3.10.0030.0153.22
4.3.00.0130.0207.19

preferences:
55.31 ms | 401 KiB | 5 Q