3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<< EOT <?xml version='1.0' encoding='UTF-8'?> <eveapi version="2"> <currentTime>2014-04-05 23:02:44</currentTime> <result> <rowset name="skillGroups" key="groupID" columns="groupName,groupID"> <row groupName="Planet Management" groupID="1241"> <rowset name="skills" key="typeID" columns="typeName,groupID,typeID,published"> <row typeName="Advanced Planetology" groupID="1241" typeID="2403" published="1"> <description> The advanced understanding of planet evolution allowing you to interpret data from scans of planets for resources at much higher resolutions. Bonus: The skill further increases the resolution of resource data when scanning a planet to allow for very precise surveying. Note: this skill cannot be trained on trial accounts. </description> <rank>5</rank> <rowset name="requiredSkills" key="typeID" columns="typeID,skillLevel"> <row typeID="2406" skillLevel="4"/> </rowset> <requiredAttributes> <secondaryAttribute>memory</secondaryAttribute> <primaryAttribute>intelligence</primaryAttribute> </requiredAttributes> <rowset name="skillBonusCollection" key="bonusType" columns="bonusType,bonusValue"> <row bonusType="canNotBeTrainedOnTrial" bonusValue="1"/> </rowset> </row> <row typeName="Planetology" groupID="1241" typeID="2406" published="1"> <description> The understanding of planet evolution allowing you to better interpret data from scans of planets for resources. Bonus: The skill increases the resolution of resource data when scanning a planet to allow for more accurate surveying. Note: this skill cannot be trained on trial accounts. </description> <rank>3</rank> <rowset name="requiredSkills" key="typeID" columns="typeID,skillLevel"> <row typeID="13279" skillLevel="3"/> <row typeID="3402" skillLevel="4"/> </rowset> <requiredAttributes> <primaryAttribute>intelligence</primaryAttribute> <secondaryAttribute>memory</secondaryAttribute> </requiredAttributes> <rowset name="skillBonusCollection" key="bonusType" columns="bonusType,bonusValue"> <row bonusType="canNotBeTrainedOnTrial" bonusValue="1"/> </rowset> </row> <row typeName="Interplanetary Consolidation" groupID="1241" typeID="2495" published="1"> <description> For each level in this skill, you may install a command center on one additional planet, to a maximum of 6 planets. You can have only one command center per planet. Cannot be trained on Trial Accounts. </description> <rank>4</rank> <rowset name="requiredSkills" key="typeID" columns="typeID,skillLevel"/> <requiredAttributes> <secondaryAttribute>intelligence</secondaryAttribute> <primaryAttribute>charisma</primaryAttribute> </requiredAttributes> <rowset name="skillBonusCollection" key="bonusType" columns="bonusType,bonusValue"> <row bonusType="canNotBeTrainedOnTrial" bonusValue="1"/> </rowset> </row> <row typeName="Command Center Upgrades" groupID="1241" typeID="2505" published="1"> <description> Each level in this skill improves the quality of command facility available to you, in turn allowing for a greater number of connected facilities on that planet. Cannot be trained on Trial Accounts. </description> <rank>4</rank> <rowset name="requiredSkills" key="typeID" columns="typeID,skillLevel"/> <requiredAttributes> <primaryAttribute>charisma</primaryAttribute> <secondaryAttribute>intelligence</secondaryAttribute> </requiredAttributes> <rowset name="skillBonusCollection" key="bonusType" columns="bonusType,bonusValue"> <row bonusType="canNotBeTrainedOnTrial" bonusValue="1"/> </rowset> </row> </rowset> </row> </rowset> </result> <cachedUntil>2013-10-01 18:57:01</cachedUntil> </eveapi> EOT; $sg = "1241"; foreach($xml->result->rowset->row as $row) { if ((string)$row['groupID'] == $sg) { foreach($row->rowset->row as $row1) { $typename = (string)$row1['typeName']; $typeid = (string)$row1['typeID']; $public = (string)$row1['published']; $description = (string)$row1->description; $groupid = (string)$row1['groupID']; $primaryattr = (string)$row1->requiredAttributes->primaryAttribute; $secondaryattr = (string)$row1->requiredAttributes->secondaryAttribute; $rank = (string)$row1->rank; $cost = "0"; foreach($row->rowset->row as $row2) { $trial = (string)$row2; echo $typeid . " " . $typename . " " . $description . " " . $public . " " . $groupid . " " . $primaryattr . " " . $secondaryattr . " " . $rank . " " . $cost . " " . $trial . "<br>"; } } }

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)
5.4.270.0270.06319.08
5.4.260.0230.05318.88
5.4.250.0230.07318.92
5.4.240.0130.07018.91
5.4.230.0270.04018.90
5.4.220.0330.08319.16
5.4.210.0300.06719.25
5.4.200.0170.06019.13
5.4.190.0230.03318.77
5.4.180.0300.03719.07
5.4.170.0270.04719.23
5.4.160.0270.06718.86
5.4.150.0300.07019.14
5.4.140.0300.06316.28
5.4.130.0170.04016.46
5.4.120.0270.06316.59
5.4.110.0270.05016.40
5.4.100.0200.07016.30
5.4.90.0270.06316.34
5.4.80.0200.04716.05
5.4.70.0270.06316.46
5.4.60.0230.03316.22
5.4.50.0170.03716.45
5.4.40.0200.07316.41
5.4.30.0300.06016.39
5.4.20.0200.06716.40
5.4.10.0230.07316.20
5.4.00.0270.05715.67
5.3.280.0400.06014.46
5.3.270.0230.06014.48
5.3.260.0230.04714.53
5.3.250.0300.06014.50
5.3.240.0270.06714.66
5.3.230.0230.07314.48
5.3.220.0200.04714.43
5.3.210.0200.08014.43
5.3.200.0230.05314.64
5.3.190.0300.07314.44
5.3.180.0230.07314.44
5.3.170.0300.04014.54
5.3.160.0170.08014.52
5.3.150.0270.07014.44
5.3.140.0270.07014.45
5.3.130.0230.05014.52
5.3.120.0200.05014.44
5.3.110.0230.07314.40
5.3.100.0230.05713.91
5.3.90.0270.06313.89
5.3.80.0270.06713.94
5.3.70.0230.04314.13
5.3.60.0230.07313.95
5.3.50.0170.08313.79
5.3.40.0200.07713.82
5.3.30.0200.07014.00
5.3.20.0270.07313.56
5.3.10.0200.05313.54
5.3.00.0270.04713.53
5.2.170.0230.03012.14
5.2.160.0230.05312.14
5.2.150.0230.04312.14
5.2.140.0170.04712.14
5.2.130.0300.05012.14
5.2.120.0170.06312.14
5.2.110.0170.06712.14
5.2.100.0130.06312.14
5.2.90.0200.05012.14
5.2.80.0100.06712.14
5.2.70.0170.06712.14
5.2.60.0200.05312.14
5.2.50.0170.06712.14
5.2.40.0130.03712.14
5.2.30.0130.03312.14
5.2.20.0170.06012.14
5.2.10.0200.04712.14
5.2.00.0170.04312.14
5.1.60.0100.04312.14
5.1.50.0170.03312.14
5.1.40.0130.05312.14
5.1.30.0170.05312.14
5.1.20.0170.04312.14
5.1.10.0230.05712.14
5.1.00.0200.05012.14
5.0.50.0070.03712.14
5.0.40.0100.02712.14
5.0.30.0070.06012.14
5.0.20.0170.03012.14
5.0.10.0100.03012.14
5.0.00.0070.04712.14
4.4.90.0130.03312.14
4.4.80.0130.02312.14
4.4.70.0100.03012.14
4.4.60.0170.02712.14
4.4.50.0100.03312.14
4.4.40.0030.03712.14
4.4.30.0070.03312.14
4.4.20.0100.04012.14
4.4.10.0100.02712.14
4.4.00.0130.04012.14
4.3.110.0070.01712.14
4.3.100.0100.03312.14
4.3.90.0030.02712.14
4.3.80.0030.03012.14
4.3.70.0130.02712.14
4.3.60.0070.02312.14
4.3.50.0070.01712.14
4.3.40.0000.03012.14
4.3.30.0030.01312.14
4.3.20.0000.02012.14
4.3.10.0000.02012.14
4.3.00.0000.01712.14

preferences:
136.2 ms | 1394 KiB | 7 Q