3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $whitespace = "\x20\x09\x0a\x0b\x0C\x0d"; $string = "hi".$whitespace."bob : letter v"; echo $string . "\n"; echo preg_replace('/\s\s+|\\f|\\n|\\r|\\t|\\v/', '', $policy);
Output for 5.0.4 - 7.1.0
hi bob : letter v Notice: Undefined variable: policy in /in/Do870 on line 8
Output for 4.3.0 - 5.0.3
hi bob : letter v Notice: Undefined variable: policy in /in/Do870 on line 8