3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<< EOT <?xml version='1.0' encoding='UTF-8'?> <eveapi version="2"> <currentTime>2013-10-01 18:00:01</currentTime> <result> <rowset name="members" key="characterID" columns="characterID, name"> <row characterID="2234" name="Bob"> <format type="test">Bob format</format> </row> <row characterID="555" name="John">test1 <format type="test">John format</format> </row> </rowset> </result> <cachedUntil>2013-10-01 18:57:01</cachedUntil> </eveapi> EOT; $simpleXML = simplexml_load_string($xml); // Load XML string data into the simplexml object parser foreach ($simpleXML->result->rowset as $rowset) { foreach ($rowset->row as $row) { $titles = []; echo "cp "; print_r($row); echo " cp "; $name = $row['name']->__toString(); foreach($row as $attrib){ if($attrib['name']->__toString() === 'titles'){ foreach($attrib as $title){ $titles[] = $title['titleName']->__toString(); } } } echo $name . ' : ' . implode(' - ', $titles) . "<br/>\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.70.0180.00416.75
8.3.60.0170.00318.93
8.3.50.0100.00822.11
8.3.40.0090.00618.98
8.3.30.0030.01019.27
8.3.20.0000.00820.59
8.3.10.0050.00322.34
8.3.00.0000.00822.59
8.2.180.0070.01416.88
8.2.170.0090.00922.96
8.2.160.0070.00721.01
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0120.00326.16
8.2.120.0050.00319.48
8.2.110.0060.00319.57
8.2.100.0130.00018.09
8.2.90.0050.00319.46
8.2.80.0050.00318.15
8.2.70.0000.00918.00
8.2.60.0060.00318.18
8.2.50.0030.00518.07
8.2.40.0000.00818.47
8.2.30.0050.00318.39
8.2.20.0080.00017.93
8.2.10.0050.00317.91
8.2.00.0040.00418.02
8.1.280.0030.01425.92
8.1.270.0080.00022.04
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00021.00
8.1.230.0070.00421.00
8.1.220.0080.00018.01
8.1.210.0030.00618.77
8.1.200.0060.00317.48
8.1.190.0000.00817.78
8.1.180.0050.00318.91
8.1.170.0040.00418.84
8.1.160.0040.00422.32
8.1.150.0040.00418.80
8.1.140.0070.00017.65
8.1.130.0110.00018.07
8.1.120.0070.00017.73
8.1.110.0000.00817.61
8.1.100.0040.00417.63
8.1.90.0000.00717.57
8.1.80.0040.00417.61
8.1.70.0040.00417.57
8.1.60.0130.00317.70
8.1.50.0070.00017.75
8.1.40.0000.00817.73
8.1.30.0000.00817.76
8.1.20.0080.00017.91
8.1.10.0040.00417.82
8.1.00.0080.00017.80
8.0.300.0000.00718.77
8.0.290.0080.00017.29
8.0.280.0000.00718.71
8.0.270.0070.00017.34
8.0.260.0040.00417.04
8.0.250.0000.00717.26
8.0.240.0000.00917.29
8.0.230.0000.00717.28
8.0.220.0030.00317.21
8.0.210.0040.00417.09
8.0.200.0040.00417.25
8.0.190.0030.00617.21
8.0.180.0000.01017.07
8.0.170.0000.00817.07
8.0.160.0040.00417.09
8.0.150.0040.00417.19
8.0.140.0030.00616.98
8.0.130.0060.00313.65
8.0.120.0000.00916.99
8.0.110.0060.00316.96
8.0.100.0030.00516.95
8.0.90.0070.00017.06
8.0.80.0060.00917.18
8.0.70.0040.00416.95
8.0.60.0070.00017.18
8.0.50.0040.00417.12
8.0.30.0080.01417.39
8.0.20.0130.00917.40
8.0.10.0050.00217.14
8.0.00.0090.00916.96
7.4.330.0050.00015.36
7.4.320.0040.00416.72
7.4.300.0000.00716.71
7.4.290.0000.00716.64
7.4.280.0000.00716.76
7.4.270.0100.00016.83
7.4.260.0050.00316.79
7.4.250.0030.00616.54
7.4.240.0040.00316.79
7.4.230.0050.00316.77
7.4.220.0090.00916.73
7.4.210.0090.00816.71
7.4.200.0050.00316.89
7.4.190.0000.00716.88
7.4.160.0080.00816.79
7.4.150.0040.01217.40
7.4.140.0120.01017.86
7.4.130.0100.00916.65
7.4.120.0120.00516.78
7.4.110.0070.01116.75
7.4.100.0060.01216.84
7.4.90.0140.00316.75
7.4.80.0030.01419.39
7.4.70.0140.00316.70
7.4.60.0190.00416.71
7.4.50.0000.00816.58
7.4.40.0040.00822.77
7.4.30.0060.01016.73
7.4.00.0030.01215.08
7.3.330.0000.00513.50
7.3.320.0050.00013.23
7.3.310.0000.00716.70
7.3.300.0030.00316.56
7.3.290.0080.00616.58
7.3.280.0090.01116.54
7.3.270.0080.00817.40
7.3.260.0180.00316.79
7.3.250.0150.00816.75
7.3.240.0060.01016.48
7.3.230.0090.00816.73
7.3.210.0100.00716.80
7.3.200.0150.00419.39
7.3.190.0090.00916.65
7.3.180.0030.01816.73
7.3.170.0140.00316.62
7.3.160.0060.01016.69
7.3.120.0050.01114.91
7.3.110.0110.00715.19
7.3.100.0060.01215.18
7.3.90.0060.00914.93
7.3.80.0000.01315.21
7.3.70.0070.00714.73
7.3.60.0040.00814.91
7.3.50.0000.01315.02
7.3.40.0030.00714.86
7.3.30.0040.01114.83
7.3.20.0070.00716.91
7.3.10.0090.00816.60
7.3.00.0080.00516.73
7.2.330.0060.01216.89
7.2.320.0100.01416.88
7.2.310.0120.00916.69
7.2.300.0030.01416.73
7.2.290.0100.00616.77
7.2.250.0110.00715.30
7.2.240.0070.01015.41
7.2.230.0000.01515.02
7.2.220.0090.00315.03
7.2.210.0000.01615.29
7.2.200.0040.01115.23
7.2.190.0000.01315.36
7.2.180.0050.00515.13
7.2.170.0000.01315.25
7.2.130.0040.00716.89
7.2.120.0090.00717.08
7.2.110.0090.00617.11
7.2.100.0110.00617.03
7.2.90.0100.00317.16
7.2.80.0030.01116.99
7.2.70.0110.00517.02
7.2.60.0080.00517.03
7.2.50.0080.00917.01
7.2.40.0140.00316.91
7.2.30.0030.00817.22
7.2.20.0090.00617.03
7.2.10.0110.00517.02
7.2.00.0040.00817.94
7.1.330.0070.00716.03
7.1.320.0060.00916.01
7.1.310.0030.01215.92
7.1.300.0030.00615.76
7.1.290.0070.00415.99
7.1.280.0000.01415.95
7.1.270.0030.00715.88
7.1.260.0060.00315.87
7.1.250.0140.00315.83
7.1.200.0070.00415.75
7.1.100.0000.00818.27
7.1.70.0000.01017.25
7.1.60.0070.01819.82
7.1.50.0090.00617.05
7.1.00.0070.07322.55
7.0.200.0000.01016.89
7.0.140.0030.07022.16
7.0.60.0030.04320.00
7.0.50.0100.05017.97
7.0.40.0070.05020.48
7.0.30.0130.04720.26
7.0.20.0170.06020.17
7.0.10.0100.03720.16
7.0.00.0000.06720.40
5.6.280.0000.07721.01
5.6.210.0000.04320.65
5.6.200.0030.06018.22
5.6.190.0030.04720.81
5.6.180.0300.07320.57
5.6.170.0400.05720.68
5.6.160.0070.05020.48
5.6.150.0070.08318.25
5.6.140.0030.06318.24
5.6.130.0070.04718.25
5.6.120.0130.05021.13
5.6.110.0070.08021.21
5.6.100.0100.07321.19
5.6.90.0070.09021.20
5.6.80.0170.06020.63
5.6.70.4470.04320.49
5.5.350.0100.06320.35
5.5.340.0070.04318.15
5.5.330.0100.07720.29
5.5.320.0270.05020.39
5.5.310.0300.06020.36
5.5.300.0100.08018.04
5.5.290.0000.05318.05
5.5.280.0130.04720.98
5.5.270.0070.08020.93
5.5.260.0100.03320.94
5.5.250.0030.08320.84
5.5.240.0130.05020.34
5.4.450.0070.06019.49
5.4.440.0570.06019.46
5.4.430.0130.05319.70
5.4.420.0100.05719.41
5.4.410.0130.05019.29
5.4.400.0830.00018.89
5.4.390.0630.00018.80
5.4.380.0330.04718.86
5.4.370.0170.06018.58
5.4.360.0400.04318.71
5.4.350.0300.05018.49
5.4.340.0300.05018.70
5.4.320.0090.04212.62
5.4.310.0080.04012.62
5.4.300.0060.04412.62
5.4.290.0080.03912.63
5.4.280.0050.03812.52
5.4.270.0040.03712.52
5.4.260.0100.06018.96
5.4.250.0070.05318.88
5.4.240.0130.05318.96
5.4.230.0070.07319.12
5.4.220.0000.06018.91
5.4.210.0100.07018.78
5.4.200.0100.05019.10
5.4.190.0070.08719.00
5.4.180.0130.04718.79
5.4.170.0030.05318.90
5.4.160.0130.04718.87
5.4.150.0130.05019.10
5.4.140.0100.05316.33
5.4.130.0070.06316.29
5.4.120.0070.05016.32
5.4.110.0070.05016.60
5.4.100.0130.04316.59
5.4.90.0100.06716.41
5.4.80.0030.07016.39
5.4.70.0030.05016.52
5.4.60.0070.05016.50
5.4.50.0070.04716.38
5.4.40.0070.05016.32
5.4.30.0070.05016.50
5.4.20.0100.06716.38
5.4.10.0130.05316.66
5.4.00.0000.05316.03
5.3.290.0070.03812.80
5.3.280.0030.05714.46
5.3.270.0070.05314.63
5.3.260.0070.05314.47
5.3.250.0100.04714.46
5.3.240.0130.07314.49
5.3.230.0100.07014.48
5.3.220.0130.06314.45
5.3.210.0070.07714.41
5.3.200.0070.05714.59
5.3.190.0100.06714.49
5.3.180.0100.04714.58
5.3.170.0130.04314.59
5.3.160.0100.06714.45
5.3.150.0100.04714.41
5.3.140.0030.05714.56
5.3.130.0030.05714.39
5.3.120.0100.05014.57
5.3.110.0030.05314.41
5.3.100.0130.04714.04
5.3.90.0070.07313.94
5.3.80.0130.04313.96
5.3.70.0070.05314.02
5.3.60.0070.06314.15
5.3.50.0070.06013.97
5.3.40.0070.05013.73
5.3.30.0100.04313.95
5.3.20.0170.04013.69
5.3.10.0070.07313.52
5.3.00.0100.04713.66
5.2.170.0070.04011.14
5.2.160.0070.04011.24
5.2.150.0130.03710.91
5.2.140.0030.04311.08
5.2.130.0070.04011.13
5.2.120.0070.05311.02
5.2.110.0030.04311.11
5.2.100.0030.04011.05
5.2.90.0030.04011.11
5.2.80.0000.05711.01
5.2.70.0130.04710.85
5.2.60.0130.05010.97
5.2.50.0030.06311.18
5.2.40.0070.03710.88
5.2.30.0000.06010.88
5.2.20.0030.04310.98
5.2.10.0070.05310.89
5.2.00.0070.05310.82
5.1.60.0100.03010.26
5.1.50.0030.0339.95
5.1.40.0030.0339.91
5.1.30.0100.03710.44
5.1.20.0070.03310.60
5.1.10.0030.04010.12
5.1.00.0130.04310.33
5.0.50.0000.0338.77
5.0.40.0000.0308.66
5.0.30.0030.0408.27
5.0.20.0030.0278.41
5.0.10.0000.0308.29
5.0.00.0130.0308.18
4.4.90.0070.0277.42
4.4.80.0000.0237.42
4.4.70.0070.0237.42
4.4.60.0070.0177.42
4.4.50.0030.0277.42
4.4.40.0000.0477.42
4.4.30.0030.0207.42
4.4.20.0070.0277.42
4.4.10.0000.0237.42
4.4.00.0100.0307.42
4.3.110.0000.0277.42
4.3.100.0000.0307.42
4.3.90.0070.0277.42
4.3.80.0070.0407.42
4.3.70.0070.0207.42
4.3.60.0070.0177.42
4.3.50.0030.0237.42
4.3.40.0030.0307.42
4.3.30.0100.0137.42
4.3.20.0030.0207.42
4.3.10.0000.0237.42
4.3.00.0100.0137.29

preferences:
52.16 ms | 401 KiB | 5 Q