3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "\'\""; $arr = array(); $arr[] = "string : ".$str; $arr[] = "addslashes : ".addslashes($str); $arr[] = "stripslashes : ".stripslashes($str); $arr[] = "htmlentities : ".htmlentities($str); $arr[] = "testing : '".$str."'"; print_r($arr);

preferences:
34.88 ms | 402 KiB | 5 Q