3v4l.org

run code in 300+ PHP versions simultaneously
<?php function isHTMLTextNode(DOMNode $node) { return $node instanceof DOMText || ($node instanceof DOMElement && strtolower($node->tagName) === 'br'); } function hasMultipleNonTextChildren(DOMElement $element) { $foundOne = false; foreach ($element->childNodes as $child) { if (!isHTMLTextNode($child)) { if ($foundOne) { return true; } $foundOne = true; } } return false; } function setStylesOnElement(DOMElement $element, array $css) { $styles = ltrim(rtrim($element->getAttribute('style'), ';') . '; ', ';'); foreach ($css as $prop => $val) { $styles .= $prop . ': ' . $val . '; '; } $element->setAttribute('style', trim($styles)); } function getCSSEquivs(DOMElement $element) { switch (strtolower($element->tagName)) { case 'font': $css = []; if ($element->hasAttribute('color')) { $css['color'] = $element->getAttribute('color'); } if ($element->hasAttribute('size')) { $css['font-size'] = $element->getAttribute('size') . 'px'; } if ($element->hasAttribute('face')) { $css['font-family'] = $element->getAttribute('face'); } return $css; case 'b': return ['font-weight' => 'bold']; case 'i': return ['font-style' => 'italic']; } return null; } function pullChildrenUp(DOMElement $element) { $children = []; $current = $element->firstChild; do { $next = $current->nextSibling; $children[] = $element->removeChild($current); } while ($current = $next); $parent = $element->parentNode; $before = $element->nextSibling; $parent->replaceChild(array_shift($children), $element); while ($children) { $parent->insertBefore(array_shift($children), $before); } } function pullChildrenDownIntoSpan($element, array $css = []) { $span = $element->ownerDocument->createElement('span'); $span->appendChild($element->replaceChild($span, $element->firstChild)); while ($span->nextSibling) { $span->appendChild($element->removeChild($span->nextSibling)); } return $span; } function stripFormattingTags(DOMText $textNode) { $css = []; $currentNode = $textNode->parentNode; while ($currentNode && !hasMultipleNonTextChildren($currentNode)) { if (null === $equivs = getCSSEquivs($currentNode)) { break; } $css = array_merge($equivs, $css); $parentNode = $currentNode->parentNode; pullChildrenUp($currentNode); $currentNode = $parentNode; } if ($currentNode->tagName !== 'span') { $currentNode = pullChildrenDownIntoSpan($currentNode); } if ($css) { setStylesOnElement($currentNode, $css); } } $html = '<FONT FACE="League" SIZE="15" COLOR="#000000"><font COLOR="#ff00ff" SIZE="18"><b><font SIZE="23"><font SIZE="27"><font SIZE="23"><font SIZE="18"><font SIZE="23">Moet Flip make-up dragen? <br />Stem mee in de poll!!</font></font></font></font></font></b></font><br /></FONT>'; $dom = new DOMDOcument(); $dom->loadHTML($html); $xpath = new DOMXPath($dom); $nodes = $xpath->evaluate("/html/body//text()"); foreach ($nodes as $node) { stripFormattingTags($node); } var_dump($dom->saveHTML());
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 21
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 21
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/WBptu
function name:  (null)
number of ops:  28
compiled vars:  !0 = $html, !1 = $dom, !2 = $xpath, !3 = $nodes, !4 = $node
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  118     0  E >   ASSIGN                                                   !0, '%3CFONT+FACE%3D%22League%22+SIZE%3D%2215%22+COLOR%3D%22%23000000%22%3E%3Cfont+COLOR%3D%22%23ff00ff%22+SIZE%3D%2218%22%3E%3Cb%3E%3Cfont+SIZE%3D%2223%22%3E%3Cfont+SIZE%3D%2227%22%3E%3Cfont+SIZE%3D%2223%22%3E%3Cfont+SIZE%3D%2218%22%3E%3Cfont+SIZE%3D%2223%22%3EMoet+Flip+make-up+dragen%3F++%3Cbr+%2F%3EStem+mee+in+de+poll%21%21%3C%2Ffont%3E%3C%2Ffont%3E%3C%2Ffont%3E%3C%2Ffont%3E%3C%2Ffont%3E%3C%2Fb%3E%3C%2Ffont%3E%3Cbr+%2F%3E%3C%2FFONT%3E'
  120     1        NEW                                              $6      'DOMDOcument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $6
  121     4        INIT_METHOD_CALL                                         !1, 'loadHTML'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
  123     7        NEW                                              $10     'DOMXPath'
          8        SEND_VAR_EX                                              !1
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !2, $10
  125    11        INIT_METHOD_CALL                                         !2, 'evaluate'
         12        SEND_VAL_EX                                              '%2Fhtml%2Fbody%2F%2Ftext%28%29'
         13        DO_FCALL                                      0  $13     
         14        ASSIGN                                                   !3, $13
  127    15      > FE_RESET_R                                       $15     !3, ->21
         16    > > FE_FETCH_R                                               $15, !4, ->21
  128    17    >   INIT_FCALL                                               'stripformattingtags'
         18        SEND_VAR                                                 !4
         19        DO_FCALL                                      0          
  127    20      > JMP                                                      ->16
         21    >   FE_FREE                                                  $15
  131    22        INIT_FCALL                                               'var_dump'
         23        INIT_METHOD_CALL                                         !1, 'saveHTML'
         24        DO_FCALL                                      0  $17     
         25        SEND_VAR                                                 $17
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Function ishtmltextnode:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 3, Position 2 = 12
Branch analysis from position: 3
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 11
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
Branch analysis from position: 12
filename:       /in/WBptu
function name:  isHTMLTextNode
number of ops:  14
compiled vars:  !0 = $node
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        INSTANCEOF                                       ~1      !0, 'DOMText'
          2      > JMPNZ_EX                                         ~1      ~1, ->12
          3    >   INSTANCEOF                                       ~2      !0, 'DOMElement'
          4      > JMPZ_EX                                          ~2      ~2, ->11
          5    >   INIT_FCALL                                               'strtolower'
          6        FETCH_OBJ_R                                      ~3      !0, 'tagName'
          7        SEND_VAL                                                 ~3
          8        DO_ICALL                                         $4      
          9        IS_IDENTICAL                                     ~5      $4, 'br'
         10        BOOL                                             ~2      ~5
         11    >   BOOL                                             ~1      ~2
         12    > > RETURN                                                   ~1
    6    13*     > RETURN                                                   null

