3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = "<root> <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/mvHh3 on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_LNUMBER in /in/mvHh3 on line 3
Process exited with code 255.

preferences:
179.71 ms | 1395 KiB | 60 Q