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>. ' ) );

preferences:
22.91 ms | 490 KiB | 6 Q