3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<< EOT <?xml version='1.0' encoding='UTF-8'?> <keys> <key> <keyID>3169149</keyID> <vCode>FQVKg5iK2k5gnMnafK6fn0K3QUKnWzjRoSv5C2TpgEtC8qFqH9Ism2E4IcFOPkgR</vCode> </key> <key> <keyID>3184662</keyID> <vCode>u7G74sPhQgKz7AqYclI40xlHWqbc7b8bZzPYDC0B4tPXnvNLHu8XbbGyert1YLMs</vCode> </key> </keys> EOT; $simpleXML = simplexml_load_string($xml); // Load XML string data into the simplexml object parser foreach ($simpleXML->keys->key as $key) { $keyID = $key['keyID']; $vCode = $key['vCode']; echo $keyID . ' : ' . $vCode; }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: foreach() argument must be of type array|object, null given in /in/rYjHc on line 18

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
43.78 ms | 401 KiB | 8 Q