3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $xml = "<ImageFormat Width="70" Height="70" Format="5" FileSize="3197" DimensionCategory="A"><URL>https://pdt.multimediarepository.testing.amadeus.com/cmr/retrieve/hotel/0404104C5B6E42CCAFE3E7F3083F6666/A</URL></ImageFormat><ImageFormat Width="100" Height="76" Format="5" FileSize="4393" DimensionCategory="B"><URL>https://pdt.multimediarepository.testing.amadeus.com/cmr/retrieve/hotel/0404104C5B6E42CCAFE3E7F3083F6666/B</URL></ImageFormat>"; $xml = simplexml_load_string( $xml); foreach( $xml->xpath( './/ImageFormat') as $child) { echo $child->attributes()['FileSize'] . "\n"; }
Output for 5.4.0 - 5.4.23
Parse error: syntax error, unexpected '70' (T_LNUMBER) in /in/bubOL on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_LNUMBER in /in/bubOL on line 2
Process exited with code 255.