3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'asd' . chr(0x20) . ' ' . chr(0x19) . chr(0x00) . 'df'; var_dump($str); $str = preg_replace('/[x00-x19]/g', '', $str);

preferences:
44.64 ms | 402 KiB | 5 Q