End of function ishtmltextnode

Function hasmultiplenontextchildren:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 15
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 15
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 14
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/WBptu
function name:  hasMultipleNonTextChildren
number of ops:  18
compiled vars:  !0 = $element, !1 = $foundOne, !2 = $child
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
   10     1        ASSIGN                                                   !1, <false>
   12     2        FETCH_OBJ_R                                      ~4      !0, 'childNodes'
          3      > FE_RESET_R                                       $5      ~4, ->15
          4    > > FE_FETCH_R                                               $5, !2, ->15
   13     5    >   INIT_FCALL                                               'ishtmltextnode'
          6        SEND_VAR                                                 !2
          7        DO_FCALL                                      0  $6      
          8        BOOL_NOT                                         ~7      $6
          9      > JMPZ                                                     ~7, ->14
   14    10    > > JMPZ                                                     !1, ->13
   15    11    >   FE_FREE                                                  $5
         12      > RETURN                                                   <true>
   18    13    >   ASSIGN                                                   !1, <true>
   12    14    > > JMP                                                      ->4
         15    >   FE_FREE                                                  $5
   22    16      > RETURN                                                   <false>
   23    17*     > RETURN                                                   null

End of function hasmultiplenontextchildren

Function setstylesonelement:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 23
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 23
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/WBptu
function name:  setStylesOnElement
number of ops:  32
compiled vars:  !0 = $element, !1 = $css, !2 = $styles, !3 = $val, !4 = $prop
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   27     2        INIT_FCALL                                               'ltrim'
          3        INIT_FCALL                                               'rtrim'
          4        INIT_METHOD_CALL                                         !0, 'getAttribute'
          5        SEND_VAL_EX                                              'style'
          6        DO_FCALL                                      0  $5      
          7        SEND_VAR                                                 $5
          8        SEND_VAL                                                 '%3B'
          9        DO_ICALL                                         $6      
         10        CONCAT                                           ~7      $6, '%3B+'
         11        SEND_VAL                                                 ~7
         12        SEND_VAL                                                 '%3B'
         13        DO_ICALL                                         $8      
         14        ASSIGN                                                   !2, $8
   29    15      > FE_RESET_R                                       $10     !1, ->23
         16    > > FE_FETCH_R                                       ~11     $10, !3, ->23
         17    >   ASSIGN                                                   !4, ~11
   30    18        CONCAT                                           ~13     !4, '%3A+'
         19        CONCAT                                           ~14     ~13, !3
         20        CONCAT                                           ~15     ~14, '%3B+'
         21        ASSIGN_OP                                     8          !2, ~15
   29    22      > JMP                                                      ->16
         23    >   FE_FREE                                                  $10
   33    24        INIT_METHOD_CALL                                         !0, 'setAttribute'
         25        SEND_VAL_EX                                              'style'
         26        INIT_FCALL                                               'trim'
         27        SEND_VAR                                                 !2
         28        DO_ICALL                                         $17     
         29        SEND_VAR_NO_REF_EX                                       $17
         30        DO_FCALL                                      0          
   34    31      > RETURN                                                   null

