3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function sTAGS($textNt, $prm) { $textSt = strip_tags($textNt, $prm); $text = trim($textSt); //echo htmlentities($text); //echo htmlentities($text, ENT_QUOTES); echo html_entity_decode($text); } $txt = ' <p>Test-Absatz.</p><!-- Kommentar --> <a href="# fragment">Anderer Text</a>'; sTAGS($txt, ""); ?>
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/KXqef
function name:  (null)
number of ops:  7
compiled vars:  !0 = $txt
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   NOP                                                      
  12     1        ASSIGN                                                   !0, '++++++%3Cp%3ETest-Absatz.%3C%2Fp%3E%3C%21--+Kommentar+--%3E+%3Ca+href%3D%22%23+++++++++++++fragment%22%3EAnderer+Text%3C%2Fa%3E'
  13     2        INIT_FCALL                                               'stags'
         3        SEND_VAR                                                 !0
         4        SEND_VAL                                                 ''
         5        DO_FCALL                                      0          
         6      > RETURN                                                   1

Function stags:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/KXqef
function name:  sTAGS
number of ops:  16
compiled vars:  !0 = $textNt, !1 = $prm, !2 = $textSt, !3 = $text
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   RECV                                             !0      
         1        RECV                                             !1      
   3     2        INIT_FCALL                                               'strip_tags'
         3        SEND_VAR                                                 !0
         4        SEND_VAR                                                 !1
         5        DO_ICALL                                         $4      
         6        ASSIGN                                                   !2, $4
   4     7        INIT_FCALL                                               'trim'
         8        SEND_VAR                                                 !2
         9        DO_ICALL                                         $6      
        10        ASSIGN                                                   !3, $6
   8    11        INIT_FCALL                                               'html_entity_decode'
        12        SEND_VAR                                                 !3
        13        DO_ICALL                                         $8      
        14        ECHO                                                     $8
  11    15      > RETURN                                                   null

End of function stags

Generated using Vulcan Logic Dumper, using php 7.2.0