3v4l.org

run code in 300+ PHP versions simultaneously
<?php $profile = "<div lang=ja><p>イリノイ州シカゴにて、アイルランド系の家庭に、</p></div>"; $dom = new DOMDocument(); $dom->loadHTML('<?xml encoding="utf-8" ?>' . $profile); echo $dom->saveHTML(); echo $profile;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QkAUf
function name:  (null)
number of ops:  13
compiled vars:  !0 = $profile, !1 = $dom
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cdiv+lang%3Dja%3E%3Cp%3E%E3%82%A4%E3%83%AA%E3%83%8E%E3%82%A4%E5%B7%9E%E3%82%B7%E3%82%AB%E3%82%B4%E3%81%AB%E3%81%A6%E3%80%81%E3%82%A2%E3%82%A4%E3%83%AB%E3%83%A9%E3%83%B3%E3%83%89%E7%B3%BB%E3%81%AE%E5%AE%B6%E5%BA%AD%E3%81%AB%E3%80%81%3C%2Fp%3E%3C%2Fdiv%3E'
    4     1        NEW                                              $3      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
    5     4        INIT_METHOD_CALL                                         !1, 'loadHTML'
          5        CONCAT                                           ~6      '%3C%3Fxml+encoding%3D%22utf-8%22+%3F%3E', !0
          6        SEND_VAL_EX                                              ~6
          7        DO_FCALL                                      0          
    6     8        INIT_METHOD_CALL                                         !1, 'saveHTML'
          9        DO_FCALL                                      0  $8      
         10        ECHO                                                     $8
    7    11        ECHO                                                     !0
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.89 ms | 1393 KiB | 13 Q