3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = '<br>Each<br/>New<br />Line'; $new = strip_tags($data, '<br>'); var_dump($new); $data = '<br>Each<br/>New<br />Line'; $new = strip_tags($data, '<br/>'); var_dump($new); $data = '<br>Each<br/>New<br />Line'; $new = strip_tags($data, '<br />'); var_dump($new);
Output for 5.3.4 - 7.1.0
string(26) "<br>Each<br/>New<br />Line" string(11) "EachNewLine" string(11) "EachNewLine"
Output for 4.3.0 - 5.3.3
string(21) "<br>EachNew<br />Line" string(16) "Each<br/>NewLine" string(11) "EachNewLine"