3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = file_get_contents('http://techgroove.net/'); $dom = new DOMDocument(); $dom->loadHTML($string); $dom->preserveWhiteSpace = false; //get all meta tags $el = $dom->getElementsByTagName('meta'); echo'<pre>'; print_r($el); echo'</pre>'; foreach($el as $val){ //get value of each content echo $val -> getAttribute('content').'<br>'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 22, Position 2 = 29
Branch analysis from position: 22
2 jumps found. (Code = 78) Position 1 = 23, Position 2 = 29
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
filename:       /in/Qrg1e
function name:  (null)
number of ops:  31
compiled vars:  !0 = $string, !1 = $dom, !2 = $el, !3 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'file_get_contents'
          1        SEND_VAL                                                 'http%3A%2F%2Ftechgroove.net%2F'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    4     4        NEW                                              $6      'DOMDocument'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $6
    5     7        INIT_METHOD_CALL                                         !1, 'loadHTML'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
    6    10        ASSIGN_OBJ                                               !1, 'preserveWhiteSpace'
         11        OP_DATA                                                  <false>
    8    12        INIT_METHOD_CALL                                         !1, 'getElementsByTagName'
         13        SEND_VAL_EX                                              'meta'
         14        DO_FCALL                                      0  $11     
         15        ASSIGN                                                   !2, $11
   10    16        ECHO                                                     '%3Cpre%3E'
   11    17        INIT_FCALL                                               'print_r'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                                 
   12    20        ECHO                                                     '%3C%2Fpre%3E'
   14    21      > FE_RESET_R                                       $14     !2, ->29
         22    > > FE_FETCH_R                                               $14, !3, ->29
   16    23    >   INIT_METHOD_CALL                                         !3, 'getAttribute'
         24        SEND_VAL_EX                                              'content'
         25        DO_FCALL                                      0  $15     
         26        CONCAT                                           ~16     $15, '%3Cbr%3E'
         27        ECHO                                                     ~16
   14    28      > JMP                                                      ->22
         29    >   FE_FREE                                                  $14
   17    30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.1 ms | 1396 KiB | 17 Q