3v4l.org

run code in 300+ PHP versions simultaneously
<?php // String with excessive backslashes manually added. // Only need the escaped newline characters ("\n") $str = "\nMilly O\'Malley wishes \\to \\e\at cake and \\not bread; see http://example.com.\n"; echo $str; $stripped = stripslashes( $str); echo $stripped;

preferences:
52.36 ms | 402 KiB | 5 Q