3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $resubl = preg_replace('/\b\-.*\b?/', ' ', 'узи +в люберцах -беременность -грудь -печень -плод -почка -сделать -щитовидка'); echo $resubl;
based on 3HgKS
Output for 4.3.11 - 7.1.0
Warning: preg_replace(): Compilation failed: nothing to repeat at offset 8 in /in/v431l on line 2
Output for 4.3.0 - 4.3.10
Warning: Compilation failed: nothing to repeat at offset 8 in /in/v431l on line 2