3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<<'HTML' <div> Properly encoded: &lt;3> and &lt;+> </div> HTML; $document = new DOMDocument(); $document->loadHTML($html, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD); var_dump($document->documentElement->textContent);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jGo8c
function name:  (null)
number of ops:  14
compiled vars:  !0 = $html, !1 = $document
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cdiv%3E%0A++Properly+encoded%3A+%26lt%3B3%3E+and+%26lt%3B%2B%3E%0A%3C%2Fdiv%3E'
    9     1        NEW                                              $3      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
   10     4        INIT_METHOD_CALL                                         !1, 'loadHTML'
          5        SEND_VAR_EX                                              !0
          6        SEND_VAL_EX                                              8196
          7        DO_FCALL                                      0          
   11     8        INIT_FCALL                                               'var_dump'
          9        FETCH_OBJ_R                                      ~7      !1, 'documentElement'
         10        FETCH_OBJ_R                                      ~8      ~7, 'textContent'
         11        SEND_VAL                                                 ~8
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.56 ms | 1004 KiB | 14 Q