3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $xmlstr = <<<XML <Property> <images> <image number="1"> <image>http://www.blah.net/shared/depot/3168/biens/149506/images/627783.jpg </image> <image number="2"> <image>http://www.blah.net/shared/depot/3168/biens/149506/images/627794.jpg</image> </image> <image number="3"> <image>http://www.blah.net/shared/depot/3168/biens/149506/images/627792.jpg </image> </images> </Property> XML; $xml = simplexml_load_string($xmlstr); foreach ($xml->images->image as $image) { // create an array $images with number as index and url as value $i=$image[number]; $images[$i]=(string)$image; } var_dump($images); ?>
Output for 5.4.0 - 5.4.13
Parse error: syntax error, unexpected end of file in /in/lcP2l on line 28
Process exited with code 255.
Output for 5.3.0 - 5.3.23
Parse error: syntax error, unexpected $end in /in/lcP2l on line 28
Process exited with code 255.