3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = '<div class="ui-tab-pane" data-role="panel" id="feedback"> <iframe scrolling="no" frameborder="0" marginwidth="0" marginheight="0" width="100%" height="200" thesrc="//feedback.aliexpress.com/display/productEvaluation.html?productId=32795263337&ownerMemberId=228319068&companyId=237873399&memberType=seller&startValidDate=&i18n=true"></iframe> </div>'; libxml_use_internal_errors(true); // otherwise we get an error? a 3v4l bug maybe? $dom = new DOMDocument(); $dom->loadHTML($html); $iFrame = $dom->getElementsByTagName('iframe')->item(0); $src = $iFrame->getAttribute('thesrc'); echo $src;

preferences:
25.18 ms | 404 KiB | 5 Q