End of function setstylesonelement

Function getcssequivs:
Finding entry points
Branch analysis from position: 0
5 jumps found. (Code = 188) Position 1 = 13, Position 2 = 44, Position 3 = 46, Position 4 = 48, Position 5 = 6
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 23
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 33
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 37, Position 2 = 42
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 42
Branch analysis from position: 33
Branch analysis from position: 23
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 46
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 48
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 44
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 46
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 48
Branch analysis from position: 48
Branch analysis from position: 46
Branch analysis from position: 44
Branch analysis from position: 13
filename:       /in/WBptu
function name:  getCSSEquivs
number of ops:  51
compiled vars:  !0 = $element, !1 = $css
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   36     0  E >   RECV                                             !0      
   38     1        INIT_FCALL                                               'strtolower'
          2        FETCH_OBJ_R                                      ~2      !0, 'tagName'
          3        SEND_VAL                                                 ~2
          4        DO_ICALL                                         $3      
          5      > SWITCH_STRING                                            $3, [ 'font':->13, 'b':->44, 'i':->46, ], ->48
   39     6    >   CASE                                                     $3, 'font'
          7      > JMPNZ                                                    ~4, ->13
   54     8    >   CASE                                                     $3, 'b'
          9      > JMPNZ                                                    ~4, ->44
   57    10    >   CASE                                                     $3, 'i'
         11      > JMPNZ                                                    ~4, ->46
         12    > > JMP                                                      ->48
   40    13    >   ASSIGN                                                   !1, <array>
   42    14        INIT_METHOD_CALL                                         !0, 'hasAttribute'
         15        SEND_VAL_EX                                              'color'
         16        DO_FCALL                                      0  $6      
         17      > JMPZ                                                     $6, ->23
   43    18    >   INIT_METHOD_CALL                                         !0, 'getAttribute'
         19        SEND_VAL_EX                                              'color'
         20        DO_FCALL                                      0  $8      
         21        ASSIGN_DIM                                               !1, 'color'
         22        OP_DATA                                                  $8
   45    23    >   INIT_METHOD_CALL                                         !0, 'hasAttribute'
         24        SEND_VAL_EX                                              'size'
         25        DO_FCALL                                      0  $9      
         26      > JMPZ                                                     $9, ->33
   46    27    >   INIT_METHOD_CALL                                         !0, 'getAttribute'
         28        SEND_VAL_EX                                              'size'
         29        DO_FCALL                                      0  $11     
         30        CONCAT                                           ~12     $11, 'px'
         31        ASSIGN_DIM                                               !1, 'font-size'
         32        OP_DATA                                                  ~12
   48    33    >   INIT_METHOD_CALL                                         !0, 'hasAttribute'
         34        SEND_VAL_EX                                              'face'
         35        DO_FCALL                                      0  $13     
         36      > JMPZ                                                     $13, ->42
   49    37    >   INIT_METHOD_CALL                                         !0, 'getAttribute'
         38        SEND_VAL_EX                                              'face'
         39        DO_FCALL                                      0  $15     
         40        ASSIGN_DIM                                               !1, 'font-family'
         41        OP_DATA                                                  $15
   52    42    >   FREE                                                     $3
         43      > RETURN                                                   !1
   55    44    >   FREE                                                     $3
         45      > RETURN                                                   <array>
   58    46    >   FREE                                                     $3
         47      > RETURN                                                   <array>
         48    >   FREE                                                     $3
   61    49      > RETURN                                                   null
   62    50*     > RETURN                                                   null

