3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 'hello, [how]foo[how]bar. please don\'t remove [are] you?'; echo preg_replace('#\s*\[.+\]\s*#U', ' ', $a); echo "there should be no space between foo and bar :)";
Output for 4.3.0 - 7.2.0
hello, foo bar. please don't remove you?there should be no space between foo and bar :)