3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = '<br><br ><br/><br />'; $with_slash = strip_tags( $content, '<br />' ); $without_slash = strip_tags( $content, '<br>' ); echo "With slash:\n'$with_slash'\n\n"; echo "Without slash:\n'$without_slash'\n\n"; echo 'Correct: ' . ( '' === $with_slash ? 'Without slash' : 'With slash' );

preferences:
47.26 ms | 402 KiB | 5 Q