3v4l.org

run code in 300+ PHP versions simultaneously
<?php $allowedTags = '<br/>'; var_dump(strip_tags('Line1<br/>Line2<br></br>', $allowedTags)); $allowedTags = '<br>'; var_dump(strip_tags('Line1<br/>Line2<br></br>', $allowedTags));

preferences:
40.13 ms | 405 KiB | 5 Q