3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = null; var_dump(preg_replace((int)'/\s+/', '', $string));
Output for 7.1.3
Warning: preg_replace(): Delimiter must not be alphanumeric or backslash in /in/SGcKp on line 3 NULL