3v4l.org

run code in 300+ PHP versions simultaneously
<?php $soubor = <<<DATA <?xml version="1.0" encoding="UTF-8"?> <groups> <group> <admin> <id>605</id> </admin> <members> <id>2154</id> <id>2256</id> <id>3179</id> </members> </group> <group> <admin> .... </admin> <members> ... ... </members> </group> </groups> DATA; $xml = simplexml_load_string($soubor); foreach ($xml->group as $group) { echo $group->admin->id . PHP_EOL; foreach ($group->members as $member) { foreach($member->id as $id) echo $id . PHP_EOL; } }
Output for git.master, git.master_jit, rfc.property-hooks
605 2154 2256 3179

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:
147.38 ms | 405 KiB | 5 Q