End of function getcssequivs

Function pullchildrenup:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 4
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 25
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 25
Branch analysis from position: 33
Branch analysis from position: 25
Branch analysis from position: 4
filename:       /in/WBptu
function name:  pullChildrenUp
number of ops:  34
compiled vars:  !0 = $element, !1 = $children, !2 = $current, !3 = $next, !4 = $parent, !5 = $before
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   64     0  E >   RECV                                             !0      
   66     1        ASSIGN                                                   !1, <array>
   67     2        FETCH_OBJ_R                                      ~7      !0, 'firstChild'
          3        ASSIGN                                                   !2, ~7
   69     4    >   FETCH_OBJ_R                                      ~9      !2, 'nextSibling'
          5        ASSIGN                                                   !3, ~9
   70     6        INIT_METHOD_CALL                                         !0, 'removeChild'
          7        SEND_VAR_EX                                              !2
          8        DO_FCALL                                      0  $12     
          9        ASSIGN_DIM                                               !1
         10        OP_DATA                                                  $12
   71    11        ASSIGN                                           ~13     !2, !3
         12      > JMPNZ                                                    ~13, ->4
   73    13    >   FETCH_OBJ_R                                      ~14     !0, 'parentNode'
         14        ASSIGN                                                   !4, ~14
   74    15        FETCH_OBJ_R                                      ~16     !0, 'nextSibling'
         16        ASSIGN                                                   !5, ~16
   75    17        INIT_METHOD_CALL                                         !4, 'replaceChild'
         18        INIT_FCALL                                               'array_shift'
         19        SEND_REF                                                 !1
         20        DO_ICALL                                         $18     
         21        SEND_VAR_NO_REF_EX                                       $18
         22        SEND_VAR_EX                                              !0
         23        DO_FCALL                                      0          
   76    24      > JMP                                                      ->32
   77    25    >   INIT_METHOD_CALL                                         !4, 'insertBefore'
         26        INIT_FCALL                                               'array_shift'
         27        SEND_REF                                                 !1
         28        DO_ICALL                                         $20     
         29        SEND_VAR_NO_REF_EX                                       $20
         30        SEND_VAR_EX                                              !5
         31        DO_FCALL                                      0          
   76    32    > > JMPNZ                                                    !1, ->25
   79    33    > > RETURN                                                   null

End of function pullchildrenup

