3v4l.org

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

Function stags:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/B555G
function name:  sTAGS
number of ops:  19
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        CONCAT                                           ~3      $2, '%3C%2Fbr%3E'
          7        ECHO                                                     ~3
    4     8        ECHO                                                     '%3C%2Fbr%3E'
    5     9        INIT_FCALL                                               'htmlentities'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $4      
         12        ECHO                                                     $4
    6    13        INIT_FCALL                                               'htmlentities'
         14        SEND_VAR                                                 !0
         15        SEND_VAL                                                 3
         16        DO_ICALL                                         $5      
         17        ECHO                                                     $5
   11    18      > RETURN                                                   null

End of function stags

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.34 ms | 1402 KiB | 18 Q