3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<< 'WOW' <p>Jaźń.</p> <p>gęślą<a href="http://example.com/?abc&def">zażółć</a></p> <p>Hello!</p> WOW; $dom = new DOMDocument(); $dom->loadHTML(mb_convert_encoding($html, 'HTML-ENTITIES', "UTF-8"), LIBXML_HTML_NODEFDTD);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MXN5X
function name:  (null)
number of ops:  14
compiled vars:  !0 = $html, !1 = $dom
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cp%3EJa%C5%BA%C5%84.%3C%2Fp%3E%0A%3Cp%3Eg%C4%99%C5%9Bl%C4%85%3Ca+href%3D%22http%3A%2F%2Fexample.com%2F%3Fabc%26def%22%3Eza%C5%BC%C3%B3%C5%82%C4%87%3C%2Fa%3E%3C%2Fp%3E%0A%3Cp%3EHello%21%3C%2Fp%3E'
    7     1        NEW                                              $3      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
    8     4        INIT_METHOD_CALL                                         !1, 'loadHTML'
          5        INIT_FCALL                                               'mb_convert_encoding'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 'HTML-ENTITIES'
          8        SEND_VAL                                                 'UTF-8'
          9        DO_ICALL                                         $6      
         10        SEND_VAR_NO_REF_EX                                       $6
         11        SEND_VAL_EX                                              4
         12        DO_FCALL                                      0          
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.81 ms | 1012 KiB | 14 Q