3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_dump( strip_tags( '<p>Test paragraph.</p><!-- Comment --> <a href="#fragment">Other text</a>' ) ); // with wshitespace at start and end. var_dump( strip_tags( ' <p>Test paragraph.</p><!-- Comment --> <a href="#fragment">Other text</a>. ' ) ); // whitespace throughout var_dump( strip_tags( ' <p> Test paragraph </p><!-- Comment --> <a href="#fragment"> Other text </a>. ' ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Qcl17
function name:  (null)
number of ops:  19
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'var_dump'
          1        INIT_FCALL                                                   'strip_tags'
          2        SEND_VAL                                                     '%3Cp%3ETest+paragraph.%3C%2Fp%3E%3C%21--+Comment+--%3E+%3Ca+href%3D%22%23fragment%22%3EOther+text%3C%2Fa%3E'
          3        DO_ICALL                                             $0      
          4        SEND_VAR                                                     $0
          5        DO_ICALL                                                     
    6     6        INIT_FCALL                                                   'var_dump'
          7        INIT_FCALL                                                   'strip_tags'
          8        SEND_VAL                                                     '+++%3Cp%3ETest+paragraph.%3C%2Fp%3E%3C%21--+Comment+--%3E+%3Ca+href%3D%22%23fragment%22%3EOther+text%3C%2Fa%3E.++'
          9        DO_ICALL                                             $2      
         10        SEND_VAR                                                     $2
         11        DO_ICALL                                                     
    9    12        INIT_FCALL                                                   'var_dump'
         13        INIT_FCALL                                                   'strip_tags'
         14        SEND_VAL                                                     '+++%3Cp%3E+Test+++paragraph++%3C%2Fp%3E%3C%21--++Comment++--%3E+%3Ca+href%3D%22%23fragment%22%3E+Other+text+%3C%2Fa%3E.++'
         15        DO_ICALL                                             $4      
         16        SEND_VAR                                                     $4
         17        DO_ICALL                                                     
         18      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
141.02 ms | 493 KiB | 11 Q