3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $xml = new SimpleXMLElement( '<DOM> <TAB id="ID1" width="30.1" height="0.5" ></TAB> <TAB id="ID2" width="15.7" height="1.8" ></TAB> </DOM>'); foreach ($xml->children() as $second_level) { echo $second_level->attributes()->id . ; $width = (float)$second_level->attributes()->width; echo $width * 10 . ; $height = (float)$second_level->attributes()->height; echo $height * 10 . ; }
Output for 5.3.0 - 5.5.9
Parse error: syntax error, unexpected ';' in /in/KPovb on line 10
Process exited with code 255.