3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = file_get_contents('http://www.ludibay.net/'); libxml_use_internal_errors(true); $encoding = mb_detect_encoding($content); $doc = new \DomDocument(); $res = $doc->loadHTML($content); //some treatment on nodes here echo $doc->saveHTML();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lItYb
function name:  (null)
number of ops:  22
compiled vars:  !0 = $content, !1 = $encoding, !2 = $doc, !3 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'file_get_contents'
          1        SEND_VAL                                                 'http%3A%2F%2Fwww.ludibay.net%2F'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    5     4        INIT_FCALL                                               'libxml_use_internal_errors'
          5        SEND_VAL                                                 <true>
          6        DO_ICALL                                                 
    6     7        INIT_FCALL                                               'mb_detect_encoding'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !1, $7
    7    11        NEW                                              $9      'DomDocument'
         12        DO_FCALL                                      0          
         13        ASSIGN                                                   !2, $9
    9    14        INIT_METHOD_CALL                                         !2, 'loadHTML'
         15        SEND_VAR_EX                                              !0
         16        DO_FCALL                                      0  $12     
         17        ASSIGN                                                   !3, $12
   11    18        INIT_METHOD_CALL                                         !2, 'saveHTML'
         19        DO_FCALL                                      0  $14     
         20        ECHO                                                     $14
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.43 ms | 1395 KiB | 19 Q