3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = "Sc\reen S/hot 20'14-05-19 at 14.21.22"; $filename = str_replace(["\r", '/', '\\', '\'', ' '], '_', $input); var_dump($filename);

preferences:
35.14 ms | 402 KiB | 5 Q