3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '<p align="center"><font face="Proxima Nova Alt Th" size="16" color="#ff0087" letterSpacing="-1.000000" kerning="1"><b>SALES OR PRODUCT INFO 2</b></font></p>'; $replace = "HERRO"; $dom = new DOMDocument; $dom->loadHTML($string); $el = $dom->textContent(); echo $el;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bjCOk
function name:  (null)
number of ops:  13
compiled vars:  !0 = $string, !1 = $replace, !2 = $dom, !3 = $el
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cp+align%3D%22center%22%3E%3Cfont+face%3D%22Proxima+Nova+Alt+Th%22+size%3D%2216%22+color%3D%22%23ff0087%22+letterSpacing%3D%22-1.000000%22+kerning%3D%221%22%3E%3Cb%3ESALES+OR+PRODUCT+INFO+2%3C%2Fb%3E%3C%2Ffont%3E%3C%2Fp%3E'
    4     1        ASSIGN                                                   !1, 'HERRO'
    6     2        NEW                                              $6      'DOMDocument'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !2, $6
    7     5        INIT_METHOD_CALL                                         !2, 'loadHTML'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0          
    8     8        INIT_METHOD_CALL                                         !2, 'textContent'
          9        DO_FCALL                                      0  $10     
         10        ASSIGN                                                   !3, $10
   10    11        ECHO                                                     !3
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.46 ms | 1384 KiB | 13 Q