3v4l.org

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

Function stags:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0Gspu
function name:  sTAGS
number of ops:  31
compiled vars:  !0 = $text, !1 = $prm
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                                         $2      
         6        ASSIGN                                                   !0, $2
   4     7        INIT_FCALL                                               'trim'
         8        SEND_VAR                                                 !0
         9        DO_ICALL                                         $4      
        10        ASSIGN                                                   !0, $4
   5    11        INIT_FCALL                                               'str_replace'
        12        SEND_VAL                                                 '+'
        13        SEND_VAL                                                 ''
        14        SEND_VAR                                                 !0
        15        DO_ICALL                                         $6      
        16        ASSIGN                                                   !0, $6
   6    17        INIT_FCALL                                               'htmlentities'
        18        SEND_VAR                                                 !0
        19        DO_ICALL                                         $8      
        20        ASSIGN                                                   !0, $8
   7    21        INIT_FCALL                                               'htmlentities'
        22        SEND_VAR                                                 !0
        23        SEND_VAL                                                 3
        24        DO_ICALL                                         $10     
        25        ASSIGN                                                   !0, $10
   9    26        INIT_FCALL                                               'html_entity_decode'
        27        SEND_VAR                                                 !0
        28        DO_ICALL                                         $12     
        29        ECHO                                                     $12
  12    30      > RETURN                                                   null

End of function stags

Generated using Vulcan Logic Dumper, using php 7.3.0