3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $text = "- jedna\n- dva\n- tri"; echo $text; echo(preg_replace('/\n\s*-\s*/m', "\n", $text));
based on hBX6W
Output for 4.3.0 - 7.2.0
- jedna - dva - tri- jedna dva tri