3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = '{width:100, max-heigth:300, min-height:200}'; $pattern = ':(\S)'; $replacement = ': $0'; var_dump(preg_replace($pattern, $replacement, $string));
Output for 4.3.11 - 7.1.0
Warning: preg_replace(): No ending delimiter ':' found in /in/uI13X on line 7 NULL
Output for 4.3.0 - 4.3.10
Warning: No ending delimiter ':' found in /in/uI13X on line 7 NULL