3v4l.org

run code in 200+ 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 - 7.2.0
\s \s\s \s \s\s Hello \s\s \s Hello \s\s \s\s\s