3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $text = "\s\n\t\s\s\n\t\s\n\s\s Hello\n\n\n\n\n\n\n\n\s\s\t\t\s\t Hello \s\s\n\n\n\t\s\s\s\n\t"; echo preg_replace('/\t+/', ' ',$text);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
\s \s\s \s \s\s Hello \s\s \s Hello \s\s \s\s\s