3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = 'dit is een string'; $string = preg_replace('\s', '_', $string); print_r($string);
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.2.6
Warning: preg_replace(): Delimiter must not be alphanumeric or backslash in /in/piCYY on line 5
Output for hhvm-3.15.4
Warning: Delimiter must not be alphanumeric or backslash in /in/piCYY on line 5