3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <VAST version="3.0"> <MediaFiles> <MediaFile delivery="progressive" type="video/mp4" width="640" height="360" bitrate="500" scalable="true" maintainAspectRatio="true"> <![CDATA[ https://appnext-a.akamaihd.net/banner/video/video-192347-30_o.mp4?rnd=1488986809 ]]> </MediaFile> <MediaFile delivery="progressive" type="video/mp4" width="320" height="180" bitrate="500" scalable="true" maintainAspectRatio="true"> <![CDATA[ https://appnext-a.akamaihd.net/banner/video/video-192347-30.mp4?rnd=1488986813 ]]> </MediaFile> </MediaFiles> </VAST> XML; $response = simplexml_load_string($xml); $files = $response->MediaFiles->MediaFile; foreach ($files as $file) { var_dump((string)$file); }
Output for 7.0.0 - 7.0.29, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.31, 8.2.0 - 8.2.27, 8.3.0 - 8.3.15, 8.4.1 - 8.4.2
string(84) " https://appnext-a.akamaihd.net/banner/video/video-192347-30_o.mp4?rnd=1488986809 " string(82) " https://appnext-a.akamaihd.net/banner/video/video-192347-30.mp4?rnd=1488986813 "

preferences:
46.01 ms | 408 KiB | 5 Q