3v4l.org

run code in 500+ PHP versions simultaneously
<?php echo "DOM: "; var_dump(class_exists('DOMDocument')); $html = '<div><p>Hello world</p></div>'; $dom = new DOMDocument(); $dom->loadHTML($html); echo $dom->saveHTML();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cmuoQ
function name:  (null)
number of ops:  16
compiled vars:  !0 = $html, !1 = $dom
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                         'DOM%3A+'
    4     1        INIT_FCALL                                                   'var_dump'
          2        FRAMELESS_ICALL_1                class_exists        ~2      'DOMDocument'
          3        SEND_VAL                                                     ~2
          4        DO_ICALL                                                     
    6     5        ASSIGN                                                       !0, '%3Cdiv%3E%3Cp%3EHello+world%3C%2Fp%3E%3C%2Fdiv%3E'
    8     6        NEW                                                  $5      'DOMDocument'
          7        DO_FCALL                                          0          
          8        ASSIGN                                                       !1, $5
    9     9        INIT_METHOD_CALL                                             !1, 'loadHTML'
         10        SEND_VAR_EX                                                  !0
         11        DO_FCALL                                          0          
   11    12        INIT_METHOD_CALL                                             !1, 'saveHTML'
         13        DO_FCALL                                          0  $9      
         14        ECHO                                                         $9
         15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
147.3 ms | 1420 KiB | 14 Q