3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<<'HTML' <div>&auml;</div> HTML; $document = new DOMDocument(); $document->loadHTML($html); var_dump($document->documentElement->textContent); $document = new DOMDocument(); $document->loadXML($html); var_dump($document->documentElement->textContent);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PgeeM
function name:  (null)
number of ops:  24
compiled vars:  !0 = $html, !1 = $document
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cdiv%3E%26auml%3B%3C%2Fdiv%3E'
    7     1        NEW                                              $3      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
    8     4        INIT_METHOD_CALL                                         !1, 'loadHTML'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
   10     7        INIT_FCALL                                               'var_dump'
          8        FETCH_OBJ_R                                      ~7      !1, 'documentElement'
          9        FETCH_OBJ_R                                      ~8      ~7, 'textContent'
         10        SEND_VAL                                                 ~8
         11        DO_ICALL                                                 
   12    12        NEW                                              $10     'DOMDocument'
         13        DO_FCALL                                      0          
         14        ASSIGN                                                   !1, $10
   13    15        INIT_METHOD_CALL                                         !1, 'loadXML'
         16        SEND_VAR_EX                                              !0
         17        DO_FCALL                                      0          
   15    18        INIT_FCALL                                               'var_dump'
         19        FETCH_OBJ_R                                      ~14     !1, 'documentElement'
         20        FETCH_OBJ_R                                      ~15     ~14, 'textContent'
         21        SEND_VAL                                                 ~15
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.5 ms | 997 KiB | 14 Q