3v4l.org

run code in 300+ PHP versions simultaneously
<?php $profile = '<!doctype html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <div> <p>イリノイ州シカゴにて、アイルランド系の家庭に、9</p> </div> <div>lol</div> </body> </html> '; $dom = new DOMDocument('1.0', 'UTF-8'); $dom->loadHTML($profile); $collect = ""; foreach($dom->getElementsByTagName('body')->item(0)->childNodes as $childNode){ $collect .= $dom->saveHTML($childNode); } echo $collect;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 18, Position 2 = 24
Branch analysis from position: 18
2 jumps found. (Code = 78) Position 1 = 19, Position 2 = 24
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/q3hM6
function name:  (null)
number of ops:  27
compiled vars:  !0 = $profile, !1 = $dom, !2 = $collect, !3 = $childNode
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3C%21doctype+html%3E%0A%3Chtml%3E%0A++++%3Chead%3E%0A++++++++%3Cmeta+http-equiv%3D%22Content-Type%22+content%3D%22text%2Fhtml%3B+charset%3DUTF-8%22%3E%0A++++%3C%2Fhead%3E%0A++++%3Cbody%3E%0A++++++++%3Cdiv%3E%0A++++++++++++%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%819%3C%2Fp%3E%0A++++++++%3C%2Fdiv%3E%0A++++++++%3Cdiv%3Elol%3C%2Fdiv%3E%0A++++%3C%2Fbody%3E%0A%3C%2Fhtml%3E%0A'
   16     1        NEW                                              $5      'DOMDocument'
          2        SEND_VAL_EX                                              '1.0'
          3        SEND_VAL_EX                                              'UTF-8'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
   17     6        INIT_METHOD_CALL                                         !1, 'loadHTML'
          7        SEND_VAR_EX                                              !0
          8        DO_FCALL                                      0          
   18     9        ASSIGN                                                   !2, ''
   19    10        INIT_METHOD_CALL                                         !1, 'getElementsByTagName'
         11        SEND_VAL_EX                                              'body'
         12        DO_FCALL                                      0  $10     
         13        INIT_METHOD_CALL                                         $10, 'item'
         14        SEND_VAL_EX                                              0
         15        DO_FCALL                                      0  $11     
         16        FETCH_OBJ_R                                      ~12     $11, 'childNodes'
         17      > FE_RESET_R                                       $13     ~12, ->24
         18    > > FE_FETCH_R                                               $13, !3, ->24
   20    19    >   INIT_METHOD_CALL                                         !1, 'saveHTML'
         20        SEND_VAR_EX                                              !3
         21        DO_FCALL                                      0  $14     
         22        ASSIGN_OP                                     8          !2, $14
   19    23      > JMP                                                      ->18
         24    >   FE_FREE                                                  $13
   22    25        ECHO                                                     !2
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
192.21 ms | 1395 KiB | 13 Q