Function pullchildrendownintospan:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 17
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 17
Branch analysis from position: 27
Branch analysis from position: 17
filename:       /in/WBptu
function name:  pullChildrenDownIntoSpan
number of ops:  29
compiled vars:  !0 = $element, !1 = $css, !2 = $span
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   81     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      <array>
   83     2        FETCH_OBJ_R                                      ~3      !0, 'ownerDocument'
          3        INIT_METHOD_CALL                                         ~3, 'createElement'
          4        SEND_VAL_EX                                              'span'
          5        DO_FCALL                                      0  $4      
          6        ASSIGN                                                   !2, $4
   84     7        INIT_METHOD_CALL                                         !2, 'appendChild'
          8        INIT_METHOD_CALL                                         !0, 'replaceChild'
          9        SEND_VAR_EX                                              !2
         10        CHECK_FUNC_ARG                                           
         11        FETCH_OBJ_FUNC_ARG                               $6      !0, 'firstChild'
         12        SEND_FUNC_ARG                                            $6
         13        DO_FCALL                                      0  $7      
         14        SEND_VAR_NO_REF_EX                                       $7
         15        DO_FCALL                                      0          
   86    16      > JMP                                                      ->25
   87    17    >   INIT_METHOD_CALL                                         !2, 'appendChild'
         18        INIT_METHOD_CALL                                         !0, 'removeChild'
         19        CHECK_FUNC_ARG                                           
         20        FETCH_OBJ_FUNC_ARG                               $9      !2, 'nextSibling'
         21        SEND_FUNC_ARG                                            $9
         22        DO_FCALL                                      0  $10     
         23        SEND_VAR_NO_REF_EX                                       $10
         24        DO_FCALL                                      0          
   86    25    >   FETCH_OBJ_R                                      ~12     !2, 'nextSibling'
         26      > JMPNZ                                                    ~12, ->17
   90    27    > > RETURN                                                   !2
   91    28*     > RETURN                                                   null

End of function pullchildrendownintospan

Function stripformattingtags:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 46) Position 1 = 24, Position 2 = 29
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 5
Branch analysis from position: 30
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 37
Branch analysis from position: 33
2 jumps found. (Code = 43) Position 1 = 38, Position 2 = 42
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 42
Branch analysis from position: 37
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
Branch analysis from position: 12
2 jumps found. (Code = 46) Position 1 = 24, Position 2 = 29
Branch analysis from position: 24
Branch analysis from position: 29
Branch analysis from position: 29
filename:       /in/WBptu
function name:  stripFormattingTags
number of ops:  43
compiled vars:  !0 = $textNode, !1 = $css, !2 = $currentNode, !3 = $equivs, !4 = $parentNode
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   93     0  E >   RECV                                             !0      
   95     1        ASSIGN                                                   !1, <array>
   96     2        FETCH_OBJ_R                                      ~6      !0, 'parentNode'
          3        ASSIGN                                                   !2, ~6
   97     4      > JMP                                                      ->23
   98     5    >   INIT_FCALL                                               'getcssequivs'
          6        SEND_VAR                                                 !2
          7        DO_FCALL                                      0  $8      
          8        ASSIGN                                           ~9      !3, $8
          9        TYPE_CHECK                                    2          ~9
         10      > JMPZ                                                     ~10, ->12
   99    11    > > JMP                                                      ->30
  102    12    >   INIT_FCALL                                               'array_merge'
         13        SEND_VAR                                                 !3
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $11     
         16        ASSIGN                                                   !1, $11
  104    17        FETCH_OBJ_R                                      ~13     !2, 'parentNode'
         18        ASSIGN                                                   !4, ~13
  105    19        INIT_FCALL                                               'pullchildrenup'
         20        SEND_VAR                                                 !2
         21        DO_FCALL                                      0          
  106    22        ASSIGN                                                   !2, !4
   97    23    > > JMPZ_EX                                          ~17     !2, ->29
         24    >   INIT_FCALL                                               'hasmultiplenontextchildren'
         25        SEND_VAR                                                 !2
         26        DO_FCALL                                      0  $18     
         27        BOOL_NOT                                         ~19     $18
         28        BOOL                                             ~17     ~19
         29    > > JMPNZ                                                    ~17, ->5
  109    30    >   FETCH_OBJ_R                                      ~20     !2, 'tagName'
         31        IS_NOT_IDENTICAL                                         ~20, 'span'
         32      > JMPZ                                                     ~21, ->37
  110    33    >   INIT_FCALL                                               'pullchildrendownintospan'
         34        SEND_VAR                                                 !2
         35        DO_FCALL                                      0  $22     
         36        ASSIGN                                                   !2, $22
  113    37    > > JMPZ                                                     !1, ->42
  114    38    >   INIT_FCALL                                               'setstylesonelement'
         39        SEND_VAR                                                 !2
         40        SEND_VAR                                                 !1
         41        DO_FCALL                                      0          
  116    42    > > RETURN                                                   null

End of function stripformattingtags

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.9 ms | 1427 KiB | 34 Q