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;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/41CRj
function name:  (null)
number of ops:  23
compiled vars:  !0 = $html, !1 = $dom, !2 = $iFrame, !3 = $src
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cdiv+class%3D%22ui-tab-pane%22+data-role%3D%22panel%22+id%3D%22feedback%22%3E%0A+%3Ciframe+scrolling%3D%22no%22+frameborder%3D%220%22+marginwidth%3D%220%22+marginheight%3D%220%22+%0Awidth%3D%22100%25%22+height%3D%22200%22+%0Athesrc%3D%22%2F%2Ffeedback.aliexpress.com%2Fdisplay%2FproductEvaluation.html%3FproductId%3D32795263337%26ownerMemberId%3D228319068%26companyId%3D237873399%26memberType%3Dseller%26startValidDate%3D%26i18n%3Dtrue%22%3E%3C%2Fiframe%3E%0A%3C%2Fdiv%3E'
    9     1        INIT_FCALL                                               'libxml_use_internal_errors'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                                 
   11     4        NEW                                              $6      'DOMDocument'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $6
   12     7        INIT_METHOD_CALL                                         !1, 'loadHTML'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
   13    10        INIT_METHOD_CALL                                         !1, 'getElementsByTagName'
         11        SEND_VAL_EX                                              'iframe'
         12        DO_FCALL                                      0  $10     
         13        INIT_METHOD_CALL                                         $10, 'item'
         14        SEND_VAL_EX                                              0
         15        DO_FCALL                                      0  $11     
         16        ASSIGN                                                   !2, $11
   14    17        INIT_METHOD_CALL                                         !2, 'getAttribute'
         18        SEND_VAL_EX                                              'thesrc'
         19        DO_FCALL                                      0  $13     
         20        ASSIGN                                                   !3, $13
   16    21        ECHO                                                     !3
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
291.42 ms | 1010 KiB | 14 Q