3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $tags = "2b, cute, hot boobs, sexy girl, sexy,nice, black box , hello"; $tags = preg_replace('\s*,\s*', ',', $tags); echo $tags;
based on ShsPf
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0rc3
Warning: preg_replace(): Delimiter must not be alphanumeric or backslash in /in/rZpp4 on line 5
Output for hhvm-3.15.4
Warning: Delimiter must not be alphanumeric or backslash in /in/rZpp4 on line 5