3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <html> <head><title></title></head> <body> <content type="text">the content</content> </body> </html> XML; $dom = new DOMDocument(); $dom->loadXML($xml); echo $dom->getElementsByTagName("content")->item(0)->nodeValue;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FB9Zv
function name:  (null)
number of ops:  16
compiled vars:  !0 = $xml, !1 = $dom
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Chtml%3E%0A%3Chead%3E%3Ctitle%3E%3C%2Ftitle%3E%3C%2Fhead%3E%0A%3Cbody%3E%0A%3Ccontent+type%3D%22text%22%3Ethe+content%3C%2Fcontent%3E%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   10     1        NEW                                              $3      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
   11     4        INIT_METHOD_CALL                                         !1, 'loadXML'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
   12     7        INIT_METHOD_CALL                                         !1, 'getElementsByTagName'
          8        SEND_VAL_EX                                              'content'
          9        DO_FCALL                                      0  $7      
         10        INIT_METHOD_CALL                                         $7, 'item'
         11        SEND_VAL_EX                                              0
         12        DO_FCALL                                      0  $8      
         13        FETCH_OBJ_R                                      ~9      $8, 'nodeValue'
         14        ECHO                                                     ~9
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.51 ms | 1393 KiB | 13 Q