3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = new SimpleXMLElement( '<DOM> <TAB gruppo="ID1" url="http://ltw1310.web.unibo.it"></TAB> <TAB gruppo="ID2" url="http://ltw1314.web.unibo.it"></TAB> </DOM>'); $serverComprati = array(); $count=0; foreach ($xml->children() as $second_level) { $second_level->attributes()->gruppo; $url = $second_level->attributes()->url; if($url != ""){ $serverComprati[$count]=$ur; } $count=$count+1; } echo $serverComprati[$count];
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $ur in /in/r4BVZ on line 14 Warning: Undefined variable $ur in /in/r4BVZ on line 14 Warning: Undefined array key 2 in /in/r4BVZ 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:
40.74 ms | 401 KiB | 8 Q