3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '<p>Lorum ipsum &nbsp;.</p><a href="http://www.test.com">This is a test link</a>'; $text = ucfirst($text); $text = preg_replace('/\v+|\\\r\\\n/', '<br />', $text); echo $text;

preferences:
35.92 ms | 402 KiB | 5 Q