3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '<iframe src="http://player.vimeo.com/video/34134823?title=0&amp;byline=0" width="900" height="506" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'; $doc = new DOMDocument(); libxml_use_internal_errors(true); $doc->loadHTML($str); $xpath = new DOMXPath($doc); echo basename(parse_url($xpath->evaluate('string(//iframe/@src)'), PHP_URL_PATH));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bBvCO
function name:  (null)
number of ops:  26
compiled vars:  !0 = $str, !1 = $doc, !2 = $xpath
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Ciframe+src%3D%22http%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F34134823%3Ftitle%3D0%26amp%3Bbyline%3D0%22+width%3D%22900%22+height%3D%22506%22+frameborder%3D%220%22+webkitAllowFullScreen+mozallowfullscreen+allowFullScreen%3E%3C%2Fiframe%3E'
    5     1        NEW                                              $4      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $4
    6     4        INIT_FCALL                                               'libxml_use_internal_errors'
          5        SEND_VAL                                                 <true>
          6        DO_ICALL                                                 
    7     7        INIT_METHOD_CALL                                         !1, 'loadHTML'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
    8    10        NEW                                              $9      'DOMXPath'
         11        SEND_VAR_EX                                              !1
         12        DO_FCALL                                      0          
         13        ASSIGN                                                   !2, $9
    9    14        INIT_FCALL                                               'basename'
         15        INIT_FCALL                                               'parse_url'
         16        INIT_METHOD_CALL                                         !2, 'evaluate'
         17        SEND_VAL_EX                                              'string%28%2F%2Fiframe%2F%40src%29'
         18        DO_FCALL                                      0  $12     
         19        SEND_VAR                                                 $12
         20        SEND_VAL                                                 5
         21        DO_ICALL                                         $13     
         22        SEND_VAR                                                 $13
         23        DO_ICALL                                         $14     
         24        ECHO                                                     $14
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.3 ms | 1012 KiB | 16 Q