3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = new DOMDocument(); $html->loadHTML('<td valign="middle"><img src="http://example.net/email_images/social-facebook.jpg" alt="" border="0" /></td>'); //foreach($html as $node) { //print_r($html); //print_r($html->firstChild); //print_r($html->lastChild); print_r($html->getElementsByTagName('a')); //}
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SBmBj
function name:  (null)
number of ops:  13
compiled vars:  !0 = $html
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'DOMDocument'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    4     3        INIT_METHOD_CALL                                         !0, 'loadHTML'
          4        SEND_VAL_EX                                              '%3Ctd+valign%3D%22middle%22%3E%3Cimg+src%3D%22http%3A%2F%2Fexample.net%2Femail_images%2Fsocial-facebook.jpg%22+alt%3D%22%22+border%3D%220%22+%2F%3E%3C%2Ftd%3E'
          5        DO_FCALL                                      0          
    9     6        INIT_FCALL                                               'print_r'
          7        INIT_METHOD_CALL                                         !0, 'getElementsByTagName'
          8        SEND_VAL_EX                                              'a'
          9        DO_FCALL                                      0  $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                                 
   10    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.5 ms | 1394 KiB | 15 Q