3v4l.org

run code in 300+ PHP versions simultaneously
<?php $whitespace = "\x0b"; $string = "hi".$whitespace."bob : letter v"; echo $string . "\n"; echo preg_replace('/\s\s+|\\f|\\n|\\r|\\t|\\v/', '', $string);

preferences:
43.6 ms | 402 KiB | 5 Q